Enhancing lifetime of non-volatile cache by injecting random replacement policy
AssigneeAdvanced Micro Devices, Inc.
InventorsZhe Wang, Yuan Xie, Yi Xu, Junli Gu, Ting Cao
Life of this patent
Estimating the term…
Abstract
A method, a system and a computer-readable medium for writing to a non-volatile cache memory are provided. The method maintains a write count associated with a set of memory locations. The method then selects a cache replacement policy based on the value of the write count and selecting a block within the set for writing data using the selected cache replacement policy. The selected cache replacement policy can introduce a randomized selection.
Claims18
A computer-implemented method for writing to a memory, the method comprising:
- maintaining a write count value associated with a set of memory locations in a cache memory, wherein the write count value is incremented for each write to the set of memory locations;
- selecting a block offset shift scheme as the cache replacement policy based on the write count value;
- and
- mapping a logical block within the set for writing data to a physical block using the block offset shift scheme.
A system comprising:
- a processor;
- and
- a memory configured to store information that causes the processor to perform operations comprising:
- maintaining a write count value associated with a set of memory locations in a cache memory, wherein the write count value is incremented for each write to the set of memory locations;
- selecting a block offset shift scheme as a cache replacement policy based on the write count value;
- and
- mapping a logical block within the set for writing data to a physical block using the block offset shift scheme.
A non-transitory computer-readable storage medium having instructions stored thereon, execution of which by a processor cause the processor to perform operations, the operations comprising:
- maintaining a write count value associated with a set of memory locations in a cache memory, wherein the write count value is incremented for each write to the set of memory locations;
- selecting a block offset shift scheme as a cache replacement policy based on the write count value;
- and
- mapping a logical block within the set for writing data to a physical block using the block offset shift scheme.
Dependencies are inferred from the claim text.