# US 2018/0322059 A1 · Transactional memory operation success rate

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2018/0322059 A1
- Document ID: US20180322059A1
- Status: Published application
- Kind: A1
- Application number: 15/589,335
- Filed: 2017-05-08
- Published: 2018-11-08
- Earliest claimed: 2017-05-08
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Shakti Kapoor
- Web page: https://patentgrep.com/patent/US20180322059A1

## CPC

- G06F 12/0862: with prefetch
- G06F 9/528: {by using speculative mechanisms}
- G06F 2212/1008: Correctness of operation, e.g. memory ordering
- G06F 2212/1021: Hit rate improvement
- G06F 2212/507: using speculative control
- G06F 2212/602: Details relating to cache prefetching
- G06F 2212/6028: Prefetching based on hints or prefetch instructions
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments of the invention are directed to methods for handling cache prefetch requests. The method includes receiving a request to prefetch data from main memory to a cache. The method further includes based on a determination that the prefetch request is a speculative prefetch request, determining if the cache is being used for transactional memory. The method further includes based on a determination that the cache is not being used for transactional memory, processing the prefetch request. The method further includes based on a determination that the cache is being used for transactional memory, and a determination if the prefetch request can be processed without affecting transactional memory, processing the prefetch request. The method further includes based on a determination that the cache is being used for transactional memory, and a determination if the prefetch request can be processed without affecting transactional memory, rejecting the prefetch request.

## Claims

### Claim 1

(canceled)

### Claim 2

(canceled)

### Claim 3

(canceled)

### Claim 4

(canceled)

### Claim 5

(canceled)

### Claim 6

(canceled)

### Claim 7

(canceled)

### Claim 8

A computer system for handling cache prefetch requests, the system comprising:
a cache memory; and
a processor system communicatively coupled to the cache memory;
the processor system configured to:
receive a request to prefetch data from a main memory to a cache; and
based on a determination that the prefetch request is a speculative prefetch request, determine if the cache is being used for transactional memory;
based on a determination that the cache is not being used for transactional memory, process the prefetch request;
based on a determination that the cache is being used for transactional memory, and a determination if the prefetch request can be processed without affecting transactional memory, process the prefetch request; and
based on a determination that the cache is being used for transactional memory, and a determination if the prefetch request can be processed without affecting transactional memory, rejecting the prefetch request.

### Claim 9 (depends on 8)

The computer system of claim 8 wherein the processor system is further configured to:
based on a determination that the prefetch request is not a speculative prefetch request, processing the prefetch request.

### Claim 10 (depends on 8)

The computer system of claim 8 wherein the determination that the prefetch request can be processed without affecting transactional memory comprises:
determining a size of the prefetch request; and
determining that the size of the prefetch request is smaller than a size of available cache memory.

### Claim 11 (depends on 10)

The computer system of claim 10 wherein the determination that the prefetch request can be processed without affecting transactional memory further comprises:
based on a determination that the size of available cache memory is smaller than the size of the prefetch request, determining a size of information that can be removed from cache memory without affecting transactional memory;
if the size of the prefetch request is less than a size of information that can be removed from cache memory without affecting transactional memory, then the prefetch request can be processed without affecting transactional memory.

### Claim 12 (depends on 10)

The computer system of claim 10 wherein determining the size of information that can be removed from cache memory without transactional memory is based at least in part on determining a size of the transactional memory.

### Claim 13 (depends on 8)

The computer system of claim 8 wherein processing the prefetch request comprises:
determining an area of cache to remove;
moving information in the prefetch request from main memory to the area of cache to remove.

### Claim 14 (depends on 8)

The computer system of claim 8 wherein the determination that the prefetch request will result in an eviction is based at least in part on determining the size of the prefetch request.

### Claim 15

A design structure tangibly embodied in a machine-readable storage medium for designing, manufacturing, or testing an integrated circuit, the design structure comprising:
a cache memory; and
a processor core coupled to the cache memory, the processor core configured to:
receive a request to prefetch data from a main memory to a cache; and
based on a determination that the prefetch request is a speculative prefetch request, determine if the cache is being used for transactional memory;
based on a determination that the cache is not being used for transactional memory, process the prefetch request;
based on a determination that the cache is being used for transactional memory, and a determination if the prefetch request can be processed without affecting transactional memory, process the prefetch request; and
based on a determination that the cache is being used for transactional memory, and a determination if the prefetch request can be processed without affecting transactional memory, rejecting the prefetch request.

### Claim 16 (depends on 15)

The design structure of claim 15 wherein the processor core is further configured to:
based on a determination that the prefetch request is not a speculative prefetch request, processing the prefetch request.

### Claim 17 (depends on 16)

The design structure of claim 16 wherein the determination that the prefetch request can be processed without affecting transactional memory comprises:
determining a size of the prefetch request; and
determining that the size of the prefetch request is smaller than a size of available cache memory.

### Claim 18 (depends on 17)

The design structure of claim 17 wherein the determination that the prefetch request can be processed without affecting transactional memory further comprises:
based on a determination that the size of available cache memory is smaller than the size of the prefetch request, determining a size of information that can be removed from cache memory without affecting transactional memory;
if the size of the prefetch request is less than a size of information that can be removed from cache memory without affecting transactional memory, then the prefetch request can be processed without affecting transactional memory.

### Claim 19 (depends on 17)

The design structure of claim 17 wherein determining the size of information that can be removed from cache memory without transactional memory is based at least in part on determining a size of the transactional memory.

### Claim 20 (depends on 15)

The design structure of claim 15 wherein processing the prefetch request comprises:
determining an area of cache to remove;
moving information in the prefetch request from main memory to the area of cache to remove.
