High-performance persistent storage
By introducing offline module storage and supercapacitors into NVDIMM devices and backing up DRAM content to SSD, the problems of small capacity, data scrambling and low management quality of NVDIMM devices are solved, and an efficient and secure persistent memory solution is achieved.
Patent Information
- Application Number
- CN202110835295.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2016-05-11
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2036-05-11
AI Technical Summary
Existing NVDIMM devices contain DRAM and NAND memory controllers, resulting in reduced storage capacity, changes in signal integrity leading to data scrambling problems, low management quality, high costs, and data is simply copied when power fails, easily leading to data security. Sexually impaired.
Energy-backup hybrid memory modules using offline module storage provide backup power through supercapacitors or rechargeable batteries, backing up DRAM contents to solid-state drives (SSDs) in the event of power failure, achieving data persistence and high-capacity storage , while allowing multiple hybrid memory modules to share storage media through multiplexers and sequencing logic, reducing overall costs.
It achieves higher DRAM capacity utilization, reduces total cost of ownership, improves system reliability and availability, supports data scrambling features, enhances data security, and enables high-quality RAS capabilities through standard SSDs.
Smart Images

Figure CN113535093B_ABST
Abstract
Description
[0001] This case is a divisional application. The invention name of the parent case is “High-Performance Persistent Memory”, the application date is November 24, 2017, and the application number is 201680030358.6. Technical Field
[0002] The embodiments described herein relate generally to the field of electronic devices, and more particularly to persistent memory solutions with volatile memory capabilities. Background Art
[0003] Computational processing may be required in different types of operations, and different types of computer memory may be selected depending on the particular operation. In certain operations, there are advantages in utilizing non-volatile memory for at least a portion of the operating memory in addition to or as an alternative to volatile memory such as DRAM (dynamic random access memory).
[0004] Computing systems typically include both volatile and nonvolatile memory. Since volatile memory does not retain contents in the absence of power, when power is removed from the volatile storage device, the contents of the volatile memory are no longer available. Typically, when a loss of power is detected, the contents of the volatile memory are moved to nonvolatile memory. Both volatile and nonvolatile memory types are provided because accessing volatile memory is faster than accessing nonvolatile memory.
[0005] A memory module, such as a dual in-line memory module (DIMM), includes multiple memory devices. The memory devices may include volatile and non-volatile memory devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0006] The embodiments described herein are illustrated by way of example and not limitation in the figures of the accompanying drawings in which like reference numerals refer to similar elements.
[0007] Figure 1 is a diagram of an embodiment of an energy backup hybrid memory module with off module storage;
[0008] Figure 2 is a diagram of an NVDIMM storage device;
[0009] Figure 3 is a diagram of an embodiment of an energy-backed hybrid memory module having offline module reinforcement storage;
[0010] Figure 4 is an illustration of an embodiment of a system including an energy-backed hybrid memory module having offline module reinforcement storage;
[0011] Figure 5is a diagram of a system utilizing NVDIMM devices;
[0012] Figure 6 is an illustration of an embodiment of a system including an energy-backed hybrid memory module having offline device reinforcement storage;
[0013] Figure 7 is a flow chart utilized to illustrate a process for recovery operations according to an embodiment;
[0014] Figure 8 is a flow chart illustrating a process for memory operation in the event of power loss according to an embodiment; and
[0015] Fig. 9 is an illustration of an embodiment of an electronic device or system including an energy backup hybrid memory module with offline module storage. DETAILED DESCRIPTION
[0016] The embodiments described herein generally relate to high-performance persistent memory.
[0017] For the purpose of this description:
[0018] "Main memory" or "primary storage" is computer memory that a processor or computer primarily accesses for programs and data. Main memory is typically volatile memory, such as dynamic random access memory (DRAM).
[0019] "Non-volatile memory" means a memory that retains a stored value without being connected to a power source. Non-volatile memory may include, but is not limited to, NAND memory, NOR memory, or other suitable non-volatile memory, such as phase change memory (PCM), byte-addressable three-dimensional cross-point memory, resistive memory, nanowire memory, ferroelectric transistor random access memory (FeTRAM), magnetoresistive random access memory (MRAM) memory incorporating memristor technology, spin transfer torque (STT)-MRAM, byte-addressable random access non-volatile memory, and other technologies included in a non-volatile memory chip. As used herein, NAND memory may be referred to as "NAND".
[0020] "DIMM" or "dual in-line memory module" means a module that includes a circuit board and a plurality of computer memory integrated circuits (ICs, also known as memory chips), wherein the circuit board includes separate electrical contacts on each side of the circuit board to enable electrical components to be mounted on each side. A DIMM that includes at least some DRAM components may be referred to as a DRAM DIMM.
[0021] As used herein, NVDIMM is a class or type of DRAM DIMM. An NVDIMM unit typically includes a DRAM device interfaced to a memory controller along with non-volatile memory such as NAND memory. During a power failure condition, the contents of the DRAM are saved by the memory controller to the non-volatile memory.
[0022] However, due to the fact that NVDIMMs contain both DRAM media and non-volatile memory media, the capacity of conventional devices is limited, thereby reducing the amount of physical space available within the DIMM for the DRAM media. Due to this limitation, the memory capacity of NVDIMM devices is significantly less than the capacity of DIMMs containing only DRAM devices.
[0023] In some embodiments, a hybrid memory module (which may be referred to herein as an "HMM") is a memory module that provides persistent storage for retaining data values by using offline module storage. In some embodiments, the hybrid memory module addresses the limitations of NVDIMM devices by providing persistent storage that stores the contents of volatile memory in a separate storage medium. In doing so, this also enables the storage medium to be shared between multiple hybrid memory modules, rather than requiring each memory module to include a separate storage medium within the memory module.
[0024] Embodiments of energy-backed hybrid memory modules with offline module storage provide a novel mechanism to utilize DIMM devices with increased data persistence compared to traditional memory devices, thereby allowing DRAM memory performance to be maintained while also providing data persistence.
[0025] Figure 1 1 is an illustration of an embodiment of an energy-backed hybrid memory module with offline module storage. In some embodiments, the energy-backed hybrid memory module 100 includes a plurality of memory chips (such as DRAM memory integrated circuits) 110 for data storage and a control element, shown as control 120, to provide storage of data from the hybrid memory module 100 to an offline module data storage 150 (which may also be referred to herein as backup data storage). The hybrid memory module 100 may include, but is not limited to, a DIMM structure and may be referred to herein as a hybrid memory module or a hybrid DIMM. The offline module data storage 150 may include, but is not limited to, a solid-state drive (SSD).
[0026] In some embodiments, the hybrid memory module 100 and the data storage 150 are coupled to one or more energy sources (which may also be referred to herein as backup energy sources) to allow operation after power is lost to devices and systems containing such elements. In some embodiments, the one or more energy sources 140 may include, but are not limited to, one or more supercapacitors that charge during operation and utilize the charge to maintain operation of the hybrid memory module 100 and the data storage 150 during storage of data from the DRAM 110 to the storage 150. As used herein, a "supercapacitor" device (also referred to herein as a "supercapacitor") is a high capacity electrochemical capacitor, and it may also be referred to as an "ultracapacitor". In some embodiments, one or more energy sources may alternatively include a rechargeable battery or other renewable energy source, or a combination of energy sources.
[0027] In some embodiments, a user or manufacturer may select a portion of the memory that is power protected (saved and restored) by the energy-backup hybrid memory module 100. In this way, the offline module data storage may have a smaller capacity than the memory 110, for example, in the event that a user or manufacturer wishes to utilize a smaller storage element without having to replace the hybrid memory module 100 to match the storage capacity.
[0028] Figure 2 is a diagram of an NVDIMM device. Figure 2 The NVDIMM 200 shown in FIG. 1 includes DRAM integrated circuits 215 on one side of the memory module, illustrated as the NVDIMM front side 210, and includes NAND memory (or other non-volatile memory) 225 (which may include a NAND controller), and a memory controller 230 (which may be an FPGA, field programmable gate array, ASIC, application specific integrated circuit, or other controller) on the other side of the memory module, illustrated as the NVDIMM back side 220. The NVDIMM also includes a connection to a backup power source, such as a supercapacitor connector 250 that provides a power port, which is illustrated as including two ground pins and two power (e.g., 12 volt) connectors.
[0029] In operation, memory controller 230 can detect a power failure and, in response to the power failure, operate to copy the data contents of DRAM 215 to NAND 225. Additionally, the supercapacitor power source is charged during operation and is intended to provide sufficient power to allow data to be stored from DRAM memory to NAND storage.
[0030] During a power-on event, after the MRC (Memory Reference Code) initializes the DRAM, the MRC requests the memory controller 230 to restore the DRAM content from the NAND 225. The BIOS (Basic Input / Output System) represents the System Physical Addresses (SPAs) occupied by the NVDIMMs as persistent memory (in the E820 / UEFI Get Memory Map and NVDIMM Firmware Interface Table (NFIT) ACPI tables) and represents the NVDIMMs as NVM (Non-Volatile Memory) devices through the ASL code. The OS (Operating System) understands these SPA ranges as persistent or volatile memory and exposes them to the application / workload accordingly.
[0031] Currently available NVDIMM devices contain DRAM devices on one side of the DIMM and NAND devices and a memory controller on the other side of the DIMM. The NVDIMM is connected to a supercapacitor that acts as a temporary power source in the event of a DIMM power failure. When system power fails, the DRAM contents are stored in the NAND and restored to the DRAM during memory initialization at the next boot of the system containing the NVDIMM.
[0032] However, if Figure 2 Problems with the illustrated device may include:
[0033] (1) If Figure 2 As shown in FIG, the NVDIMM has DRAM integrated circuits on the front side 210, and NAND storage 225 and memory controller 230 on the back side 220. Therefore, the overall capacity of the device is reduced due to the space occupied by NAND 225 and memory controller 230, which limits the amount of DRAM memory available.
[0034] (2) The data stored in NAND 225 is the data stored in DRAM. However, due to signal integrity variations, the address / data scrambling seed changes between boots of the system. For this reason, NVDIMMs typically do not provide address or data scrambling and use an address / data scrambling disable mode, which can result in hot spots in the memory (where a specific memory location is always used for storage) or more errors in the memory subsystem if certain parts of the memory are prone to errors.
[0035] (3) NAND device management is typically rudimentary compared to the management available for larger storage devices, which results in low-quality RAS (reliability, availability, and serviceability).
[0036] (4) When either the DRAM IC 215 or the NAND IC 225 fails, this requires replacement of the entire device 200, thereby increasing the cost of ownership.
[0037] (5) Regarding manufacturing costs, the overall cost of an NVDIMM solution is approximately three to four times the cost of a similar-sized DRAM DIMM.
[0038] (6) Data stored on NVDIMM 200 is generally unprotected because the data is simply copied from DRAM 215 to NAND 225 during a power failure, and as a result, moving the NVDIMM from one system to another may inadvertently make data stored on NAND 225 accessible.
[0039] Figure 3 is a diagram of an embodiment of an energy-backed hybrid memory module with offline module reinforcement storage. In some embodiments, an embodiment of a memory device includes a memory device having Figure 3 300 of a hybrid memory module 300 with a backup storage medium offline NVDIMM as illustrated in . In some embodiments, the hybrid memory module 300 includes a front side 310 with a first set of DRAM integrated circuits 315 and a back side 320 with a second set of DRAM integrated circuits 335. As illustrated, the back side 320 also includes a supercapacitor connector 350 and an IO enabler 340 that provide a power port. Although the connector in this embodiment is specified as a supercapacitor connector, the embodiment is not limited to this energy source and may alternatively include a connection to a rechargeable battery or other renewable energy source or combination of energy sources.
[0040] In some embodiments, the structure of the hybrid memory module allows for the fabrication of high capacity persistent memory to retain data values without compromising capacity because the extra space on the hybrid memory module can be used for DRAM in the event that the backing memory is an offline module.
[0041] In some embodiments, Figure 3 The energy backup element shown in the figure can be included in each DIMM of the computing system, wherein the system can choose whether to implement the backup function of the device. Therefore, according to the implementation in the system, each such storage device can be used as a hybrid memory module for energy backup or as a DRAM DIMM.
[0042] Figure 4 4 is an illustration of an embodiment of an apparatus or system including an energy-backed hybrid memory module with offline module reinforcement storage. As illustrated, the apparatus or system 400 includes one or more processors illustrated as CPUs (central processing units) 405, which are coupled to one 415 via a DDR (double data rate) link. Each of the hybrid memory modules 410-415 (HMM1 and HMM2, where HMM refers to a hybrid memory module) can be as shown. Figure 3The hybrid memory module 300 shown in FIG.
[0043] The HMM1 and HMM2 modules are coupled to a storage controller 420 that provides control operations for storage of data in the device 400 upon power failure. As illustrated, the storage controller 420 includes a multiplexer 422 and a multiplexer controller for selecting the hybrid memory modules one at a time to store data from each module to the offline module storage 450. In some embodiments, the storage controller 420 may be a part or subsystem of a data and power control unit.
[0044] In some embodiments, the hybrid memory modules 410-415 and offline module storage including the storage controller 420 and the storage 450 are coupled with a backup energy source, which may include but is not limited to a supercapacitor subsystem (including one or more supercapacitors) 460 to provide the power required to save the data stored on the hybrid memory modules 410-415 to the storage 450. By moving the storage media from the hybrid memory modules 410-415 to the storage 450, the device 400 allows multiple hybrid memory modules to share the storage capacity of the storage 450, which can thereby reduce the overall cost of the hybrid memory module solution.
[0045] In some embodiments, the apparatus or system 400 includes:
[0046] (1) A controller on each hybrid memory module 410-415 to replicate the contents of its DRAM media in the event of a power failure, such as Figure 3 IO initiator 340 as shown in FIG.
[0047] (2) Storage controller 420, which has storage medium 450 behind it that serves as offline module storage.
[0048] (3) A supercapacitor subsystem 460 or other energy source to provide energy to both the hybrid memory module and the offline module storage in the event of a system power loss condition.
[0049] (4) A hardened storage solution consisting of multiplexing logic and a sequencer that allows multiple hybrid memory modules to share the storage medium. The sequencer logic ensures that only one hybrid memory module can write to the storage medium at a given time.
[0050] Reference again Figure 4, upon a system power failure, the controller on the hybrid memory modules 410-415 on the system 400 is notified of the power failure via a SAVE_n signal (or other notification). In some embodiments, in response to the SAVE_n signal, the hybrid memory module controller arbitrates to gain access to the storage controller to start a save operation for the hybrid memory module. The sorting logic provides access to one hybrid memory module at a time. The selection of the hybrid memory module sequence can be based on the priority assigned to each module, but the embodiment is not limited to the priority sorting, and other factors can be used to determine the sorting of the memory module units. The hybrid memory module that succeeds in the arbitration (HMM1 in this example) starts the save operation for the device. Once HMM1 completes its save, HMM1 gives up access to the multiplexer, allowing HMM2 to win its arbitration. In some embodiments, the supercapacitor subsystem 460 provides sufficient power to the storage controller 420 to allow all supplied hybrid memory modules to complete their save operations. In some embodiments, each hybrid memory module save is marked with metadata that allows the storage controller 420 to associate the saved image with the corresponding hybrid memory module. In some embodiments, upon platform power-up, the hybrid memory modules 410 - 415 once again arbitrate access to the storage controller 420 to restore their respective saved images from storage 460 to the DRAM of each hybrid memory module.
[0051] Although it is described above that multiple memory modules arbitrate to start a save operation to push data to storage, the embodiments are not limited to this implementation. In other embodiments, the system can be implemented to pull data from hybrid memory modules instead, where the storage control provides instructions to the hybrid memory modules to obtain data from these modules in a certain sequence.
[0052] In some embodiments, the system 400 can provide additional power efficiency by removing power from each hybrid memory module upon completion of storing data from the hybrid memory module into the storage 450. For example, upon a power failure, power is provided by the supercapacitor 460 to HMM1 410 and HMM2 415. If the sequence selected is such that HMM1 is selected before HMM2, power is removed from HMM1 upon completion of storing data from HMM1 into the storage 450, and then power is removed from HMM2 upon completion of storing data from HMM2 into the storage 450. In some embodiments, additional power efficiency is provided by isolating the hybrid memory module from any other connections upon power loss.
[0053] In some embodiments, additional savings in power may be achieved by compressing data from each hybrid memory module upon a power failure, thereby reducing the time required to back up data to storage.
[0054] Figure 5 is a diagram of a system utilizing NVDIMM devices. Figure 5 The figure shows a computing system 500 having a CPU 505 with two integrated memory controllers (iMCs), with two NVDIMM devices, illustrated as NVDIMM1 520 and NVDIMM2 522, located on iMC0 532; and two DRAM DIMMs, illustrated as DRAM-DIMM1 510 and DRAM-DIMM2 512, located on iMC1 530. DRAM-DIMM1 and NVDIMM 1 are on channel 1, and DRAM-DIMM1 and NVDIMM1 are on channel 2. An integrated IO, iIO 534, is also illustrated, as well as coupling with a PCIe (Peripheral Component Interconnect Express) connection.
[0055] As further illustrated, each NVDIMM is attached to a supercapacitor, with NVDIMM 1 520 coupled to supercapacitor 1 540, and NVDIMM 1 522 coupled to supercapacitor 2 542. The supercapacitors are charged during platform power-up and can supply power to each NVDIMM in the event of a power failure.
[0056] Figure 6 6 is an illustration of an embodiment of a system including an energy-backed hybrid memory module with offline module reinforcement storage. In some embodiments, a computing system 600 with a CPU 605 includes two integrated memory controllers (iMCs) having two hybrid memory devices, illustrated as HMM1 620 and HMM2 622, located on iMC0 632; and two DRAM DIMMs, illustrated as DRAM-DIMM1 610 and DRAM-DIMM2 612, located on iMC1 630. DRAM-DIMM1 and HMM1 are located on channel 1, and DRAM-DIMM2 and HMM2 are located on channel 2. Although DRAM-DIMMs and hybrid memory devices are implemented and processed differently in the computing system 600, in some embodiments, DRAM-DIMM devices replace traditional DRAM devices, and also include devices such as Figure 1 and Figure 3 , where the implementation of the DIMM device can determine whether the device is considered as volatile memory or persistent energy backup memory. Therefore, DRAM-DIMM1 610 and DRAM-DIMM2 612 can be physically equivalent to HMM1 620 and HMM2 622.
[0057] In some embodiments, HMM1 620 and HMM2 622 are each associated with I 2 C and a serial interface such as a SATA (Serial ATA) link to a SATA multiplexer 644, which is coupled to a storage element such as an SSD 650. In addition, the CPU 605 is coupled to an integrated IO (iIO) 634, which is further coupled to a PCH (Platform Controller Hub) 660, which is further coupled to I2C and a SATA link to the SATA multiplexer 644. Although the SATA link is provided for Figure 6 , but the embodiments are not limited to this implementation, and the storage interface may alternatively be PCIe (Peripheral Component Interconnect Express), where PCIe can be coupled to iIO 634 of CPU 605 or other suitable high-speed serial interface, such as USB (Universal Serial Bus) 3.0™, Firewire™, or other interface coupled to PCH 660, iIO 634, or IO device coupled to CPU 605.
[0058] In some embodiments, each HMM 620-622 and SSD 650 is coupled with a backup energy source that may include but is not limited to a supercapacitor subsystem to provide power for saving data in a power failure condition, which is illustrated as HMM1620, HMM2 622, and SSD 650 are coupled with supercapacitors 640, 642, and 644, respectively, where supercapacitor 1 represents a backup power device or subsystem that may include one or more supercapacitors (or other energy sources). In some embodiments, supercapacitor 1 is charged during platform power-up and provides backup power to each hybrid memory device and SSD storage when power is lost to the computing system 600.
[0059] In some embodiments, computing system 600 provides data capacity and data persistence, thereby enabling energy-backed hybrid memory modules to be used for purposes such as, for example, memory databases. In addition, by providing a consolidated storage solution across multiple hybrid memory modules, the system can achieve a reduction in the overall cost of a persistent memory solution for multiple hybrid memory module environments.
[0060] In some embodiments, an embodiment of a device or system 600 including an energy backup storage provides the following:
[0061] (1) The DRAM contents for the hybrid memory modules 620-622 are backed up to the SSD 650 when system power is lost (such as a system failure or system power outage), and restored back to the DRAM during platform power-on. To achieve this, the hybrid memory modules contain a SATA (Serial ATA) interface (or other serial interface) for power protection of the DRAM data, an I / O port, and a 32-bit SATA (SATA) interface. 2 C interface and supercapacitor connector. SATA and I 2 The C interface is coupled to a power protected SATA drive, illustrated as SSD 650, through a SATA multiplexer 644, which is connected via an I2C interface. The SATA multiplexer 644 allows multiple hybrid memory modules to be connected to a single SATA drive, so that the drive can be used as a common storage for all hybrid memory modules. In some embodiments, the multiplexer 644 also includes a port that allows access to the SATA drive by the host platform controller hub 660.
[0062] (2) When the platform power fails, the DRAM contents of the HMM are saved to the SATA drive along with the metadata, where the save operation can be performed sequentially one hybrid memory module at a time. When the platform powers back on, the memory initialization code or the DIMM SATA controller restores the contents of each hybrid memory module from the SSD storage, where the data recovery from the SSD storage can also be performed sequentially one hybrid memory module at a time.
[0063] Note that although the examples provided in this article use SATA SSDs and I 2 C multiplexer, but embodiments are not limited to this particular implementation and may include any energy backup storage device, including any point-to-point, bus or network-based storage.
[0064] In some embodiments, an apparatus or system may provide the following advantages over existing NVDIMM-based solutions:
[0065] (1) More persistent DRAM capacity: The available NVDIMM capacity in conventional systems is significantly reduced due to the need to compromise a large portion of the DRAM capacity (typically half of the DRAM capacity, the capacity on one side of the DIMM device) to accommodate the NAND memory and memory controller on the same DIMM form factor. As a result, the overall OS visible memory capacity is typically reduced by half, resulting in reduced workload performance. In some embodiments, by shifting non-volatile memory to a location outside the module, the available space on the hybrid memory module is more efficiently applied to DRAM. The repartitioned volatile and non-volatile memory can effectively double the OS visible persistent memory size compared to the NVDIMM device, resulting in improved workload performance.
[0066] (2) Low TCO (Total Cost of Ownership): NVDIMM solutions typically cost three to four times the cost of purchasing DRAM. In contrast, the cost of implementing an embodiment of energy-backed persistent memory is the cost of DRAM plus the cost of an SSD (assuming the processor supports the power failure copy feature from DRAM to SSD). The cost of a large-volume SSD is significantly less (about one-tenth) than the cost of a similar-volume DRAM. In an example, the overall cost of persistent memory in an embodiment may be only about 1.2 times the cost of DRAM (assuming double the DRAM capacity supplied for the SSD).
[0067] (3) Low service cost: In NVDIMM, DRAM and NAND devices are on the same DIMM. If either fails / degrades, the entire NVDIMM needs to be replaced. In contrast, in embodiments of a device or system including an energy-backup hybrid memory module, the DRAM and storage devices are separate elements in the device or system, and therefore if any one of these elements fails or degrades, the failed or degraded device can be replaced without regard to the other device, thereby reducing service cost / TCO.
[0068] (4) Support for data scrambling: The data scrambling feature is important for reducing signal integrity noise due to memory hot spots, where data from the memory controller (MC) to the DRAM is scrambled with the address to reduce hot spots in the memory. For existing NVDIMMs, data from the DRAM device is stored to the NAND and restored at the next power-on. However, the NAND controller typically has no visibility into how the MC scrambles the data. Existing NVDIMMs can circumvent this problem by disabling data scrambling, thereby losing the benefits of data scrambling.
[0069] In contrast, data stored in embodiments of energy-backed hybrid memory provides support for data scrambling. In some embodiments, the SATA interface on the hybrid memory module stores the contents to a SATA SSD with a DRAM region allocated for BIOS to store metadata such as DIMM interleaving information and data scrambling signatures.
[0070] In some embodiments, when the platform is restarted, the memory initialization code reads the SATA SSD content and determines the scrambling mode and converts to actual data and stores it to DRAM. The BIOS will also detect uncorrected errors based on ECC (error correction code) and poison the memory location where the error exists. Therefore, the data stored in the SSD is not affected by the address / data scrambling characteristics. Therefore, compared with existing NVDIMM solutions, an embodiment that provides improved RAS can be implemented.
[0071] (5) Memory interleaving changes: For NVDIMMs, if the NVDIMM interleaving changes, it is very difficult for the application to obtain the previous data. For this reason, it is usually necessary to back up the NVDIMM persistent data and restore the data before any NVDIMM position changes. In some embodiments, since the BIOS restores data from the offline DIMM storage, as long as there is enough DRAM capacity, the BIOS can reassemble the data regardless of the new interleaving or DRAM DIMM changes.
[0072] (6) High RAS (Reliability, Availability, and Serviceability): In existing NVDIMM devices, adding features such as bad block remapping, wear leveling, and deadlock failures to the NAND controller increases the size of the FPGA or requires additional NAND devices, and thereby increases costs. For this reason, NVDIMMs typically do not provide high RAS capabilities. In contrast, embodiments utilize standard SSDs for offline module storage, where SSDs typically include features such as bad block remapping, wear leveling, and deadlock failures.
[0073] (7) Persistent Data Security: NVDIMM implementations typically do not provide protection for stored data. For this reason, users are able to move NVDIMMs from one system to another and then read the data without any authorization provided by the data author. In some embodiments, SSDs or similar storage are utilized for storing persistent data, and therefore security mechanisms such as file encryption that are available today on SSDs can be utilized.
[0074] In some embodiments, embodiments of an apparatus or system include the following platform-level solution that provides DRAM-like performance with persistent memory functionality:
[0075] (1) Hybrid memory modules each contain a SATA (or other serial interface) controller, an I 2 C controller and supercapacitor (or other energy source) connector where DRAM contents are electrically protected in the event of a platform power failure.
[0076] (2) Use supercapacitors or other energy sources to power protect the SATA SSD and SATA multiplexer logic.
[0077] (3) The hybrid memory module and SATA drive are connected through the SATA multiplexer, which can be connected through I 2 C port to switch to a specific hybrid memory module or to the host through the PCH SATA port.
[0078] (4) When the platform is powered on, the BIOS initializes the DIMM devices including the hybrid memory modules normally and learns which DIMMs contain SATA ports by communicating with the DIMM controller.
[0079] (a) Each hybrid memory module including the SATA port is programmed by default not to store data to the SSD. This feature can only be enabled after the BIOS has fully restored the data to DRAM.
[0080] (5) BIOS through I 2 C issues a command, via I 2 The SATA multiplexer of the C control interface directs the SSD to the appropriate DIMM SATA interface or to the PCH.
[0081] (6) BIOS reads the contents of the SSD and its metadata. If DRAM content exists, BIOS restores the content to the appropriate DRAM.
[0082] (a) The BIOS checks the metadata to determine the DRAM size interleaving information and determines the system physical address (SPA) range to copy the data. The BIOS checks the metadata to determine the data scrambling pattern and uses the pattern to restore the data from the SSD to the DRAM.
[0083] (b) If scrambling is disabled, the BIOS may request each hybrid memory module SATA controller to recover the DRAM data, or the BIOS may recover the data.
[0084] (c) BIOS checks the ECC (Error Correction Code) of the data, and if any uncorrected errors or poison are detected, the BIOS can inject errors into the uncorrected error or poison location using an error injection mechanism.
[0085] (d) The BIOS checks the health of the SSD and creates SMART data for the OS to know the health of the DIMM backup media.
[0086] (e) If SATA security is enabled, the BIOS is required to first provide the appropriate passphrase to access SATA data. In some embodiments, the passphrase can be stored in a secure container such as a TPM (Trusted Platform Module) to provide additional security.
[0087] (7) Once the data recovery operation from SSD to DRAM is completed, the BIOS programs the hybrid memory module to store the DRAM contents to the SSD, and the BIOS switches the multiplexer to the first hybrid memory module. This process causes the SSD to be invisible to the OS.
[0088] (8) In some embodiments, when multiple hybrid memory modules share an SSD, the BIOS may select a storage order to the SSD for the hybrid memory modules and may program the order into the hybrid memory modules along with a power failure watchdog timer.
[0089] (9) BIOS reports persistent memory range to OS.
[0090] (10) In the event of a power failure, the PCH receives the power failure condition and generates an SMI (System Management Interrupt).
[0091] (11) In some embodiments, the SMM (System Management Mode) code flushes the CPU cache and flushes the iMC write pending queue.
[0092] (12) In some embodiments, the BIOS directs the PCH to signal a power failure to the hybrid memory module.
[0093] (13) Once the hybrid memory modules receive the power failure signal, the first hybrid memory module in sequence starts storing the content to the SSD. Once the storage is complete, it writes to the SATA multiplexer to switch to the next hybrid memory module in the sequence of hybrid memory modules.
[0094] (14) The next hybrid memory module, once this hybrid memory module detects that it has a SATA port, it switches the SATA multiplexer to its port and starts saving the DRAM contents. At this point, the hybrid memory module transfers the save process to the next subsequent hybrid memory module in the sequence, and so on, until all hybrid memory modules have been processed.
[0095] Figure 7 is a flow chart utilized to illustrate a process for a recovery operation according to an embodiment. Figure 7 A platform boot flow in operation of an energy-backed hybrid memory module with offline device reinforcement storage is shown. In some embodiments, when the platform is powered on 700, the SPD (Serial Presence Detect) of the hybrid memory module is read 702 and the hybrid memory module is initialized 704.
[0096] If energy backup and SATA support 706 are not provided in the system, then the system is booted as a normal system 708. Otherwise, if energy backup and SATA (or other serial interface) support 706 are provided in the system (where the system includes an energy backup hybrid memory module), then I 2 The C multiplexer is programmed to the PCH SSD 710. The energy backup SSD capacity availability is determined 712, where any credentials for enabling the SSD to perform read and write operations are submitted 714. In addition, the amount of DRAM allocated as persistence is determined 716, where the energy backup HMM persistent memory is less than or equal to the capacity of the energy backup SSD capacity 718.
[0097] In some embodiments, if the energy backup HMM metadata is not available in the SSD 720, metadata is created to indicate where to write the backup data and further information 722. When the metadata is present and the validation check passes, the data is restored from the SSD to the hybrid memory module 724.
[0098] In some embodiments, there is a wait until one or more supercapacitors (or other energy sources) are sufficiently charged to support DRAM data backup from the hybrid memory module to the SSD 728. Additionally, metadata is updated for the new backup, and the hybrid memory module is programmed for the backup region and other requirements 730. PCH visibility is disabled 732 for the energy-backed SATA driver, a volatile / persistent memory map (indicating which memory modules provide persistent memory) is presented to the operating system 734, such as through an ACPI table, and the operating system is booted 736 to begin operation.
[0099] Figure 8 is a flow chart illustrating a process for memory operations in the event of power loss, according to an embodiment. Figure 8 The diagram illustrates a platform power failure / brownout flow for an embodiment of a system or apparatus having an energy-backed hybrid memory module with offline module reinforcement storage.
[0100] In some embodiments, upon platform power failure or platform shutdown 800, the hybrid memory module detects power loss (power failure or platform shutdown) 800, such as by receiving a signal to detect power loss, and the DIMM waits for the SATA port to be ready to write data from the DRAM of the hybrid memory module to the offline module storage SSD 802. In some embodiments, the user or manufacturer can specify a portion of the memory range to be power-protected (saved and restored) by the energy backup non-volatile memory, and the writing of data can be limited to this portion of the memory range. In some embodiments, if the platform power supply has sufficient power, the PCH can be programmed to assert SMI upon power failure and allow the SMM to flush the cache and memory controller write pending queues before asserting ADR / power failure to the DRAM DIMM.
[0101] In some embodiments, during startup, each hybrid memory module is provided with a priority order for writing to the SATA drive upon failure. In such an embodiment, the hybrid memory module with the highest priority writes to storage first, and then notifies when the store process is complete. The process then continues with the hybrid memory modules in priority order until the store process is complete 806. In some embodiments, power is removed to each hybrid memory module upon completion of the store process for such hybrid memory module.
[0102] In some embodiments, the HMM SATA controller stores metadata to indicate the progress of the copy operation to enable recovery software to detect failure conditions 808 .
[0103] When all hybrid memory modules complete store operations to offline module storage, the system enters final platform power down 810 .
[0104] Fig. 9 900 is an illustration of an embodiment of an electronic device or system including an energy backup hybrid memory with an offline module storage. In the illustration, certain standard and well-known components not relevant to the present specification are not shown. Elements shown as separate elements may be combined, including, for example, a SoC (system on a chip) combining multiple elements on a single chip. The device or system (generally referred to as system 900) may include, but is not limited to, a computing system.
[0105] In some embodiments, system 900 may include a processing device such as one or more processors 910 coupled to one or more buses or interconnects for processing information, the bus generally shown as bus 905. Processor 910 may include one or more physical processors and one or more logical processors. In some embodiments, the processor may include one or more general purpose processors or special purpose processors.
[0106] The bus 905 is a communication device for transmitting data. The bus 905 is illustrated as a single bus for simplicity, but may represent multiple different interconnects or buses, and the component connections to these interconnects or buses may be different. Fig. 9 The bus 905 shown in FIG. 9 is an abstract concept that represents any one or more separate physical buses, point-to-point connections, or both, connected by appropriate bridges, adapters, or controllers.
[0107] In some embodiments, system 900 also includes a random access memory (RAM) or other dynamic storage device or element as a main memory 915 for storing information and instructions executed by processor 910. Main memory 915 may include, but is not limited to, dynamic random access memory (DRAM).
[0108] In some embodiments, in addition to or as part of the main memory 915, the system 900 includes one or more energy-backed hybrid memory modules, wherein such hybrid memory modules may be, for example, Figure 1 and Figure 3 In some embodiments, the hybrid memory module is implemented to utilize offline module storage such as SSD 930. In some embodiments, SSD 930 provides enhanced storage for each of the plurality of hybrid memory modules 920, such as Figure 4 and 6 As shown in the figure.
[0109] In some embodiments, the hybrid memory module and SSD 930 are powered by an energy source 925, which may include, but is not limited to, a supercapacitor subsystem including one or more supercapacitors. In some embodiments, the energy source 925 is charged when the system 900 is powered on, and the energy source 925 provides power for backing up data stored on the hybrid memory module 920 in the event of a power failure or shutdown of the system 900.
[0110] System 900 may also include a read only memory (ROM) 935 or other static storage device for storing static information and instructions for processor 910 .
[0111] In some embodiments, the system 900 includes one or more transmitters or receivers 940 coupled to the bus 905. In some embodiments, the system 900 may include one or more antennas 944 such as dipole or monopole antennas for transmitting and receiving data via wireless communications using wireless transmitters, receivers, or both, and one or more ports 942 for transmitting and receiving data via wired communications. Wireless communications include, but are not limited to, Wi-Fi, Bluetooth, TM , near field communication, and other wireless communication standards.
[0112] In some embodiments, system 900 includes one or more input devices 950 for inputting data, including hard and soft buttons, a joystick, a mouse or other pointing device, a keyboard, a voice command system, or a gesture recognition system.
[0113] In some embodiments, the system 900 includes an output display 955, where the display 955 may include a liquid crystal display (LCD) or any other display technology for displaying information or content to a user. In some environments, the display 955 may include a touch screen that also serves as at least a portion of the input device 950. The output display 955 may also include an audio output, including one or more speakers, an audio output jack, or other audio, and other output to the user.
[0114] The system 900 may also include a battery or other power source 960, which may include a solar cell, a fuel cell, a charged capacitor, near-field inductive coupling, or other system or device for providing or generating power in the system 900. The power provided by the power source 960 may be distributed as needed to the elements of the system 900. In some embodiments, the power structure of the system 900 also includes one or more supercapacitors 925.
[0115] In the above description, for the purpose of explanation, many specific details are set forth in order to provide a thorough understanding of the described embodiments. However, it will be apparent to those skilled in the art that embodiments may be practiced without some of these specific details. In other cases, known structures and devices are shown in the form of block diagrams. Intermediate structures may exist between the illustrated components. The components described or illustrated herein may have additional inputs or outputs that are not illustrated or described.
[0116] Various embodiments may include various processes. These processes may be performed by hardware components, or may be embodied in computer programs or machine executable instructions, which may be used to cause a general or special purpose processor or a logic circuit programmed with the instructions to perform the process. Alternatively, the process may be performed by a combination of hardware and software.
[0117] Portions of various embodiments may be provided as a computer program product, which may include a computer-readable medium having computer program instructions stored thereon, which may be used to program a computer (or other electronic device) to be executed by one or more processors to perform processes according to certain embodiments. Computer-readable media may include, but are not limited to, magnetic disks, optical disks, compact disk read-only memories (CD-ROMs) and magneto-optical disks, read-only memories (ROMs), random access memories (RAMs), erasable programmable read-only memories (EPROMs), electrically erasable programmable read-only memories (EEPROMs), magnetic or optical cards, flash memory, or other types of computer-readable media suitable for storing electronic instructions. In addition, embodiments may also be downloaded as a computer program product, where the program may be transferred from a remote computer to a requesting computer.
[0118] Many methods are described in their most basic form, but processes may be deleted or added from any method, and information may be added or reduced from any of the described messages without departing from the basic scope of the present embodiments. It will be apparent to those skilled in the art that many further modifications and adaptations may be made. Specific embodiments are provided not to limit the concept but to illustrate it. The scope of the embodiments is not to be determined by the specific examples provided above, but only by the following claims.
[0119] If element "A" is said to be coupled to or coupled with element "B", element A may be directly coupled to element B or indirectly coupled through, for example, element C. When the specification or claims state that component, feature, structure, process, or characteristic A "causes" component, feature, structure, process, or characteristic B, this means that "A" is at least partially responsible for "B", but there may also be at least one other component, feature, structure, process, or characteristic that contributes to causing "B". If the specification indicates that a component, feature, structure, process, or characteristic "may", "might", or "might" be included, that particular component, feature, structure, process, or characteristic need not be included. If the specification or claims refer to "a" or "an" element, this does not mean that there is only one of the described elements.
[0120] An embodiment is an implementation or example. References in the specification to "an embodiment," "an embodiment," "one embodiment," "some embodiments," or "other embodiments" mean that a particular feature, structure, or characteristic described in conjunction with the embodiment is included in at least some embodiments, but not necessarily in all embodiments. The various appearances of "an embodiment," "an embodiment," "one embodiment," or "some embodiments" do not necessarily all refer to the same embodiment. It should be understood that in the foregoing description of exemplary embodiments, various features are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of simplifying the disclosure and aiding in understanding one or more of the various novel aspects. However, this method of disclosure should not be interpreted as reflecting an intention that the claimed embodiments require more features than those explicitly recited in each claim. On the contrary, as reflected in the following claims, the novel aspects lie in less than all features of a single foregoing disclosed embodiment. Therefore, the claims are hereby expressly incorporated into this specification, with each claim acting alone as a separate embodiment.
[0121] In some embodiments, a memory device includes a plurality of volatile memory chips mounted on a circuit board; and a controller providing for backing up the contents of the plurality of volatile memory chips to a non-volatile storage device separate from the memory module in the event of a power loss condition.
[0122] In some embodiments, the circuit board includes a first side and a second side, and wherein the plurality of memory chips includes a first group of memory chips mounted in the first side of the circuit board and a second group of memory chips mounted in the second side of the circuit board.
[0123] In some embodiments, the connection to the backup energy source is incorporated into the first connector.
[0124] In some embodiments, the connection to the backup energy source includes a connection to one or more ultracapacitors.
[0125] In some embodiments, the memory module is a dual in-line memory module (DIMM).
[0126] In some embodiments, backing up the contents of the plurality of memory chips includes limiting the contents to be backed up to a partial memory range based on a setting.
[0127] In some embodiments, a system includes a processor for processing data; an antenna for transmitting data; a plurality of memory modules, each memory module including a dynamic random access memory (DRAM) and a controller for controlling backup of contents of the DRAM; a data storage device for storing data for at least a first group of memory modules among the plurality of memory modules; a storage controller for providing control operations for data stored in the memory modules in the data storage device in the event of a power loss condition for the system; and a backup energy source for providing power to each of the first group of memory modules, the data storage device, and the storage controller.
[0128] In some embodiments, the backup energy source is a supercapacitor subsystem comprising one or more supercapacitors.
[0129] In some embodiments, the data storage device is an SSD.
[0130] In some embodiments, the storage controller includes a multiplexer for selecting one of the first group of memory modules.
[0131] In some embodiments, the plurality of memory modules includes the first group of memory modules implemented as persistent memory and a second group of memory modules implemented as volatile memory.
[0132] In some embodiments, the storage controller providing control operations for storing data of the memory module in the data storage device includes the storage control for limiting data storage to a partial memory range based on a setting.
[0133] In some embodiments, a method includes detecting a power loss in a computing system comprising a plurality of memory modules; applying energy from a backup energy source to the plurality of memory modules, a storage controller, and a data storage device; and backing up data from each of the plurality of memory modules to the data storage device, wherein backing up the data includes the storage controller sequentially selecting the plurality of memory modules to store data from each of the plurality of memory modules.
[0134] In some embodiments, the method further comprises restoring the data from the data storage device to each of the plurality of memory modules when the computing system is powered on.
[0135] In some embodiments, backing up the data from each of the plurality of memory modules includes storing metadata about the data backup of each memory module in the data storage device.
[0136] In some embodiments, selecting the plurality of memory modules in order comprises selecting the plurality of memory modules according to a priority for each memory module.
[0137] In some embodiments, the method further includes removing energy from the backup energy source from each of the plurality of memory modules when data backup from each memory module is complete.
[0138] In some embodiments, backing up data from each of the plurality of memory modules to the data storage device includes backing up a partial range of data from the plurality of memory modules based on a setting.
[0139] In some embodiments, a non-transitory computer-readable storage medium having stored thereon data representing an instruction sequence, the instruction sequence, when executed by a processor, causes the processor to perform operations, the operations comprising: detecting a loss of power in a computing system, the computing system comprising a plurality of memory modules; applying energy from a backup energy source to the plurality of memory modules, a storage controller, and a data storage device; and backing up data from each of the plurality of memory modules to the data storage device, wherein backing up the data comprises the storage controller sequentially selecting the plurality of memory modules to store data from each of the plurality of memory modules.
[0140] In some embodiments, the medium further includes instructions for restoring the data from the data storage device to each of the plurality of memory modules when the computing system is powered on.
[0141] In some embodiments, backing up the data from each of the plurality of memory modules includes storing metadata about the data backup of each memory module in the data storage device.
[0142] In some embodiments, selecting the plurality of memory modules in order comprises selecting the plurality of memory modules according to a priority for each memory module.
[0143] In some embodiments, the medium further includes instructions to remove energy from the backup energy source from each of the plurality of memory modules when backing up data from each memory module is complete.
[0144] In some embodiments, backing up data from each of the plurality of memory modules to the data storage device includes backing up a partial range of data from the plurality of memory modules based on a setting.
[0145] In some embodiments, a device includes: a device for detecting power loss in a computing system, the computing system including multiple memory modules; a device for applying energy from a backup energy source to the multiple memory modules, a storage controller, and a data storage device; and a device for backing up data from each of the multiple memory modules to the data storage device, wherein the device for backing up the data includes a device for sequentially selecting the multiple memory modules for storing data from each of the multiple memory modules.
[0146] In some embodiments, the apparatus further comprises means for restoring the data from the data storage device to each of the plurality of memory modules when the computing system is powered on.
[0147] In some embodiments, means for backing up the data from each of the plurality of memory modules includes means for storing metadata regarding the data backup of each memory module in the data storage device.
[0148] In some embodiments, the means for sequentially selecting the plurality of memory modules comprises means for selecting the plurality of memory modules according to a priority for each memory module.
[0149] In some embodiments, the apparatus further comprises means for removing energy from the backup energy source from each of the plurality of memory modules upon completion of backing up data from each memory module.
[0150] In some embodiments, the means for backing up data from each of the plurality of memory modules to the data storage device includes means for backing up a partial range of data from the plurality of memory modules based on a setting.
Claims
1. A dual in-line memory module DIMM installed in a computer system, the DIMM comprising: a circuit board having a first side and a second side, the circuit board including a first plurality of electrical contacts on the first side of the circuit board and a second plurality of electrical contacts on the second side for connecting to a computing system; a connector mounted in a circuit board of the DIMM, the connector including a connection to receive power from an alternate energy source, the alternate energy source being separate from the DIMM, the connector being separate from the first plurality of electrical contacts and the second plurality of electrical contacts; a plurality of volatile memory chips mounted on a circuit board of the DIMM, wherein the plurality of volatile memory chips includes a first group of volatile memory chips mounted on a first side of the circuit board and a second group of volatile memory chips mounted on a second side of the circuit board; and A controller mounted in a circuit board of the DIMM, the controller being configured to move the contents of the plurality of volatile memory chips to a non-volatile storage device separate from the DIMM in the event of a power loss condition.
2. The DIMM according to claim 1, in, The connection to the backup energy source includes connection to one or more supercapacitors. 3 . The DIMM of claim 1 , wherein backing up the contents of the plurality of volatile memory chips comprises limiting the contents to be backed up to a partial memory range based on a setting.
4. The DIMM according to claim 1, in, The DIMMs operate on power received from the backup energy source during a power loss condition.
5. A system for memory operation in the event of power loss, include: processors for processing data; A plurality of memory modules, each memory module comprising the following i) and ii): i) Dynamic Random Access Memory DRAM, and ii) a controller for controlling backup of the contents of said DRAM; a non-volatile data storage device for storing data for at least a first group of memory modules among the plurality of memory modules, the non-volatile data storage device being separate from the first group of memory modules; a storage controller for providing control operations for storing data of the first group of memory modules in the nonvolatile data storage device during a power loss condition of the system, the storage controller selecting one of the first group of memory modules during the power loss condition and then moving its data to the nonvolatile data storage device, selecting one of the memory modules because it has a higher priority than each of the remaining memory modules of the first group of memory modules that have not yet moved their data to the nonvolatile data storage device, wherein selecting one of the memory modules facilitates giving an orderly flow of data from the first group of memory modules to the storage controller for ultimate storage in the nonvolatile data storage device; and A backup energy source is used to provide power to each of the first group of memory modules, the non-volatile data storage device, and the storage controller.
6. The system according to claim 5, in, The backup energy source is a supercapacitor subsystem including one or more supercapacitors.
7. The system according to claim 5, in, The non-volatile data storage device is a solid state drive (SSD).
8. The system according to claim 5, in, The plurality of memory modules include the first group of memory modules implemented as persistent memory and a second group of memory modules implemented as volatile memory.
9. The system according to claim 8, in, The storage controller providing control operations for storing data of the first group of memory modules in the non-volatile data storage device includes the storage controller for limiting data storage to a partial memory range based on a setting.
10. A method for memory operation under power loss conditions, comprising: Detecting a power loss in a computing system, the computing system comprising a plurality of dual in-line memory modules (DIMMs), wherein the plurality of DIMMs comprises at least a first group of DIMMs, each of the first group of DIMMs comprising a circuit board having a first side and a second side, the circuit board including a first set of electrical contacts on the first side and a second set of electrical contacts on the second side for connecting to a computing system, a connector mounted in a circuit board of the DIMM, the connector including a connection for receiving power from a backup energy source, the connector being separate from the first and second sets of electrical contacts, a plurality of volatile memory chips mounted on a circuit board of the DIMM, wherein the plurality of volatile memory chips include a first group of volatile memory chips mounted on a first side of the circuit board and a second group of volatile memory chips mounted on a second side of the circuit board, and a controller mounted in the circuit board of the DIMM, the controller controlling backup of contents of the volatile memory chips upon loss of power; applying power from a backup power source to the plurality of DIMMs, the storage controller, and the data storage device; and Data from each of the first group of DIMMs is backed up to the data storage device, wherein backing up the data includes the storage controller sequentially selecting the first group of DIMMs to store data from each of the first group of DIMMs.
11. The method of claim 10, further comprising restoring data from the data storage device to each of the first group of DIMMs when the computing system is powered on.
12. The method of claim 10, wherein backing up data from each DIMM in the first group of DIMMs comprises storing metadata about the data backup of each DIMM in the data storage device.
13. The method of claim 10, wherein sequentially selecting the first group of DIMMs comprises selecting a plurality of the first group of DIMMs according to a priority of each DIMM.
14. The method of claim 10, further comprising removing power from the backup power source from each DIMM of the first group of DIMMs upon completion of backing up data from each DIMM.
15. The method of claim 10, wherein backing up data from each of the first plurality of DIMMs to the data storage device comprises backing up a partial range of data from the first plurality of DIMMs based on a setting.
16. A computer readable medium having stored thereon instructions which, when executed, cause a computing device to perform the method according to any one of claims 10-15.
Citation Information
Patent Citations
Hybrid non-volatile flash memory and memory system thereof
CN102544022A
Hybrid nonvolatile RAM
US20090031072A1
