# US 2022/0292016 A1 · Computer including cache used in plural different data sizes and control method of computer

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

- Number: US 2022/0292016 A1
- Document ID: US20220292016A1
- Status: Published application
- Kind: A1
- Application number: 17/645,839
- Filed: 2021-12-23
- Published: 2022-09-15
- Earliest claimed: 2021-03-09
- Assignees: Fujitsu Limited
- Applicants: Fujitsu Limited
- Inventors: Takashi ENAMI
- Web page: https://patentgrep.com/patent/US20220292016A1

## CPC

- G06F 12/0802: Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F 12/084: with a shared cache
- G06F 12/0842: for multiprocessing or multitasking
- G06F 12/0871: Allocation or management of cache space
- G06F 12/123: with age lists, e.g. queue, most recently used [MRU] list or least recently used [LRU] list
- G06F 2212/1024: Latency reduction
- G06F 2212/225: Hybrid cache memory, e.g. having both volatile and non-volatile portions
- G06F 2212/283: Plural cache memories
- G06F 2212/461: Sector or disk block
- G06F 2212/466: Metadata, control data
- G06F 2212/60: Details of cache memory
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computer includes a memory and a cache holding a part of data stored in the memory in any of a plurality of data regions. In a case of replacing first data of a first data size held in the cache with second data of a second data size larger than the first data size, allocation of data regions of the cache is changed in units of the second data size by referring to a first management list that includes a plurality of first entries that correspond to the plurality of data regions, respectively, for managing priorities of the data regions for each of the plurality of processes, and a second management list that includes a plurality of second entries corresponding to the first entries for a process that uses the first data size, for managing priorities of first data of the first data size held in the data regions.

## Claims

### Claim 1

A computer comprising:
a memory, a cache coupled to the memory and holding a part of data stored in the memory in any of a plurality of data regions, the cache shared by a plurality of processes, and
a processor coupled to the memory and the cache and configured to:
execute the plurality of processes that issue access requests of different data sizes, respectively;
store data according to the data size for each of the plurality of processes in the cache;
access the cache in a case where target data of the access requests is present in the cache; and
change, in a case of replacing first data of a first data size held in the cache with second data of a second data size larger than the first data size, allocation of data regions of the cache in units of the second data size by referring to
a first management list that includes a plurality of first entries that correspond to the plurality of data regions, respectively, for managing priorities of the data regions for each of the plurality of processes, and
a second management list that includes a plurality of second entries corresponding to the first entries for a process that uses the first data size, for managing priorities of first data of the first data size held in the data regions.

### Claim 2 (depends on 1)

The computer according to claim 1, wherein
the processor is further configured to evict, in a case of replacing the first data held in the cache with the second data, first data held in a data region of the second data size that includes the first data to be replaced from the cache.

### Claim 3 (depends on 1)

The computer according to claim 1, wherein
the first entries for a process that uses the second data size hold position information of the data regions in which the second data are held together with the priorities of the data regions,
the first entries for the process that uses the first data size hold position information of the second entries of the second management list together with the priorities of the data regions, and
the second entries hold the position information of the first data held in the data regions together with the priorities of the first data.

### Claim 4 (depends on 1)

The computer according to claim 1, wherein
the processor is further configured to, in the case of replacing the first data held in the cache with the second data;
change a first entry of the lowest priority out of the first entries for the process that uses the first data size to a first entry for a process that uses the second data size; and
make a priority of the changed first entry the highest out of the first entries for the process that uses the second data size.

### Claim 5 (depends on 1)

The computer according to claim 1, wherein
the processor is further configured to:
by referring to an eviction address list that holds addresses of the data evicted from the cache for each of the plurality of processes,
in a case where an address registered in the eviction address list that corresponds to a process that uses the second data size is hit, store an address held in a first entry of the lowest priority out of the first entries for the process that uses the first data size in the eviction address list that corresponds to the process that uses the first data size; and
change the first entry of the lowest priority to a first entry for the process that uses the second data size, and deletes the hit address from the eviction list.

### Claim 6

A control method of a computer comprising a memory and a cache coupled to the memory, holding a part of data stored in the memory in any of a plurality of data regions and shared by a plurality of processes,
wherein the control method comprising:
executing the plurality of processes that issue access requests of different data sizes, respectively;
storing data according to the data size for each of the plurality of processes in the cache;
accessing the cache in a case where target data of the access requests is present in the cache; and
changing, in a case of replacing first data of a first data size held in the cache with second data of a second data size larger than the first data size, allocation of data regions of the cache in units of the second data size by referring to
a first management list that includes a plurality of first entries that correspond to the plurality of data regions, respectively, for managing priorities of the data regions for each of the plurality of processes, and
a second management list that includes a plurality of second entries corresponding to the first entries for a process that uses the first data size, for managing priorities of first data of the first data size held in the data regions.
