Methods to efficiently implement coarse granularity cache eviction

US9892044B1 · US · B1

Patent metadata
FieldValue
Publication numberUS-9892044-B1
Application numberUS-201514609889-A
CountryUS
Kind codeB1
Filing dateJan 30, 2015
Priority dateJan 30, 2015
Publication dateFeb 13, 2018
Grant dateFeb 13, 2018

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

A data processing system and methods for performing cache eviction are disclosed. An exemplary method includes maintaining a metadata set for each cache unit of a cache device at a sub-cache unit granularity, wherein the cache device comprises a plurality of cache units, each cache unit having a plurality of segments, wherein the cache device is accessible by a cache client at a segment granularity. The exemplary method further includes in response to determining that a cache eviction is to be performed, selecting a predetermined number of cache units from the plurality of cache units, determining a score for each of the selected cache units based on the respective metadata set maintained at the sub-cache unit granularity, and evicting one or more of the selected predetermined number of cache units based on their scores. The metadata may include, for example, last access time (LAT) metadata, an access count, and hotness metadata, and metadata may be maintained at a segment or a segment group granularity.

First claim

Opening claim text (preview).

What is claimed is: 1. A computer-implemented method, the method comprising: maintaining a metadata set for each cache unit of a cache device at a segment granularity, wherein the cache device comprises a plurality of cache units, each cache unit having a plurality of segments, wherein the cache device is accessible by a cache client at the segment granularity; in response to determining that a cache eviction is to be performed: selecting a predetermined number of cache units from the plurality of cache units, and determining a score for each of the selected predetermined number of cache units based on the respective metadata set maintained at the segment granularity, a deletion hint (DH) ratio, and a probability that deprecated segments in the cache unit revert back to being non-deprecated, wherein the DH ratio is indicative of a ratio of a number of segments in the cache unit with DH being active to the total number of segments in the cache unit, wherein the number of segments in the cache unit with DH being active is included in the metadata set; and evicting one or more of the selected predetermined number of cache units based on their respective scores. 2. The method of claim 1 , wherein maintaining the metadata set for each cache unit of the cache device at the sub-cache unit granularity comprises: maintaining last access time (LAT) metadata, wherein the LAT metadata indicates when a segment or segment group was last accessed; and maintaining priority metadata, wherein the priority metadata indicates priority of a segment or segment group. 3. The method of claim 1 , wherein maintaining the metadata set for each cache unit of the cache device at the sub-cache unit granularity comprises: maintaining access count metadata, wherein the access count metadata indicates how many times a segment or segment group has been accessed. 4. The method of claim 1 , wherein maintaining the metadata set for each cache unit of the cache device at the sub-cache unit granularity comprises: maintaining hotness metadata, wherein the hotness metadata contains a value which increases each time a segment or segment group is accessed, and decreases each time a segment or segment group is not accessed for a predetermined time period. 5. The method of claim 1 , wherein maintaining the metadata set for each cache unit of the cache device at the sub-cache unit granularity comprises maintaining the metadata set at a segment granularity. 6. The method of claim 1 , wherein maintaining the metadata set for each cache unit of the cache device at the sub-cache unit granularity comprises maintaining the metadata set at a segment group granularity. 7. The method of claim 1 , wherein for each cache unit, the score for each sub-cache unit of the cache unit is determined based further on a last access time indicative of a time when the sub-cache unit was last accessed, and a current time. 8. The method of claim 1 , wherein determining the score for each of the selected predetermined number of cache units comprises: determining each score based on a plurality of metadata, wherein each metadata is assigned a different weight. 9. A non-transitory computer-readable storage medium having computer code stored therein, which when executed by a processor, causes the processor to perform operations comprising: maintaining a metadata set for each cache unit of a cache device at a segment granularity, wherein the cache device comprises a plurality of cache units, each cache unit having a plurality of segments, wherein the cache device is accessible by a cache client at the segment granularity; in response to determining that a cache eviction is to be performed: selecting a predetermined number of cache units from the plurality of cache units, and determining a score for each of the selected predetermined number of cache units based on the respective metadata set maintained at the segment granularity, a deletion hint (DH) ratio, and a probability that deprecated segments in the cache unit revert back to being non-deprecated, wherein the DH ratio is indicative of a ratio of a number of segments in the cache unit with DH being active to the total number of segments in the cache unit, wherein the number of segments in the cache unit with DH being active is included in the metadata set; and evicting one or more of the selected predetermined number of cache units based on their respective scores. 10. The non-transitory computer-readable storage medium of claim 9 , wherein maintaining the metadata set for each cache unit of the cache device at the sub-cache unit granularity comprises: maintaining last access time (LAT) metadata, wherein the LAT metadata indicates when a segment or segment group was last accessed; and maintaining priority metadata, wherein the priority metadata indicates priority of a segment or segment group. 11. The non-transitory computer-readable storage medium of claim 9 , wherein maintaining the metadata set for each cache unit of the cache device at the sub-cache unit granularity comprises: maintaining access count metadata, wherein the access count metadata indicates how many times a segment or segment group has been accessed. 12. The non-transitory computer-readable storage medium of claim 9 , wherein maintaining the metadata set for each cache unit of the cache device at the sub-cache unit granularity comprises: maintaining hotness metadata, wherein the hotness metadata contains a value which increases each time a segment or segment group is accessed, and decreases each time a segment or segment group is not accessed for a predetermined time period. 13. The non-transitory computer-readable storage medium of claim 9 , wherein maintaining the metadata set for each cache unit of the cache device at the sub-cache unit granularity comprises maintaining the metadata set at a segment granularity. 14. The non-transitory computer-readable storage medium of claim 9 , wherein maintaining the metadata set for each cache unit of the cache device at the sub-cache unit granularity comprises maintaining the metadata set at a segment group granularity. 15. The non-transitory computer-readable storage medium of claim 9 , wherein for each cache unit, the score for each sub-cache unit of the cache unit is determined based further on a last access time indicative of a time when the sub-cache unit was last accessed, and a current time. 16. The non-transitory computer-readable storage medium of claim 9 , wherein determining the score for each of the selected predetermined number of cache units comprises: determining each score based on a plurality of metadata, wherein each metadata is assigned a different weight. 17. A data processing system, comprising: a cache device comprising a plurality of cache units, each cache unit having a plurality of segments; a set of one or more processors; and a non-transitory machine-readable storage medium storing instructions, which when executed, causes the set of one or more processors to: maintain a metadata set for each cache unit of the cache device at a segment granularity, wherein the cache device is accessible by a cache client at the segment granularity; in response to determining that a cache eviction is to be performed: select a predetermined number of cache units from the plurality of cache units, and determine a score for each of the selected predetermined number of cache units based on the respective metadata set maintained at the segment granularity, a deletion hint (DH) ratio, and a probability that deprecated segments in the cache unit revert ba

Assignees

Inventors

Classifications

  • Details of cache specific to multiprocessor cache arrangements · CPC title

  • with special data handling, e.g. priority of data or instructions, handling errors or pinning · CPC title

  • using replacement algorithms · CPC title

  • in combination with broadcast means (e.g. for invalidation or updating) · CPC title

  • Metadata, control data · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US9892044B1 cover?
A data processing system and methods for performing cache eviction are disclosed. An exemplary method includes maintaining a metadata set for each cache unit of a cache device at a sub-cache unit granularity, wherein the cache device comprises a plurality of cache units, each cache unit having a plurality of segments, wherein the cache device is accessible by a cache client at a segment granula…
Who is the assignee on this patent?
Emc Ip Holding Co Llc
What technology area does this patent fall under?
Primary CPC classification G06F12/0833. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Feb 13 2018 00:00:00 GMT+0000 (Coordinated Universal Time) (B1). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 3 related publications on this page (citations in our corpus or others sharing the same primary CPC).