Placement policy for memory hierarchies

US10019368B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-10019368-B2
Application numberUS-201514702169-A
CountryUS
Kind codeB2
Filing dateMay 1, 2015
Priority dateMay 29, 2014
Publication dateJul 10, 2018
Grant dateJul 10, 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 placement policy enables the selective storage of cachelines in a multi-level cache hierarchy: Reuse behavior of a cacheline is tracked during execution of an application in both a first level cache memory and a second level cache memory. A cache placement policy for the cacheline is determined based on the tracked reuse behavior.

First claim

Opening claim text (preview).

What is claimed is: 1. A method for selectively storing cachelines in a multi-level cache hierarchy comprising a plurality of cache memories, the method comprising: tracking reuse behavior of at least one cacheline, during execution of an application, in both a first level cache memory and a second level cache memory; the first level cache memory being smaller and faster than the second level cache memory; and determining a cache placement policy by tracking reuse behavior for the at least one cacheline in both the first level cache memory and the second level cache memory and determining the cache placement policy for both the first and the second level cache memories based on the reuse behavior, wherein the cache placement policy includes selectively placing the at least one cacheline in both the first level cache memory and the second level cache memory, wherein each cacheline is part of one of a plurality of datasets and further where the reuse behavior observed for the at least one cacheline is used to determine a cache placement policy for the plurality of cachelines being part of the same dataset as the at least one cacheline. 2. The method of claim 1 , wherein a data portion of cachelines stored in the first level cache memory is stored using SRAM technology. 3. The method of claim 1 , wherein the at least one cacheline is associated with the dataset based, at least in part, on a program counter value associated with an access to the at least one cacheline. 4. The method of claim 3 , wherein the program counter value is one of: (a) a program counter value of a load instruction which brought the at least one cacheline into one of the first level cache memory or the second level cache memory, (b) a program counter value of a load instruction which brought the at least one cacheline into either the first level cache memory or the second level cache memory, (c) a program counter value of an instruction which caused a translation look-aside buffer (TLB) fault, (d) a program counter value of an instruction which caused a cache location buffer (CLB) miss, and (e) a program counter value of an instruction that generated at least one of the cacheline requests that initiated a hardware prefetch stream to start. 5. The method of claim 1 , wherein the at least one cacheline is associated with the dataset based on information from one or more of: (a) a compiler, (b) a runtime system, and (c) a programmer. 6. The method of claim 1 , further comprising: tracking reuse behavior for a plurality of cachelines, which are a subset of all of the cachelines in the first level and second level cache memories. 7. The method of claim 6 , wherein each cacheline stores a learning indicator identifying whether or not it belongs to the subset and indicating that the at least one cacheline's reuse behavior should be tracked. 8. The method of claim 6 , wherein a location table entry stores a learning indicator identifying whether or not its associated cachelines belong to the subset. 9. The method of claim 1 , wherein each cacheline in a cache level stores reuse information recording its reuse in that cache level since it was installed in that cache level, and wherein the cacheline's reuse in that cache level is recorded when the cacheline is replaced by recording the reuse information. 10. The method of claim 9 , wherein the reuse information is a counter of one or more bits that counts a number of reuses at that cache level and stops at the counter's maximum value. 11. The method of claim 9 , wherein the reuse at a cache level is assessed with respect to a dataset by aggregating the reuse information collected from several cachelines belonging to the dataset when the several cachelines are evicted from that cache level. 12. The method of claim 11 , where the aggregated reuse information is collected for a plurality of datasets with respect to a plurality of the cache levels using a reuse history table. 13. The method of claim 11 , where a cache placement policy for a dataset is determined based on the collective reuse behavior information from several cachelines replaced from several cache levels and belonging to the dataset. 14. The method of claim 11 , wherein when the reuse has been determined to be less than a predetermined reuse level at a cache level for a dataset identified at least in part by a program counter value of an instruction that generated at least one of the cacheline requests that initiated a hardware prefetch stream to start, then the instruction associated with that program counter value's ability to start new hardware prefetch streams is downgraded. 15. The method of claim 1 , wherein the reuse behavior is tracked using a reuse history table having a plurality of entries, each entry in the table having a dataset identifier identifying a dataset associated with that table entry, a plurality of reuse counters which count a number of cacheline reuses at both the first cache level and at the second cache level, and a plurality of unused counters which count a number of cachelines which are unused at both the first cache level and the second cache level. 16. The method of claim 1 , wherein the step of determining a cache placement policy for the at least one cacheline based on the tracked reuse behavior further comprises: determining whether the at least one cacheline will be permitted to be installed in either the first level cache or the second level cache. 17. The method of claim 1 , wherein the plurality of cachelines is associated with the dataset based, at least in part, on call stack information associated with accesses to the at least one cacheline. 18. A computer processing system, comprising: at least one processor core for executing an application; a multi-level cache hierarchy comprising a plurality of cache memories at different cache levels; and a mechanism configured to track reuse behavior of at least one cacheline, during execution of the application in both a first level cache memory and a second level cache memory; and determining a cache placement policy based on the tracked reuse behavior, wherein the cache placement policy includes selectively placing one copy of the at least one cacheline in each of the first level cache memory and the second level cache memory; wherein each cacheline is part of one of a plurality of datasets and further where the reuse behavior observed for the at least one cacheline is used to determine a cache placement policy for the plurality of cachelines being part of the same dataset as the at least one cacheline. 19. The computer processing system of claim 18 , wherein the mechanism further comprises each cacheline in a cache level storing reuse information recording its reuse in that cache level since it was installed in that cache level, and wherein the cacheline's reuse in that cache level is recorded when the cacheline is replaced by recording the reuse information. 20. The computer processing system of claim 18 , wherein the mechanism further comprises: a reuse history table having a plurality of entries, each entry in the table having a dataset identifier identifying a dataset associated with that table entry, a plurality of reuse counters which count a number of cacheline reuses at both the first cache level and at the second cache level, and a plurality of unused counters which count a number of cachelines which are unused at both the first cache level and the second cache level. 21. A method for selectively storing cachelines in a multi-level ca

Assignees

Inventors

Classifications

  • using selective caching, e.g. bypass · CPC title

  • Performance improvement · CPC title

  • Using a specific cache allocation policy other than replacement policy · CPC title

  • with prefetch · CPC title

  • Cache with multiple tag or data arrays being simultaneously accessible · 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 US10019368B2 cover?
A placement policy enables the selective storage of cachelines in a multi-level cache hierarchy: Reuse behavior of a cacheline is tracked during execution of an application in both a first level cache memory and a second level cache memory. A cache placement policy for the cacheline is determined based on the tracked reuse behavior.
Who is the assignee on this patent?
Samsung Electronics Co Ltd
What technology area does this patent fall under?
Primary CPC classification G06F12/0811. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Jul 10 2018 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 1 related publication on this page (citations in our corpus or others sharing the same primary CPC).