PARITY CACHE FOR RAID RELIABILITY, ACCESSIBILITY, AND SERVICEABILITY OF A MEMORY DEVICE

Information

  • Patent Application
  • 20230229556
  • Publication Number
    20230229556
  • Date Filed
    August 26, 2022
    a year ago
  • Date Published
    July 20, 2023
    9 months ago
Abstract
There are provided methods and systems for improving RAS features of a memory device. For example, there is provided a system that includes a memory and a memory side cache. The system further includes a processor that is configured to minimize accesses to the memory by executing certain operations. The operations can include computing a new parity based on old data, new data, and an old parity in response to data from the memory side cache being written to the memory.
Description
FIELD OF TECHNOLOGY

This disclosure relates generally to one or more systems and methods for memory, particularly to improved reliability, accessibility, and serviceability (RAS) in a memory device.


BACKGROUND

Memory devices deploy a variety of mechanisms to improve RAS features in cases of component failures. Although the use of redundant array of independent disks (RAID) as a RAS solution has traditionally been reserved for storage devices, there are compelling performance reasons to consider the use of RAID protocols as part of a RAS solution for memory devices as well.


For instance, a RAID 5 RAS solution for a memory device would achieve a high level of parallelism when compared with other RAS approaches due to striping data across the memory device channels. However, using RAID in this manner can result in significant increases in the number of requests serviced by the memory device due to the overhead of reading and writing data to calculate and store parity data. As such, utilizing RAID to improve RAS features of a memory device is not practical in the state-of-the-art.


SUMMARY

The embodiments provided herein help mitigate or solve the aforementioned issues as well as other issues known in the art. For example, and not by limitation, they provide a separate parity cache that is deployed as a last level cache on a memory device. The usage of this parity cache along with specific optimizations in the data access patterns for calculating and storing parity data result in significant decreases in the overhead resulting from the RAID RAS solution as it applies to the memory, thus making this implementation suitable for applications that require high-bandwidth access for read/write operations, such as in novel compute express link (CXL) applications.


An example embodiment includes a system that includes a memory and a memory side cache. The system further includes a processor that is configured to minimize accesses to the memory by executing certain operations. The operations can include computing a new parity based on old data, new data, and an old parity in response to data from the memory side cache being written to the memory.


Another example embodiment includes a method for use by a memory controller of a memory. The method can include determining whether data from a memory side cache has been written to the memory. Furthermore, in response to the data having been written in the memory, the method can include computing a new parity using old data, new data, and an old parity.


Additional features, modes of operations, advantages, and other aspects of various embodiments are described below with reference to the accompanying drawings. It is noted that the present disclosure is not limited to the specific embodiments described herein. These embodiments are presented for illustrative purposes only. Additional embodiments, or modifications of the embodiments disclosed, will be readily apparent to persons skilled in the relevant art(s) based on the teachings provided.





BRIEF DESCRIPTION OF THE DRAWINGS

Illustrative embodiments may take form in various components and arrangements of components. Illustrative embodiments are shown in the accompanying drawings, throughout which like reference numerals may indicate corresponding or similar parts in the various drawings. The drawings are only for purposes of illustrating the embodiments and are not to be construed as limiting the disclosure. Given the following enabling description of the drawings, the novel aspects of the present disclosure should become evident to a person of ordinary skill in the relevant art(s).



FIG. 1 illustrates a RAID scheme according to an embodiment.



FIG. 2 illustrates a memory device architecture according to an embodiment.



FIG. 3 illustrates a method according to an embodiment.





DETAILED DESCRIPTION

While the illustrative embodiments are described herein for particular applications, it should be understood that the present disclosure is not limited thereto. Those skilled in the art and with access to the teachings provided herein will recognize additional applications, modifications, and embodiments within the scope thereof and additional fields in which the present disclosure would be of significant utility.


An example embodiment provides for a separate parity cache that is deployed as a last level cache on a memory device. Use of this parity cache along with specific optimizations in the data access patterns for calculating and storing parity data can result in significant decreases in the overhead resulting from RAID RAS solutions.



FIG. 1 illustrates a RAID system 100 according to an embodiment. For example, and without limitation, the RAID system 100 may be a RAID 5 controller. In this example configuration, data included in a data cache 101 is fetched by a RAID 5 controller 103. The data is striped and stored onto all but one channel (105a) of each redundant storage area 107. The last channel stores parity data for that stripe, for redundancy purposes. Which channels are used for data or parity alternates may alternate for each stripe. When used with a memory, the embodiment includes a memory side cache that performs traditional caching for data accesses to and from the memory device.


When data from the memory side cache is written to the memory device, a new parity value is calculated. In order to avoid reading from every channel, for example, and not by limitation, the following operation is used to calculate the new parity value: new parity=old data XOR new data XOR old parity. One of ordinary skill in the art will readily recognize that the new parity value can be calculated using other operations that are based on the old data, the new data, and the old parity, without departing from the scope of the example embodiments disclosed herein.


The above noted operation includes at most two reads and two writes. They are a read old data, a read of the old parity, and after the new parity is calculated, a write of the new data, and a write of the new parity. The new parity, which will be the old parity of after subsequent data updates, is saved in a dedicated parity cache between the memory side cache and the memory device.



FIG. 2 illustrates an exemplary memory device 200 according to an embodiment. The device 200 may include a front-end 201, which may include PCIe and/or CXL controllers to allow connectivity of the memory with other components in a larger system. The device 200 may further include a controller 202 with subcomponents that include a data cache, a parity cache, and a RAID controller, and bank of CRC encoding/decoding blocks that are configured to verify data integrity. The device 200 may further include a back-end 203 that is configured provide controllability and interfacing capabilities to physical layers such as a memory array.


Generally, the device 200 may be in the form of digital logic hardware capable of receiving, transmitting, and effecting calculations on digital data. For example, and without limitation, a parity calculation as effected in the controller 202 may be as follows. For every update to data in the memory side cache, the controller 202, which may be referred to as a process, can determine whether a cacheline for this data update is not already in the parity cache. If not, the cacheline is brought into the parity cacheline.


Before overwriting the cacheline, the processor may be configured to update the parity and then read the old parity value. The new parity value is then calculated as described above and the new parity value is written into the parity cache. With this approach, when a dirty line is evicted from the memory side cache, the parity value has already been calculated and written to the parity cache.



FIG. 3 illustrates a method 300 that may be executed by the controller 202 described above and in reference to FIG. 2. The method 300 begins at step 301, and it includes receiving a data update (step 303). Upon receipt, at decision block 305, the controller 202 is configured to determine whether a cacheline for the update is already in the parity cache. If yes, the method 300 proceeds to step 307. If not, the cacheline for the update is brought into the parity cache at step 305. At step 307, the parity is updated in the parity cache. Then, the controller 202 is configured to read the old parity (step 309), and the new parity is calculated as described above (step 311). The new parity is then written into the parity cache at step 313, and the method 300 ends at step 315, until it is executed again for a new data update.


A common application access pattern can have very high write hit rates (e.g., in cases of read-modify-write). As a result, the old data needed is frequently already in the memory side cache. Furthermore, data access patterns where a cacheline is modified multiple times before it is evicted are also common. In these cases, the old parity value is frequently in the RAID parity cache. Therefore, the old parity value needed is frequently already in the parity cache. Utilizing memory traces from a variety of applications, experimental results that utilize the novel architecture and scheme of this embodiment have yielded at least a 20% reduction in the amount of data transferred to/from the memory device with a parity cache that is sized about ⅛th as big as the memory side cache. As such, generally, the parity cache can be smaller than the memory side cache, suggesting that the embodiments do not significantly increase overall device complexity.


Generally, the embodiments presented herein provide hardware and software solutions from improving RAS features of a memory device without compromising speed. Specifically, the embodiments provide a significant reduction in the amount of memory data transferred when using RAID as part of a memory device RAS solution. This reduction in overhead enables the use of a RAID RAS solution which brings excellent memory device parallelism due to striping the data across all the channels of the memory device.


For example, and without limitation, there is provided a system that includes a memory and a memory side cache. The system further includes a processor that is configured to minimize accesses to the memory by executing certain operations. The operations can include computing a new parity based on old data, new data, and an old parity in response to data from the memory side cache being written to the memory. Computing the new parity can include an exclusive OR (XOR) operation. More particularly, computing the new parity can include computing the old data exclusive ORed with the new data exclusive ORed with the old parity. The processor may be further configured is configured to compute the new parity without reading from every channel of the memory.


The processor may be configured to compute the new parity with at most two memory reads and at most two memory writes, and the system may further include a dedicated parity cache to save the new parity for subsequent use. The operations may further include detecting an update in the data in the memory side cache and determining whether a cacheline for the update is not in the memory side cache. Furthermore, in response to the cacheline being absent from the memory side cache, the operations can further include writing the cacheline into the memory side cache, updating the parity before overwriting the cacheline, and writing the new parity value to the memory side cache.


Another example embodiment includes a method for use by a memory controller of a memory. The method can include determining whether data from a memory side cache has been written to the memory. Furthermore, in response to the data having been written in the memory, the method can include computing a new parity using old data, new data, and an old parity.


The method can further include computing the new parity includes an exclusive OR (XOR) operation. More particularly, the method can include computing the new parity includes using the old data exclusive ORed with the new data exclusive ORed with the old parity. The method may further comprise computing the new parity without reading from every channel of the memory. The method can further include computing the new parity with at most two memory reads and at most two memory writes, and it can include saving parity information in a dedicated.


Furthermore, the method can include detecting an update in the data in the memory side cache and determining whether a cacheline for the update is not in the memory side cache. Moreover, in response to the cacheline being absent from the memory side cache, writing the cacheline into the memory side cache. The method can further include updating the parity before overwriting the cacheline and reading the old parity value. The method can further include writing the new parity value to the memory side cache.


Those skilled in the relevant art(s) will appreciate that various adaptations and modifications of the embodiments described above can be configured without departing from the scope and spirit of the disclosure. Therefore, it is to be understood that, within the scope of the appended claims, the disclosure may be practiced other than as specifically described herein.

Claims
  • 1. A system, comprising: a memory;a memory side cache;a processor configured to minimize access to the memory by executing operations including:in response to data from the memory side cache being written to the memory, computing a new parity using old data, new data, and an old parity.
  • 2. The system of claim 1, wherein computing the new parity includes an exclusive OR (XOR) operation.
  • 3. The system of claim 1, wherein computing the new parity includes computing the old data exclusive ORed with the new data exclusive ORed with the old parity.
  • 4. The system of claim 1, wherein the processor is configured to compute the new parity without reading from every channel of the memory.
  • 5. The system of claim 1, wherein the processor is configured to compute the new parity with at most two memory reads and at most two memory writes.
  • 6. The system of claim 1, further including a dedicated parity cache.
  • 7. The system of claim 1, wherein the operations further include: detecting an update in the data in the memory side cache;determining whether a cacheline for the update is not in the memory side cache;in response to the cacheline being absent from the memory side cache, writing the cacheline into the memory side cache;updating the parity before overwriting the cacheline.
  • 8. The system of claim 7, wherein the operations further include reading the old parity value.
  • 9. The system of claim 8, further comprising writing the new parity value to the memory side cache.
  • 10. A method for use by a memory controller of a memory, the method comprising: determining whether data from a memory side cache has been written to the memory; andin response to the data having been written in the memory, computing a new parity using old data, new data, and an old parity.
  • 11. The method of claim 10, wherein computing the new parity includes an exclusive OR (XOR) operation.
  • 12. The method of claim 10, wherein computing the new parity includes computing the old data exclusive ORed with the new data exclusive ORed with the old parity.
  • 13. The method of claim 10, further comprising computing the new parity without reading from every channel of the memory.
  • 14. The method of claim 10, further comprising computing the new parity with at most two memory reads and at most two memory writes.
  • 15. The method of claim 10, further including saving parity information in a dedicated parity cache.
  • 16. The method of claim 10, further including: detecting an update in the data in the memory side cache; anddetermining whether a cacheline for the update is not in the memory side cache.
  • 17. The method of claim 16, further including: in response to the cacheline being absent from the memory side cache, writing the cacheline into the memory side cache.
  • 18. The method of claim 17, further including updating the parity before overwriting the cacheline.
  • 19. The method of claim 18, further including reading the old parity value.
  • 20. The method of claim 19, further comprising writing the new parity value to the memory side cache.
CROSS-REFERENCE TO RELATED APPLICATION

This application claims priority to U.S. Provisional Application No. 63/301,021 filed on Jan. 19, 2022, titled “Parity cache for RAID RAS”, which is hereby expressly incorporated herein by reference in its entirety.

Provisional Applications (1)
Number Date Country
63301021 Jan 2022 US