The present disclosure relates to the field of solid-state memory, and particularly to realizing low cost and large capacity memory systems in computers.
Motivated by recent progress in new non-volatile memory (NVM) technologies (e.g., 3DXP, phase-change memory, STT-RAM, and ReRAM), there has been a high hope of innovating the memory and storage hierarchy in future computing systems. Since none of the NVM technologies can achieve the same high-speed performance as existing DRAM (i.e., the access latency of NVM technologies is at least several times longer than that of DRAM), there is consensus that NVM can only complement DRAM instead of replacing DRAM. To facilitate the real-life adoption of NVM technologies, the industry has been developing specifications to standardize the interface between CPUs and NVM chips. For example, the JEDEC Solid State Technology Association is in the process of developing a so-called NVDIMM-P standard, which specifies the interface protocol between CPUs and NVDIMM-P modules. Each NVDIMM-P module contains both DRAM and NVM chips, and has the same form factor as a conventional DIMM module. CPUs can access the DRAM chips on each NVDIMM-P module through a deterministic-latency byte-addressable interface (e.g., today's DDR4 interface). CPUs can access the NVM chips on each NVDIMM-P module through a new interface being standardized by JEDEC. Because the access latency of NVM chips may vary (e.g., due to the different operational characteristics of different NVM technologies, and the use of more sophisticated management and error correction for NVM chips), the new interface for the NVM chips on each NVDIMM-P module can support non-deterministic access latency.
Although NVM technologies support non-volatile data storage that is absent from DRAM, current interest on NVM technologies has been mainly driven by the promise that future NVM chips will have a significantly lower bit cost than DRAM chips. In fact, many real-life applications (e.g., in-memory database) are essentially constrained by the memory bit cost, and do not necessarily care whether the memory is volatile (like DRAM) or non-volatile. Compared with DRAM, all the NVM technologies not only suffer from (much) longer access latency but also suffer from (much) worse write endurance, which could make it a non-trivial task for computing systems to most effectively and safely use NVM chips (e.g., on future NVDIMM-P modules).
Accordingly, embodiments of the present disclosure are directed to a method for implementing DRAM-based memory modules that provide low-cost and high-speed large-capacity memory in computing systems.
A first aspect of the disclosure is directed to a heterogeneous dynamic random access memory (DRAM) module, including: a first set of DRAM chips; a second set of DRAM chips, wherein the DRAM chips in the second set of DRAM chips have a lower storage reliability than the DRAM chips in the first set of DRAM chips; and a controller coupled to the first and second sets of DRAM chips, wherein the controller includes a DRAM access engine for accessing the second set of DRAM chips and for ensuring a data storage integrity of the second set of DRAM chips.
A second aspect of the disclosure is directed to method for accessing a heterogeneous dynamic random access memory (DRAM) module, the DRAM module including first and second sets of DRAM chips, wherein the DRAM chips in the second set of DRAM chips have a lower storage reliability than the DRAM chips in the first set of DRAM chips, including: upon receipt of a write request including a PBA set to store data in the second set of DRAM chips: determining whether the write request entirely covers at least one PBA in the PBA set; partitioning the PBA set into a first PBA set and a second PBA set, wherein each PBA in the first PBA set is entirely covered by the write request and wherein each PBA in the second PBA set is not entirely covered by the write request; reading data from each PBA in the second PBA set and performing error correction coding (ECC) decoding on the data; combining the decoded data with the write request to form a new set of data; performing ECC encoding on the new set of data to obtain a set of ECC codewords; and writing the set of ECC codewords to the PBAs in the PBA set.
A third aspect of the disclosure is directed to a method for accessing a heterogeneous dynamic random access memory (DRAM) module, the DRAM module including first and second sets of DRAM chips, wherein the DRAM chips in the second set of DRAM chips have a lower storage reliability than the DRAM chips in the first set of DRAM chips, including: upon receipt of a read request including a byte address set for data in the second set of DRAM chips: deriving a logical block address (LBA) set containing consecutive LBAs fully covering the byte address set; determining, based on the LBA set, physical locations and lengths of a set of corresponding compressed data blocks in the second set of DRAM chips; deriving a PBA set that covers all the compressed data blocks; and determining, using a PBA-PBA mapping table, whether any PBAs in the PBA set correspond to a bad physical block.
A fourth aspect of the disclosure is directed to a method for accessing a heterogeneous dynamic random access memory (DRAM) module, the DRAM module including first and second sets of DRAM chips, wherein the DRAM chips in the second set of DRAM chips have a lower storage reliability than the DRAM chips in the first set of DRAM chips, including: upon receipt of a read request including a byte address set for data in the second set of DRAM chips: deriving an LBA set containing consecutive LBAs fully covering the byte address set; partitioning the LBA set into a first LBA set and a second LBA set, wherein each LBA in the first LBA set is entirely covered by the write request and wherein each LBA in the second LBA set is not entirely covered by the write request; reading all compressed data blocks associated with the LBAs in the second LBA set and performing ECC decoding and decompression to obtain decoded data; combining the decoded data with the write request to form a new set of data; carrying out compression and error correction coding (ECC) encoding on the new set of data to obtain compressed data blocks; choosing a segment having enough space to store the compressed data blocks; deriving a PBA set in the chosen segment that will cover the compressed data blocks; and determining whether any PBA in the PBA set corresponds to a bad physical block.
The numerous advantages of the present disclosure may be better understood by those skilled in the art by reference to the accompanying figures.
Reference will now be made in detail to embodiments of the disclosure, examples of which are illustrated in the accompanying drawings.
When a CPU accesses the high-reliability DRAM 12 on the DRAM module 10, the CPU simply uses existing deterministic-latency DRAM access protocol standards (e.g., DDR4) to communicate with the controller 16 on the DRAM module 10. When a CPU accesses the low-reliability DRAM 14 on the DRAM module 10, the CPU must use a new interface standard (e.g., JEDEC NVDIMM-P) to communicate with the controller 16 on the DRAM module 10. The latency for a CPU to access the low-reliability DRAM 14 can be either deterministic or non-deterministic. The controller 16 on the DRAM module 10 carries out data management, error correction, and/or other necessary operations to ensure the data storage integrity of the low-reliability DRAM 14.
As illustrated in
First, the low-reliability DRAM access engine 22 when it does not implement transparent data compression is presented. In this case, the low-reliability DRAM access engine 22 uses the same ECC (provided by ECC component 26) to protect all the user data in the low-reliability DRAM 14, i.e., all the ECC codewords have the same length and same error-correction strength.
Let ne denote the amount of user data (e.g., 256-byte, 2 k-byte) being protected by one ECC codeword. The low-reliability DRAM access engine 22 partitions the storage space in the low-reliability DRAM 14 into an array of consecutive physical blocks, where each block is assigned with a physical page address (PBA) and protected by one ECC codeword. Hence, each block can store size-ne user data. A CPU accesses the low-reliability DRAM 14 in a byte-addressable manner (i.e., the CPU sends the starting byte address and length of the data being accessed). Let Ab denote the set of consecutive byte addresses of the data being accessed by a CPU. The low-reliability DRAM access engine 22 uses a fixed mapping function f(L) to determine the byte-address-to-PBA mapping, i.e., given the byte address set Ab, its corresponding PBA set Pb can be obtained as Pb=f(Ab), where the PBA set Pb contains one or multiple consecutive PBAs that fully cover the data being accessed by the CPU. As a result, the low-reliability DRAM access engine 22 does not need to explicitly store any byte-address-to-PBA mapping information. However, the low-reliability DRAM 14 may likely have a certain amount of bad physical blocks that contain too many defective DRAM cells to be handled by the ECC component 26 (i.e., the ECC component 26 cannot guarantee the storage integrity of bad physical blocks).
Let Db denote the set that contains the PBAs of all the bad physical blocks in the low-reliability DRAM 14. Assume the set Db contains a total of d bad physical blocks. The low-reliability DRAM access engine 22 allocates d good physical blocks as a replacement for the d bad physical blocks, and let the set Dg denote the set that contains the d allocated good physical blocks. The low-reliability DRAM access engine 22 maintains a PBA-PBA mapping table (as illustrated in
If it is a write request (N at process B1), as further illustrated in
The low-reliability DRAM access engine 22 when it implements transparent data compression will now be described. The low-reliability DRAM access engine 22 applies data compression to reduce the effective bit cost and read/write latency of the low-reliability DRAM 14. Let nb denote the typical DRAM access unit (e.g., 32-byte or 64-byte) being used by a CPU on each DRAM module 10. The low-reliability DRAM access engine 22 partitions the address space into an array of consecutive logical blocks, where each logical block is assigned a logical block address (LBA) and spans over the storage space of s⋅nb, where s≥1 is an integer. As depicted in
At process D4, the data is combined with the write request to form a new set of data that should be stored in the LBAs in the set Lb, compression on each LBA is carried out, and ECC encoding is performed to obtain compressed data blocks. At process D5, a segment is chosen that has enough available space to store the compressed data blocks. At process D6, the set of PBAs (denoted as P) in the chosen segment that will cover the compressed data blocks is derived, and a check is made to determine whether any PBA within the set P belongs to the set Db (i.e., corresponds to one entry in the PBA-PBA mapping table that maps from the set Db to the set Dg). For all the PBAs within the set P that belong to the set Db (Y at process D7), corresponding PBAs in the set Dg are used as replacements at process D8. At process D9, the low-reliability DRAM access engine 22 appends the compressed data blocks to the PBAs in the chosen segment and updates the mapping table.
Since the low-reliability DRAM access engine 22 writes all the segments of the low-reliability DRAM 14 in the append-only manner, it must periodically carry out a garbage collection process in the background to reclaim the stale storage space in one segment.
It is understood that aspects of the present disclosure may be implemented in any manner, e.g., as a software program, or an integrated circuit board or a controller card that includes a processing core, I/O and processing logic. Aspects may be implemented in hardware or software, or a combination thereof. For example, aspects of the processing logic may be implemented using field programmable gate arrays (FPGAs), ASIC devices, or other hardware-oriented system.
Aspects may be implemented with a computer program product stored on a computer readable storage medium. The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, etc. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.
Computer readable program instructions for carrying out operations of the present disclosure may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Java, Python, Smalltalk, C++ or the like, and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) may execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present disclosure.
The computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. The computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks.
Aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by hardware and/or computer readable program instructions.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts or carry out combinations of special purpose hardware and computer instructions.
The foregoing description of various aspects of the present disclosure has been presented for purposes of illustration and description. It is not intended to be exhaustive or to limit the concepts disclosed herein to the precise form disclosed, and obviously, many modifications and variations are possible. Such modifications and variations that may be apparent to an individual in the art are included within the scope of the present disclosure as defined by the accompanying claims.
Number | Date | Country | |
---|---|---|---|
62743654 | Oct 2018 | US |