# US 2023/0068779 A1 · Method for Evicting Data from Memory

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

- Number: US 2023/0068779 A1
- Document ID: US20230068779A1
- Status: Published application
- Kind: A1
- Application number: 17/797,869
- Filed: 2021-02-26
- Published: 2023-03-02
- Earliest claimed: 2020-03-03
- Assignees: Technische Universität München
- Applicants: Technische Universitat Munchen
- Inventors: Nael Fasfous; Akshay Srivatsa; Nguyen Anh Vu Doan; Thomas Wild; Andreas Herkersdorf
- Web page: https://patentgrep.com/patent/US20230068779A1

## CPC

- G06F 12/0891: using clearing, invalidating or resetting means
- G06F 12/127: using additional replacement algorithms
- G06F 2212/1021: Hit rate improvement
- G06F 2212/1024: Latency reduction
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Provided is a resource manager. The resource manager may be a memory manager which is configured to determine a plurality of eviction rankings, wherein each of the plurality of eviction rankings assigns a position within the eviction ranking to each of a plurality of eviction candidates based on at least one eviction criterion. The memory manager may then select one of said eviction candidates by applying a voting algorithm to the plurality of eviction rankings and cause the selected eviction candidate to be evicted.

## Claims

### Claim 1

A memory manager, the memory manager being configured to:
determine a plurality of eviction rankings, wherein each of the plurality of eviction rankings ranks a plurality of eviction candidates based on at least one eviction criterion;
select one of said eviction candidates by applying a voting algorithm to the plurality of eviction rankings; and
cause the selected eviction candidate to be evicted.

### Claim 2 (depends on 1)

The memory manager of claim 1, wherein, by ranking, each of the plurality of eviction rankings assigns a position within the eviction ranking to each of the plurality of eviction candidates.

### Claim 3 (depends on 1)

The memory manager of claim 1, wherein the voting algorithm determines the most favored eviction candidates across multiple eviction rankings by aggregating measures of favorability derived from the multiple eviction rankings.

### Claim 4 (depends on 1)

The memory manager of claim 1, the memory manager being further configured to:
determine the plurality of eviction rankings in parallel.

### Claim 5 (depends on 1)

The memory manager of claim 1, the memory manager being further configured to:
reapply the voting algorithm to a subset of the plurality of eviction rankings if a tie occurs between candidates, most favored for eviction by the voting algorithm; or
apply another voting algorithm to the plurality of eviction rankings if a tie occurs between candidates that are most favored for eviction by the previously applied voting algorithm.

### Claim 6 (depends on 5)

The memory manager of claim 5, the memory manager being further configured to:
randomly select one of the eviction candidates between which a tie has occurred, if reapplying the voting algorithm or applying the other voting algorithm does not favor one of the candidates previously most favored for eviction by the voting algorithm.

### Claim 7 (depends on 1)

The memory manager of claim 1, wherein the eviction candidates are memory blocks.

### Claim 8

A method of managing a memory, comprising:
determining a first eviction ranking which ranks a plurality of eviction candidates based on at least one first eviction criterion;
determining a second eviction ranking which ranks the plurality of eviction candidates based on at least one second eviction criterion;
determining a first eviction candidate based on the first eviction ranking and the second eviction ranking, by applying a voting algorithm to the first and second eviction rankings; and
evicting the first eviction candidate.

### Claim 9 (depends on 8)

The method of claim 8, wherein evicting the first eviction candidate involves replacing first data stored in the first eviction candidate with second data.

### Claim 10 (depends on 8)

The method of claim 8, wherein the eviction candidates are memory blocks.

### Claim 11 (depends on 10)

The method of managing a memory according to claim 10,
wherein the first and second eviction rankings assign to each block of the memory a position in the first eviction ranking and the second eviction ranking, respectively.

### Claim 12 (depends on 11)

The method of managing a memory according to claim 11,
wherein a memory block to which a lowest position in the first eviction ranking and/or a lowest position in the second eviction ranking is assigned, is excluded from being determined as the first memory block.

### Claim 13 (depends on 10)

The method of managing a memory according to claim 10,
wherein determining the first memory block for eviction based on the first eviction ranking and the second eviction ranking comprises assigning a third value to the first memory block;
wherein the third value is an output of a function which takes a first value assigned to a first position of the first memory block in the first eviction ranking and a second value assigned to a second position of the first memory block in the second eviction ranking as inputs.

### Claim 14 (depends on 13)

The method of managing a memory according to claim 13,
wherein the third value is used to establish a voting result and the first memory block is a memory block to which is assigned a highest position in the voting result.

### Claim 15 (depends on 13)

The method of managing a memory according to claim 13,
wherein determining the first memory block for eviction based on the first eviction ranking and the second eviction ranking further comprises assigning a sixth value to a second memory block;
wherein the sixth value is an output of the function which takes a fourth value assigned to a fourth position of the second memory block in the first eviction ranking and a fifth value assigned to a fifth position of the second memory block in the second eviction ranking as inputs;
wherein, if the sixth value equals the third value, one of the first and second eviction rankings is disregarded for determining the first memory block for eviction.

### Claim 16 (depends on 13)

The method of managing a memory according to claim 13,
wherein the third value is a linear combination of the first value and the second value.

### Claim 17 (depends on 13)

The method of managing a memory according to claim 13, further comprising:
monitoring the eviction decisions for favoritism and adapting the function if favoritism is detected.

### Claim 18 (depends on 10)

The method of managing a memory according to claim 10, further comprising:
determining a third eviction ranking which ranks the plurality of memory blocks based on at least one third eviction criterion;
determining a preliminary voting result based on the first eviction ranking, the second eviction ranking and the third eviction ranking; and
detecting a tie regarding the first memory block and a second memory block, based on the preliminary voting result.

### Claim 19 (depends on 10)

The method of managing a memory according to claim 10, further comprising:
determining a fourth eviction ranking which ranks the plurality of memory blocks based on the at least one first eviction criterion;
determining a fifth eviction ranking which ranks the plurality of memory blocks based on the at least one second eviction criterion;
selecting a third memory block for eviction based on the fourth eviction ranking and the fifth eviction ranking; and
replacing third data stored in the third memory block with fourth data.

### Claim 20 (depends on 10)

The method of managing a memory according to claim 10,
wherein the memory is a cache;
and the method further comprises:
detecting a cache miss in regard to the second data; and
determining that the cache is full.
