# US 2022/0283948 A1 · Tag size reduction using multiple hash functions

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

- Number: US 2022/0283948 A1
- Document ID: US20220283948A1
- Status: Published application
- Kind: A1
- Application number: 17/751,049
- Filed: 2022-05-23
- Published: 2022-09-08
- Earliest claimed: 2022-05-23
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Kermin CHOFLEMING; Yu BAI
- Web page: https://patentgrep.com/patent/US20220283948A1

## CPC

- G06F 12/0864: using pseudo-associative means, e.g. set-associative or hashing
- G06F 12/0891: using clearing, invalidating or resetting means
- G06F 12/126: with special data handling, e.g. priority of data or instructions, handling errors or pinning
- G06F 2212/1021: Hit rate improvement
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

An example of a system using two-stage, the cache tag is stored in a primary and a secondary tag memories. When requesting data, the system searches the cache to retrieve the data, an operation that involves cache tag lookup. Cache tag lookup is performed by cache management. The cache management receives a cache tag for reading data from the cache memory. The cache management selects a hash function from a group of hash functions and computes a primary lookup tag using the selected hash function and the cache tag. The cache management compares the primary lookup tag to the contents of the primary tag memory to determine if there is a hit. If there is no hit, the cache management selects another hash function and repeats the search in the primary tag memory.

## Claims

### Claim 1

An apparatus for cache management, comprising:
a primary tag memory to store primary tags computed from a first portion of cache tags, where the first portion is less than all bits of a cache tag; and
circuitry coupled to the primary tag memory to:
receive a cache tag for data to be read from a cache memory,
select a hash function from a group of hash functions,
compute a primary lookup tag from the selected hash function and the cache tag, and
compare the primary lookup tag to contents of the primary tag memory to determine if there is a hit.

### Claim 2 (depends on 1)

The apparatus for cache management of claim 1, wherein the circuitry is to select the primary lookup tag with a least number of hits.

### Claim 3 (depends on 2)

The apparatus for cache management of claim 2, comprising a hash index memory wherein:
each hash function of the group of hash functions is to be associated with a hash index, and
in response to a replacement request, the circuitry is to:
select a first hash function of the group of hash functions used to compute the primary lookup tag with the least number of hits with the contents of the primary tag memory,
write the primary lookup tag in the primary tag memory, and
write the hash index associated with the first hash function in the hash index memory.

### Claim 4 (depends on 1)

The apparatus for cache management of claim 1, wherein the circuitry is to:
perform a first tag match against a primary tag stored in the primary tag memory; and, if a match is found,
perform a second tag match against a second portion of the cache tag stored in a secondary tag memory.

### Claim 5 (depends on 1)

The apparatus for cache management of claim 1, wherein the primary tag memory is a static random access memory (SRAM).

### Claim 6 (depends on 5)

The apparatus for cache management of claim 5 comprising a secondary tag memory to store a second portion of the cache tag wherein the secondary tag memory is a dynamic random access memory (DRAM).

### Claim 7 (depends on 1)

The apparatus for cache management of claim 1, wherein the group of hash functions comprises independent hash functions.

### Claim 8 (depends on 1)

The apparatus for cache management of claim 1, wherein
a number of hash functions in the group of hash functions is smaller than number of available hash functions, and
the circuitry comprising a configuration circuitry to determine which hash functions to include in the group of hash functions.

### Claim 9

A compute system, comprising:
a processor;
a memory;
a cache memory; and
an apparatus for cache management comprising:
a primary tag memory to store a first portion of cache tags, where the first portion is less than all bits of a cache tag; and
circuitry coupled to the primary tag memory to:
receive a cache tag for data to be read from a cache memory,
select a hash function from a group of hash functions,
compute a primary lookup tag from the selected hash function and the cache tag, and
compare the primary lookup tag to contents of the primary tag memory to determine if there is a hit.

### Claim 10 (depends on 9)

The compute system of claim 9, wherein the circuitry of the apparatus for cache management is to select the primary lookup tag with a least number of hits.

### Claim 11 (depends on 10)

The compute system of claim 10, wherein the apparatus for cache management comprising a hash index memory wherein:
each hash function of the group of hash functions is to be associated with a hash index, and
in response to a replacement request, the circuitry is to:
select a first hash function of the group of hash functions used to compute the primary lookup tag with the least number of hits with the contents of the primary tag memory,
write the primary lookup tag in the primary tag memory, and
write the hash index associated with the first hash function in the hash index memory.

### Claim 12 (depends on 9)

The compute system of claim 9, wherein the circuitry of the apparatus for cache management is to:
perform a first tag match for an access request against the first portion of the cache tag stored in the primary tag memory; and, if a match is found,
perform a second tag match for the access request against a second portion of the cache tag stored in a secondary tag memory.

### Claim 13 (depends on 9)

The compute system of claim 9, wherein the group of hash functions of the apparatus for cache management is to include independent hash functions.

### Claim 14 (depends on 9)

The compute system of claim 9, wherein
a number of hash functions in the group of hash functions in the apparatus for cache management is smaller than number of available hash functions, and
the circuitry of the apparatus for cache management comprising a configuration circuitry to determine which hash functions to include in the group of hash functions.

### Claim 15

A method for cache management, comprising:
receiving a cache tag for data to be read from a cache memory;
selecting a hash function from a group of hash functions;
computing a primary lookup tag from the selected hash function and the cache tag;
comparing the primary lookup tag to contents of a primary tag memory; and
determining there is a cache hit when primary lookup tag matching the contents of the primary tag memory and a cache miss when primary lookup tag not matching the contents of the primary tag memory.

### Claim 16 (depends on 15)

The method for cache management of claim 15, comprising selecting the primary lookup tag with a least number of hits.

### Claim 17 (depends on 16)

The method for cache management of claim 16, comprising:
associating each hash function of the group of hash functions with a hash index;
selecting a first hash function of the group of hash functions used to compute the primary lookup tag with the least number of hits with the contents of the primary tag memory;
writing the primary lookup tag in the primary tag memory; and
writing the hash index associated with the first hash function in a hash index memory.

### Claim 18 (depends on 15)

The method for cache management of claim 15, comprising:
performing a first tag match for an access request against a first portion of the cache tag stored in a primary tag memory; and, if a match is found,
performing a second tag match for the access request against a second portion of the cache tag stored in a secondary tag memory.

### Claim 19 (depends on 15)

The method for cache management of claim 15, wherein the group of hash functions includes independent hash functions.

### Claim 20 (depends on 15)

The method for cache management of claim 15, comprising:
configuring the group of hash functions from available hash functions, wherein a number of hash functions in the group of hash functions is smaller than a number of available hash functions.
