# US 2016/0239434 A1 · Position-based replacement policy for address synonym management in shared caches

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

- Number: US 2016/0239434 A1
- Document ID: US20160239434A1
- Status: Published application
- Kind: A1
- Application number: 14/621,454
- Filed: 2015-02-13
- Published: 2016-08-18
- Earliest claimed: 2015-02-13
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Deanna Postles Dunn Berger; Michael F. Fee; Arthur J. O'Neil, JR.; Robert J. Sonnelitter, III
- Web page: https://patentgrep.com/patent/US20160239434A1

## CPC

- G06F 12/123: with age lists, e.g. queue, most recently used [MRU] list or least recently used [LRU] list
- G06F 12/084: with a shared cache
- G06F 2212/62: Details of cache specific to multiprocessor cache arrangements
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computer-implemented method includes receiving a request to access a cache entry in a shared cache. The request references a synonym for the cache entry. A cache directory of the shared cache includes, for each cache entry of the shared cache, a first-ranked synonym slot for storing a most recently used synonym for the cache entry and a second-ranked synonym slot for storing a second most recently used synonym for the cache entry. The method includes, based on receiving the request, writing contents of the first-ranked synonym slot for the cache entry to the second-ranked synonym slot for the cache entry, and writing the synonym referenced in the request to the first-ranked synonym slot for the cache entry.

## Claims

### Claim 1

A computer-implemented method, comprising:
receiving a request to access a cache entry in a shared cache, the request referencing a synonym for the cache entry, a cache directory of the shared cache comprising, for each cache entry of the shared cache, a first-ranked synonym slot for storing a most recently used synonym for the cache entry and a second-ranked synonym slot for storing a second most recently used synonym for the cache entry; and
based on receiving the request:
writing contents of the first-ranked synonym slot for the cache entry to the second-ranked synonym slot for the cache entry; and
writing the synonym referenced in the request to the first-ranked synonym slot for the cache entry.

### Claim 2 (depends on 1)

The method of claim 1, wherein writing the contents of the first-ranked synonym slot for the cache entry to the second-ranked synonym slot for the cache entry demotes an other synonym from the second-ranked synonym slot for the cache entry.

### Claim 3 (depends on 2)

The method of claim 2, wherein the cache directory comprises no more than two synonym slots for the cache entry, and wherein writing the contents of the first-ranked synonym slot for the cache entry to the second-ranked synonym slot for the cache entry demotes the other synonym from the cache directory.

### Claim 4 (depends on 1)

The method of claim 1, wherein the cache directory comprises two or more synonym slots for each cache entry, and wherein a position of each synonym within the synonym slots is based on recent use relative to one or more other synonyms in the synonym slots.

### Claim 5 (depends on 4)

The method of claim 4, wherein the cache directory is absent circuitry, other than the two or more synonym slots, for indicating which synonym was most recently used.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
receiving an other request for an other cache entry, wherein the other request references an other synonym;
determining that the other synonym matches a synonym stored in the second-ranked synonym slot of the other cache entry; and
swapping the synonyms in the first-ranked synonym slot and the second-ranked synonym slot of the other cache entry, responsive to determining that the other synonym matches the synonym stored in the second-ranked synonym slot of the other cache entry.

### Claim 7

A system comprising:
one or more computer processors configured to:
receive a request to access a cache entry in a shared cache, the request referencing a synonym for the cache entry, a cache directory of the shared cache comprising, for each cache entry of the shared cache, a first-ranked synonym slot for storing a most recently used synonym for the cache entry and a second-ranked synonym slot for storing a second most recently used synonym for the cache entry; and
based on receiving the request:
write contents of the first-ranked synonym slot for the cache entry to the second-ranked synonym slot for the cache entry; and
write the synonym referenced in the request to the first-ranked synonym slot for the cache entry.

### Claim 8 (depends on 7)

The system of claim 7, wherein writing the contents of the first-ranked synonym slot for the cache entry to the second-ranked synonym slot for the cache entry demotes an other synonym from the second-ranked synonym slot for the cache entry.

### Claim 9 (depends on 8)

The system of claim 8, wherein the cache directory comprises no more than two synonym slots for the cache entry, and wherein writing the contents of the first-ranked synonym slot for the cache entry to the second-ranked synonym slot for the cache entry demotes the other synonym from the cache directory.

### Claim 10 (depends on 7)

The system of claim 7, wherein the cache directory comprises two or more synonym slots for each cache entry, and wherein a position of each synonym within the synonym slots is based on recent use relative to one or more other synonyms in the synonym slots.

### Claim 11 (depends on 10)

The system of claim 10, wherein the cache directory is absent circuitry, other than the two or more synonym slots, for indicating which synonym was most recently used.

### Claim 12 (depends on 7)

The system of claim 7, the one or more processors further configured to:
receive an other request for an other cache entry, wherein the other request references an other synonym;
determine that the other synonym matches a synonym stored in the second-ranked synonym slot of the other cache entry; and
swap the synonyms in the first-ranked synonym slot and the second-ranked synonym slot of the other cache entry, responsive to determining that the other synonym matches the synonym stored in the second-ranked synonym slot of the other cache entry.

### Claim 13

A computer program product for implementing a least recently used replacement policy for synonyms in a cache directory of a shared cache, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor to cause the processor to perform a method comprising:
receiving a request to access a cache entry in a shared cache, the request referencing a synonym for the cache entry, a cache directory of the shared cache comprising, for each cache entry of the shared cache, a first-ranked synonym slot for storing a most recently used synonym for the cache entry and a second-ranked synonym slot for storing a second most recently used synonym for the cache entry; and
based on receiving the request:
writing contents of the first-ranked synonym slot for the cache entry to the second-ranked synonym slot for the cache entry; and
writing the synonym referenced in the request to the first-ranked synonym slot for the cache entry.

### Claim 14 (depends on 13)

The computer program product of claim 13, wherein writing the contents of the first-ranked synonym slot for the cache entry to the second-ranked synonym slot for the cache entry demotes an other synonym from the second-ranked synonym slot for the cache entry.

### Claim 15 (depends on 14)

The computer program product of claim 14, wherein the cache directory comprises no more than two synonym slots for the cache entry, and wherein writing the contents of the first-ranked synonym slot for the cache entry to the second-ranked synonym slot for the cache entry demotes the other synonym from the cache directory.

### Claim 16 (depends on 13)

The computer program product of claim 13, wherein the cache directory comprises two or more synonym slots for each cache entry, and wherein a position of each synonym within the synonym slots is based on recent use relative to one or more other synonyms in the synonym slots.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein the cache directory is absent circuitry, other than the two or more synonym slots, for indicating which synonym was most recently used.

### Claim 18 (depends on 13)

The computer program product of claim 13, the method further comprising:
receiving an other request for an other cache entry, wherein the other request references an other synonym;
determining that the other synonym matches a synonym stored in the second-ranked synonym slot of the other cache entry; and
swapping the synonyms in the first-ranked synonym slot and the second-ranked synonym slot of the other cache entry, responsive to determining that the other synonym matches the synonym stored in the second-ranked synonym slot of the other cache entry.
