# US 2018/0322060 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/0322060 A1
- Document ID: US20180322060A1
- Status: Published application
- Kind: A1
- Application number: 15/813,328
- Filed: 2017-11-15
- 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/US20180322060A1

## 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

A method for handling cache prefetch requests, the method comprising:
receiving 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, determining if the cache is being used for transactional memory;
based on a determination that the cache is not being used for transactional memory, processing 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, processing 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 2 (depends on 1)

The method of claim 1 further comprising:
based on a determination that the prefetch request is not a speculative prefetch request, processing the prefetch request.

### Claim 3 (depends on 1)

The method of claim 1 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 4 (depends on 3)

The method of claim 3 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 5 (depends on 3)

The method of claim 3 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 6 (depends on 1)

The method of claim 1 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 7 (depends on 1)

The method of claim 1 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.
