Cache replacement policy that considers memory access type

US9652398B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-9652398-B2
Application numberUS-201414890904-A
CountryUS
Kind codeB2
Filing dateDec 14, 2014
Priority dateDec 14, 2014
Publication dateMay 16, 2017
Grant dateMay 16, 2017

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.

An associative cache memory, comprising: an array of storage elements arranged as M sets by N ways; an allocation unit allocates the storage elements in response to memory accesses that miss in the cache memory. Each memory access selects a set. Each memory access has an associated memory access type (MAT) of a plurality of predetermined MATs. Each valid storage element has an associated MAT; a mapping that includes, for each MAT, a MAT priority. In response to a memory access that misses in the array, the allocation unit: determines a most eligible way and a second most eligible way of the selected set for replacement based on a replacement policy; and replaces the second most eligible way rather than the most eligible way when the MAT priority of the most eligible way is greater than the MAT priority of the second most eligible way.

First claim

Opening claim text (preview).

The invention claimed is: 1. An associative cache memory, comprising: an array of storage elements arranged as M sets by N ways; an allocation unit that allocates the storage elements of the array in response to memory accesses that miss in the cache memory, wherein each of the memory accesses selects a set of the M sets; wherein each of the memory accesses has an associated memory access type (MAT) of a plurality of predetermined MATs, wherein the MAT is received by the cache memory; wherein each valid storage element of the array has an associated MAT of the plurality of predetermined MATs; a mapping that includes, for each MAT of the plurality of predetermined MATs, a MAT priority; wherein in response to a memory access that misses in the array, the allocation unit: determines a most eligible way and a second most eligible way of the selected set for replacement based on a replacement policy; and replaces the second most eligible way rather than the most eligible way when the MAT priority of the most eligible way is greater than the MAT priority of the second most eligible way. 2. The associative cache memory of claim 1 , wherein the mapping maps each MAT of the plurality of MATs into one of a plurality of mutually exclusive MAT groups, wherein the mapping further includes a priority for each of the MAT groups, wherein the MAT priority of each MAT is the priority of its MAT group. 3. The associative cache memory of claim 1 , wherein the plurality of predetermined MATs includes at least three from the following list: a memory access generated by a hardware prefetcher of the processor; a memory access generated by a floating point instruction; a memory access generated by a fused microinstruction; a memory access generated by a media instruction; a memory access generated by an instruction that modifies a memory address; a memory access generated by a software prefetch instruction; a memory access that loads an architectural descriptor; a memory access generated by an instruction that specifies non-temporal data; a memory access generated by an instruction that performs no alignment checks; a memory access generated by a supervisor privilege level instruction; a memory access generated by a zero extend instruction; a memory access generated by a masked move instruction; a memory access generated by a stack push instruction; and a memory access generated by a hardware tablewalk engine of the processor. 4. A method for operating an associative cache memory having an array of storage elements arranged as M sets by N ways and an allocation unit that allocates the storage elements of the array in response to memory accesses that miss in the cache memory, wherein each of the memory accesses selects a set of the M sets, wherein each of the memory accesses has an associated memory access type (MAT) of a plurality of predetermined MATs, wherein the MAT is received by the cache memory, the method comprising: storing, for each valid storage element of the array, an associated MAT of the plurality of predetermined MATs; storing a mapping that includes, for each MAT of the plurality of predetermined MATs, a MAT priority; in response to a memory access that misses in the array: determining a most eligible way and a second most eligible way of the selected set for replacement based on a replacement policy; and replacing the second most eligible way rather than the most eligible way when the MAT priority of the most eligible way is greater than the MAT priority of the second most eligible way. 5. The method of claim 4 , further comprising: updating the mapping during operation of the cache memory. 6. The method of claim 5 , further comprising: determining that a program is running on the processor; and said updating the mapping in response to said determining that the program is running on the processor. 7. The method of claim 6 , wherein the mapping is determined by offline analysis of the program. 8. The method of claim 7 , wherein, for each MAT of the plurality of predetermined MATs, the priority included in the mapping for the MAT is based on an average cache line lifetime of cache lines allocated in response to memory accesses having the MAT determined by the offline analysis. 9. The method of claim 7 , wherein, for each MAT of the plurality of predetermined MATs, the priority included in the mapping for the MAT is based on an average hit rate of cache lines allocated in response to memory accesses having the MAT determined by the offline analysis. 10. An associative cache memory, comprising: an array of storage elements arranged as M sets by N ways; an allocation unit that allocates the storage elements of the array in response to memory accesses that miss in the cache memory, wherein each of the memory accesses selects a set of the M sets; for each set of the N sets, associated replacement bits used by a replacement policy of the allocation unit to indicate how recently the ways of the selected set have been used relative to one another; wherein each of the memory accesses has an associated memory access type (MAT) of a plurality of predetermined MATs, wherein the MAT is received by the cache memory; a mapping that includes, for each MAT of the plurality of predetermined MATs, a MAT priority; wherein in response to a memory access that misses in the array, the allocation unit: allocates into a replacement way of the selected set; and inserts the replacement way into a position other than at the most recently used position of the replacement bits when the MAT priority of the memory access is lower than a threshold. 11. The associative cache memory of claim 10 , wherein the mapping maps each MAT of the plurality of MATs into one of a plurality of mutually exclusive MAT groups, wherein the mapping further includes a priority for each of the MAT groups, wherein the MAT priority of each MAT is the priority of its MAT group. 12. The associative cache memory of claim 11 , wherein the plurality of predetermined MATs includes at least three from the following list: a memory access generated by a hardware prefetcher of the processor; a memory access generated by a floating point instruction; a memory access generated by a fused microinstruction; a memory access generated by a media instruction; a memory access generated by an instruction that modifies a memory address; a memory access generated by a software prefetch instruction; a memory access that loads an architectural descriptor; a memory access generated by an instruction that specifies non-temporal data; a memory access generated by an instruction that performs no alignment checks; a memory access generated by a supervisor privilege level instruction; a memory access generated by a zero extend instruction; a memory access generated by a masked move instruction; a memory access generated by a stack push instruction; and a memory access generated by a hardware tablewalk engine of the processor. 13. A method for operating an associative cache memory having an array of storage elements arranged as M sets by N ways and an allocation unit that allocates the storage elements of the array in response to memory accesses that miss in the cache memory, wherein each of the memory accesses selects a set of the M sets, wherein each of the memory accesses has an associated memory access type (MAT) of a plurality of predetermined MATs, wherein the MAT is received by the cache memory, wherein the cache memory also includes for each set of the N sets, associated replacement bits used by a replacement policy of the allocation unit to indicate how recently th

Assignees

Inventors

Classifications

  • Reducing the number of cache misses; Data prefetching (cache prefetching G06F12/0862) · CPC title

  • Hit rate improvement · CPC title

  • Details relating to cache allocation · CPC title

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

  • with age lists, e.g. queue, most recently used [MRU] list or least recently used [LRU] list · 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 US9652398B2 cover?
An associative cache memory, comprising: an array of storage elements arranged as M sets by N ways; an allocation unit allocates the storage elements in response to memory accesses that miss in the cache memory. Each memory access selects a set. Each memory access has an associated memory access type (MAT) of a plurality of predetermined MATs. Each valid storage element has an associated MAT; a…
Who is the assignee on this patent?
Via Alliance Semiconductor Co Ltd
What technology area does this patent fall under?
Primary CPC classification G06F12/121. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue May 16 2017 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 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).