# US 2022/0035746 A1 · Efficient cache eviction and insertions for sustained steady state performance

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

- Number: US 2022/0035746 A1
- Document ID: US20220035746A1
- Status: Published application
- Kind: A1
- Application number: 17/504,490
- Filed: 2021-10-18
- Published: 2022-02-03
- Earliest claimed: 2020-01-03
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Vijaya Kumar JAKKULA; Siva RAMINENI; Venkata Bhanu Prakash GOLLAPUDI
- Web page: https://patentgrep.com/patent/US20220035746A1

## CPC

- G06F 12/0891: using clearing, invalidating or resetting means
- G06F 9/3009: {Thread control instructions}
- G06F 9/5016: {the resource being the memory}
- G06F 9/5022: {Mechanisms to release resources}
- G06F 12/0804: with main memory updating (G06F12/0806 takes precedence)
- G06F 12/0806: Multiuser, multiprocessor or multiprocessing cache systems
- G06F 12/0824: {Distributed directories, e.g. linked lists of caches}
- G06F 12/0835: {for main memory peripheral accesses (e.g. I/O or DMA)}
- G06F 12/127: using additional replacement algorithms
- G06F 2209/5011: Pool
- G06F 2209/5022: Workload threshold
- G06F 2212/1021: Hit rate improvement
- G06F 2212/7207: management of metadata or control data
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A distributed metadata cache for a distributed object store includes a plurality of cache entries, an active-cache-entry set and an unreferenced-cache-entry set. Each cache entry includes information relating to whether at least one input/output (IO) thread is referencing the cache entry and information relating to whether the cache entry is no longer referenced by at least one IO thread. Each cache entry in the active-cache-entry set includes information that indicates that at least one IO thread is actively referencing the cache entry. Each cache entry in the unreferenced-cache-entry set is eligible for eviction from the distributed metadata cache by including information that indicates that the cache entry is no longer actively referenced by an IO thread.

## Claims

### Claim 1

A distributed metadata cache for a distributed object store, the distributed metadata cache comprising:
a plurality of cache entries, each cache entry including information relating to whether at least one input/output (IO) thread is referencing the cache entry and information relating to whether the cache entry is no longer referenced by at least one IO thread; and
an active-cache-entry set, each cache entry in the active-cache-entry set including information that indicates that at least one IO thread is actively referencing the cache entry.

### Claim 2 (depends on 1)

The distributed metadata cache of claim 1, further comprising an unreferenced-cache-entry set, each cache entry in the unreferenced-cache-entry set being eligible for eviction from the distributed metadata cache by including information that indicates that the cache entry is no longer actively referenced by an IO thread and information of a decreasing heat condition of the cache entry.

### Claim 3 (depends on 2)

The distributed metadata cache of claim 2, wherein the decreasing heat condition comprises a decreased cache hit of the cache entry over time.

### Claim 4 (depends on 2)

The distributed metadata cache of claim 2, wherein a cache entry in the unreferenced-cache-entry set is released to be a free resource after a predetermined period of time in the unreferenced-cache-entry set.

### Claim 5 (depends on 2)

The distributed metadata cache of claim 2, wherein a cache entry in the unreferenced-cache-entry set is released to be a free resource based on one of IO characteristics of an application, and a rate of consumption of available free resources.

### Claim 6 (depends on 2)

The distributed metadata cache of claim 2, wherein a cache entry in the unreferenced-cache-entry set is released to be a free resource based on an amount of available free resources falling below a predetermined threshold.

### Claim 7 (depends on 1)

The distributed metadata cache of claim 1, wherein the information that each entry in the active-cache-entry set includes comprises a linked list of previous and next pointers.

### Claim 8 (depends on 1)

The distributed metadata cache of claim 1, wherein the information that each entry in the active-cache-entry set includes comprises a searchable tree data structure.

### Claim 9

A distributed metadata cache for a distributed object store, the distributed metadata cache comprising:
a plurality of cache entries, each cache entry including information relating to whether at least one input/output (IO) thread is actively referencing the cache entry and information relating to whether the cache entry is no longer referenced by at least one IO thread; and
an active-cache-entry set, each cache entry in the active-cache-entry set including information that indicates that at least one IO thread is actively referencing the cache entry; and
an unreferenced-cache-entry set, each cache entry in the unreferenced-cache-entry set being eligible for eviction from the distributed metadata cache by including information that indicates that the cache entry is no longer actively referenced by an IO thread; and
a pool of free resources that is available to become a cache entry in response to an IO thread.

### Claim 10 (depends on 9)

The distributed metadata cache of claim 9, further comprising an unreferenced-cache-entry set, each cache entry in the unreferenced-cache-entry set being eligible for eviction from the distributed metadata cache by including information that indicates that the cache entry is no longer actively referenced by an IO thread and information of a decreasing heat condition of the cache entry.

### Claim 11 (depends on 10)

The distributed metadata cache of claim 10, wherein the decreasing heat condition comprises a decreased cache hit of the cache entry over time.

### Claim 12 (depends on 10)

The distributed metadata cache of claim 10, wherein a cache entry in the unreferenced-cache-entry set is released to be a free resource in the pool of free resources after a predetermined period of time in the unreferenced-cache-entry set.

### Claim 13 (depends on 10)

The distributed metadata cache of claim 10, wherein a cache entry in the unreferenced-cache-entry set is released to be a free resource based on one of IO characteristics of an application, and a rate of consumption of available free resources.

### Claim 14 (depends on 10)

The distributed metadata cache of claim 10, wherein a cache entry in the unreferenced-cache-entry set is released to be a free resource in the pool of free resources based on an amount of available free resources falling below a predetermined threshold.

### Claim 15 (depends on 9)

The distributed metadata cache of claim 9, wherein the information that each entry in the active-cache-entry set includes comprises a linked list of previous and next pointers.

### Claim 16 (depends on 9)

The distributed metadata cache of claim 9, wherein the information that each entry in the active-cache-entry set includes comprises a searchable tree data structure.

### Claim 17

A method to manage a distributed metadata cache for a distributed object store, the method comprising:
converting a free resource into a first cache entry in response to the distributed metadata cache receiving an input/output (IO) thread; and
including the first cache entry in a set of active cache entries, each cache entry in the set of active cache entries including information indicating that the cache entry is actively referenced by a one or more corresponding IO threads.

### Claim 18 (depends on 17)

The method of claim 17, further comprising:
including the first cache entry in a set of unreferenced cache entries based on the cache entry no longer being actively referenced by the IO thread, the first cache entry including information indicating that the first cache entry is no longer being actively referenced by the IO thread, and each cache entry in the set of unreferenced cache entries being eligible for eviction from the distributed metadata cache; and
evicting the first cache entry from the set of active cache entries and the set of unreferenced cache entries based on one of a predetermined period of time elapsing while the first cache entry is in the set of unreferenced cache entries, based on IO characteristics of an application, and based on an amount of available free resources falling below a predetermined threshold.

### Claim 19 (depends on 18)

The method of claim 18, wherein including the first cache entry into the set of unreferenced cache entries is further based on a decreased cache hit of the first cache entry over time.

### Claim 20 (depends on 18)

The method of claim 18, wherein evicting the first cache entry from the set of active cache entries and the set of unreferenced cache entries is further based on one of a predetermined period of time elapsing while the first cache entry is in the set of unreferenced cache entries, based on IO characteristics of an application, based on an amount of available free resources falling below a predetermined threshold, and based on a rate of consumption of available free resources.
