A hybrid NVME SSD storage system based on MRAM main memory
By introducing MRAM main memory and BCH error correction algorithm into NVME SSD, the problem of high error rate and data loss of NAND FLASH is solved, the random performance and reliability of SSD are improved, and efficient I/O management and data protection are achieved. Reduced costs.
Patent Information
- Application Number
- CN202210408210.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-19
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2042-04-19
AI Technical Summary
Existing NVME SSDs have problems with high error rates and data loss when using NAND FLASH. Especially in the event of abnormal power outage, the FTL mapping table is not updated in time, causing the SSD to fail to be recognized by the system.
Adopting a hybrid NVME SSD storage system based on MRAM main memory, combined with the advantages of MRAM, the mapping relationship between logical block addresses and physical block addresses is maintained through the FTL mapping manager, and the BCH error correction algorithm is used to protect data and improve the randomness of the SSD controller. performance and reliability.
It achieves more efficient I/O management, improves the I/O performance and data reliability of SSD, ensures the atomicity of write operations, reduces the temporary data requirements of the SSD controller, avoids NameSpace consistency issues, and reduces cost.
Smart Images

Figure CN114822631B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of storage, and in particular to a hybrid NVME SSD storage system based on MRAM main memory. Background Art
[0002] NVME is a host controller interface specification for non-volatile memory. It is currently widely used in the application layer protocol implemented by the PCIExpress bus to connect to non-volatile storage media. Compared with the maximum 32 command queues that traditional SATA SSD hard drives can provide, NVME SSD provides thousands of parallel queues to control IO data flow, which can greatly reduce latency and significantly improve the IOPS capability of SSD.
[0003] The current NVME SSD uses NAND FLASH as non-volatile memory, but when using NAND FLASH, it is necessary to combine its usage restrictions to complete the development of SSD software code. At the same time, because the error rate of 3D TLC NAND is too high, BCH cannot solve it, so LDPC must be used. In addition, if an abnormal power failure occurs when the SSD reads, writes, deletes, etc. is working normally, it may cause the FTL mapping table to be lost because it cannot be updated in time, resulting in the failure of the SSD to be recognized by the system. Summary of the invention
[0004] In view of the defects of the prior art, the present invention provides a hybrid NVME SSD storage system based on MRAM main memory, which combines the advantages of MRAM itself to improve the random performance and reliability of the NVME SSD controller in a targeted manner and ensure data security.
[0005] In order to solve the technical problem, the technical solution adopted by the present invention is: a hybrid NVME SSD storage system based on MRAM main memory, including an application layer, a control layer and a storage layer, the application layer includes n applications I, 1 application II and a PCIE interface I, n is a positive integer, application II uses a shared cache HMB, and the shared cache HMB is separated from the cache area of application I; the control layer includes n+1 Name Space managers, a PCIE interface II, an NVME controller, an FTL mapping manager, a built-in SRAM, a NAND controller, a DRAM controller and an MRAM controller, the PCIE interface II is connected to the PCIE interface, and is used to realize data transmission between the application layer and the control layer, the n+1 Name Space managers correspond to the n applications I and the 1 application II, respectively, the NVME controller is connected between the PCIE interface II and the n+1 Name Space managers, the NVME controller is used to process the NVME protocol and transmit the processed NVME protocol to the Name Space manager, the Name Space manager logically divides the user space of the storage system, and in the Name Each application operates independently under the management of the Space manager. The FTL mapping manager is connected between the NameSpace manager and the built-in SRAM, NAND controller, DRAM controller, and MRAM controller. The FTL mapping manager is responsible for maintaining the mapping relationship between the logical block address LBA and the physical block address PBA of the storage medium. The storage layer includes external NAND, external DRAM, and external MRAM. The external NAND is connected to the NAND controller to store user data and FTL mapping tables in application I. The external DRAM is connected to the DRAM controller to store read buffer data, write buffer data, FTL mapping tables, FTL mapping table changes, user data tags, user configuration items, and operation logs. The external MRAM is connected to the MRAM controller to store user data and key log information in application II. The built-in SRAM is used to cache data in the NVME read commands of n Name Spaces.
[0006] Furthermore, the data flow path between components based on this system is: the write data flow in the NAND FLASH storage area is from the FTL mapping manager to the DRAM controller, and then from the DRAM controller to the NAND controller, and the read data flow is from the NAND controller via path ③ to the built-in SRAM, and via path ① to the FTL mapping manager; the write data flow path in the MRAM storage area is: from the FTL mapping manager to the MRAM controller, and the read data flow is from the MRAM controller to the FTL mapping manager; the key data backup business data flow in the NAND FLASH storage area is from the NAND controller to the FTL mapping manager, and then from the FTL mapping manager to the MRAM controller; the key data export business data flow is from the MRAM controller to the FTL mapping manager, and then from the FTL mapping manager to the DRAM controller.
[0007] Furthermore, application I applies to the host operating system for allocation of a cache space with continuous logical addresses for use by the control layer. The control layer stores the FTL mapping table in this area on the host side. After each IO request is sent to the SSD, the controller accesses this storage space on the host side through the PCIE interface to extract the corresponding entry in the FTL mapping table to find the physical address to which the corresponding IO target logical address is mapped.
[0008] Furthermore, the process of establishing the Name Space corresponding to Application II is as follows:
[0009] a) Determine whether a new name space is needed based on application requirements. If so, establish the name space through private command negotiation. If not, jump to step e);
[0010] b) Read the MRAM particle ID and identify the particle quotient;
[0011] c) Read MRAM controller information to identify capacity and speed;
[0012] d) The application layer establishes a shared cache HMB;
[0013] e) Load mapping management;
[0014] f) Build successfully.
[0015] Furthermore, the physical address of the shared cache HMB is discontinuous, and the control layer uses a base address plus an offset addressing method for anti-memory lookup of the HMB.
[0016] Furthermore, each Name Space has its own ID, and the ID of each Name Space is consistent with the application ID in the application layer.
[0017] Furthermore, when the NAND FLASH storage area is used, the FTL mapping manager places the mapping table in the external DRAM through the DRAM controller; when the MRAM storage area is used, the FTL mapping manager places the mapping table in the HMB in the upper application layer through the PCIE interface.
[0018] Furthermore, the NAND controller includes a NAND ECC unit and a NAND interface. The NAND interface is responsible for completing data interaction with an external NAND in the underlying storage medium layer. The NAND ECC unit uses a low-density forward check code LDPC error correction algorithm to protect data blocks.
[0019] Furthermore, the DRAM controller includes a DRAM ECC unit and a DRAM interface. The DRAM interface is responsible for completing data interaction with an external DRAM in the underlying storage medium layer. The DRAM ECC unit uses Hamming code to protect bytes and supports correcting one bit and detecting two bits.
[0020] Furthermore, the MRAM controller includes an MRAM ECC unit and an MRAM interface. The MRAM interface is responsible for completing data interaction with an external MRAM in the underlying storage medium layer. The MRAM ECC unit uses a BCH error correction algorithm to protect data blocks.
[0021] Beneficial effects of the present invention:
[0022] Achieve more efficient I / O management. Using MRAM as a high-reliability and high-performance storage area to supplement SSDs can improve the I / O performance of SSDs, allowing SSD manufacturers to better manage I / O flows, thereby achieving better latency determinism and improving QoS.
[0023] The high-reliability and high-performance area has simple write management and adopts data block operation, which does not require complex FTL algorithm management. At the same time, after the data block is protected as a whole by BCH, the reliability of the data is improved, the data reading and writing performance is kept stable, and the application requirements of key core businesses such as server applications are met.
[0024] Maintain the atomicity of data written to the high-performance and high-reliability storage area, and ensure the atomicity of the IO operation that writes to the area. An IO is either completely written or fails to write. There will not be a situation where part of the data is written and part is not written in an IO. Only when all the data of the IO is written to the MRAM will the host computer be replied to complete the write.
[0025] During the use of the high-performance and high-reliability storage area, the temporary data generated by the SSD controller is placed in the HMB in the host computer, reducing the demand for SRAM and DRAM in the SSD controller and avoiding consistency issues caused by the joint use of two types of NameSpaces.
[0026] It is used as a host-side peripheral block device and has good compatibility. Because we use it as a block device, we only need to write the corresponding private instructions to create and use NameSpace without modifying the operating system.
[0027] Mixed with DRAM to form a new memory system, the cost is acceptable. After adding specific functions to the unit modules in some SSD controllers, MRAM particles can be used, and the corresponding general application area or high-performance and high-reliability area can be used according to user business needs, which not only brings about the growth of key business performance, but also does not incur expensive costs, making large-scale applications a reality. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 It is a principle block diagram of the present invention;
[0029] Figure 2 A flowchart for building a NameSpace. DETAILED DESCRIPTION
[0030] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.
[0031] Example 1
[0032] This embodiment discloses a hybrid NVME SSD storage system based on MRAM main memory, which specifically improves the random performance and reliability of the NVME SSD controller and ensures data security.
[0033] like Figure 1 As shown, the system includes an upper application layer, a middle control layer and a bottom storage layer.
[0034] The application layer includes n applications I, 1 application II and PCIE interface I, where n is a positive integer. In this embodiment, application I is a common application with unlimited number, and application II is a high-performance and high-reliability application. Application II uses a shared cache HMB, which is separated from the cache area of application I to ensure the cache atomicity of the application and avoid synchronization problems. Application I applies to the host operating system for a cache space with a continuous logical address for use by the control layer. The control layer stores the FTL mapping table in this area on the host side. After each IO request is sent to the SSD, the controller accesses this storage space on the host side through the PCIE interface to extract the corresponding entry in the FTL mapping table to find the physical address to which the corresponding IO target logical address is mapped.
[0035] In this embodiment, the physical address of the shared cache HMB is discontinuous, and the control layer uses a base address plus an offset addressing method for anti-memory search of the HMB.
[0036] The control layer includes n+1 Name Space managers, PCIE interface II, NVME controller, FTL mapping manager, built-in SRAM, NAND controller, DRAM controller and MRAM controller. PCIE interface II is connected to PCIE interface to realize data transmission between application layer and control layer. n+1 Name Space managers correspond to n applications I and 1 application II respectively. Each Name Space has its own ID, and the ID of each Name Space is consistent with the application ID in the application layer. NVME controller is connected between PCIE interface II and n+1 Name Space managers. NVME controller is used to process NVME protocol and transmit the processed NVME protocol to Name Space manager. Name Space manager logically divides the user space of storage system. Under the management of Name Space manager, each application performs formatting and encryption separately. FTL mapping manager is connected between Name Space manager and built-in SRAM, NAND controller, DRAM controller and MRAM controller. FTL mapping manager is responsible for maintaining the mapping relationship between logical block address LBA and storage medium physical block address PBA.
[0037] In this embodiment, the NVME controller includes a standard command parsing unit and a private command parsing unit. The standard command parsing unit is used to establish and use the Name Space corresponding to application I; the private command parsing unit is used to establish and use the Name Space corresponding to application II.
[0038] The storage layer includes external NAND, external DRAM and external MRAM. The external NAND is connected to the NAND controller and is used to store user data and FTL mapping tables in application I. The external DRAM is connected to the DRAM controller and is used to store read buffer data, write buffer data, FTL mapping tables, FTL mapping table changes, user data tags, user configuration items, and operation logs. The external MRAM is connected to the MRAM controller and is used to store user data and key log information in application II. The built-in SRAM is used to cache data in NVME read commands of n Name Spaces.
[0039] The data flow path between components based on this system is: the write data flow in the NAND FLASH storage area is from the FTL mapping manager to the DRAM controller, and then from the DRAM controller to the NAND controller, and the read data flow is from the NAND controller to the built-in SRAM, and then from the built-in SRAM to the FTL mapping manager; the write data flow path in the MRAM storage area is: from the FTL mapping manager to the MRAM controller, and the read data flow is from the MRAM controller to the FTL mapping manager; the key data backup business data flow in the NAND FLASH storage area is from the NAND controller to the FTL mapping manager, and then from the FTL mapping manager to the MRAM controller; the key data export business data flow is from the MRAM controller to the FTL mapping manager, and then from the FTL mapping manager to the DRAM controller.
[0040] like Figure 2 As shown in the figure, the process of establishing the Name Space corresponding to application II is as follows:
[0041] a) Determine whether a new Name Space needs to be created based on application requirements. If it is the first request from the application layer, a new Name Space needs to be created. In this case, the Name Space establishment process starts through private command negotiation. If not, jump to step e);
[0042] b) Read the MRAM particle ID and identify the particle quotient, serial number, particle health status and other information;
[0043] c) Read the MRAM controller information, identify the capacity and speed, and configure the corresponding MRAM ECC function;
[0044] d) The application layer establishes a shared cache HMB to store various cache information required during the operation of the middle layer SSD controller;
[0045] e) Load mapping management, establish different physical address mapping relationships according to the application layer logical block address size;
[0046] f) Build successfully.
[0047] When using the NAND FLASH storage area, the FTL mapping manager places the mapping table in the external DRAM through the DRAM controller; when using the MRAM storage area, the FTL mapping manager places the mapping table in the HMB in the upper application layer through the PCIE interface. The built-in static memory SRAM is used to store cache data in the NVME read command of the normal Name Space.
[0048] The NAND controller includes a NAND ECC unit and a NAND interface. The NAND interface is responsible for completing data interaction with the external NAND in the underlying storage medium layer. The NAND ECC unit uses a low-density forward check code LDPC error correction algorithm to protect data blocks.
[0049] The DRAM controller includes a DRAM ECC unit and a DRAM interface. The DRAM interface is responsible for completing data interaction with the external DRAM in the underlying storage medium layer. The DRAM ECC unit uses Hamming code for byte-by-byte protection and supports correcting one bit and detecting two bits.
[0050] The MRAM controller includes an MRAM ECC unit and an MRAM interface. The MRAM interface is responsible for completing data interaction with the external MRAM in the underlying storage medium layer. The MRAM ECC unit uses the BCH error correction algorithm to protect the data block.
[0051] The above description is only the basic principle and preferred embodiments of the present invention. Improvements and substitutions made by those skilled in the art based on the present invention belong to the protection scope of the present invention.
Claims
1. A hybrid NVME SSD storage system based on MRAM main memory, characterized in that: It includes an application layer, a control layer and a storage layer. The application layer includes n applications I, 1 application II and a PCIE interface I, where n is a positive integer. Application II uses a shared cache HMB, and the shared cache HMB is separated from the cache area of application I. The control layer includes n+1 Name Space managers, a PCIE interface II, an NVME controller, an FTL mapping manager, a built-in SRAM, a NAND controller, a DRAM controller and an MRAM controller. The PCIE interface II is connected to the PCIE interface I to realize data transmission between the application layer and the control layer. The n+1 Name Space managers correspond to the n applications I and 1 application II respectively. The NVME controller is connected between the PCIE interface II and the n+1 Name Space managers. The NVME controller is used to process the NVME protocol and transmit the processed NVME protocol to the Name Space manager. The Name Space manager logically divides the user space of the storage system. Each application operates separately under the management of the Name Space manager. The FTL mapping manager is connected to the Name Space manager. Between the Space manager and the built-in SRAM, NAND controller, DRAM controller, and MRAM controller, the FTL mapping manager is responsible for maintaining the mapping relationship between the logical block address LBA and the physical block address PBA of the storage medium; the storage layer includes external NAND, external DRAM, and external MRAM. The external NAND is connected to the NAND controller and is used to store user data and FTL mapping tables in application I. The external DRAM is connected to the DRAM controller and is used to store read buffer data, write buffer data, FTL mapping tables, FTL mapping table changes, user data tags, user configuration items, and operation logs. The external MRAM is connected to the MRAM controller and is used to store user data and key log information in application II. The built-in SRAM is used to cache data in the NVME read commands of n Name Spaces. When using the NAND FLASH storage area, the FTL mapping manager places the mapping table in the external DRAM through the DRAM controller. When using the MRAM storage area, the FTL mapping manager places the mapping table in the HMB in the upper application layer through the PCIE interface.
2. The hybrid NVME SSD storage system based on MRAM main memory according to claim 1, characterized in that: The data flow path between components based on this system is as follows: the write data flow in the NAND FLASH storage area is from the FTL mapping manager to the DRAM controller, and then from the DRAM controller to the NAND controller, and the read data flow is from the NAND controller to the built-in SRAM, and then from the built-in SRAM to the FTL mapping manager; The write data flow path in the MRAM storage area is: from the FTL mapping manager to the MRAM controller, and the read data flow is from the MRAM controller to the FTL mapping manager; the key data backup service data flow in the NAND FLASH storage area is from the NAND controller to the FTL mapping manager, and then from the FTL mapping manager to the MRAM controller; The key data export business data flow is from the MRAM controller to the FTL mapping manager, and then from the FTL mapping manager to the DRAM controller.
3. The hybrid NVME SSD storage system based on MRAM main memory according to claim 1, characterized in that: Application I applies to the host operating system for a cache space with a continuous logical address for the control layer to use. The control layer stores the FTL mapping table in this area on the host side. After each IO request is sent to the SSD, the controller accesses this storage space on the host side through the PCIE interface to extract the corresponding entry in the FTL mapping table to find the physical address to which the corresponding IO target logical address is mapped.
4. The hybrid NVME SSD storage system based on MRAM main memory according to claim 1, characterized in that: The process of establishing the Name Space corresponding to Application II is as follows: a) Determine whether a new name space is needed based on application requirements. If so, establish the name space through private command negotiation. If not, jump to step e); b) Read the MRAM particle ID and identify the particle quotient; c) Read MRAM controller information to identify capacity and speed; d) The application layer establishes a shared cache HMB; e) Load mapping management; f) Establishment successful.
5. The hybrid NVME SSD storage system based on MRAM main memory according to claim 1, characterized in that: The physical address of the shared cache HMB is discontinuous, and the control layer uses the base address plus offset addressing method for HMB memory access.
6. The hybrid NVME SSD storage system based on MRAM main memory according to claim 1, characterized in that: Each Name Space has its own ID, which is consistent with the application ID in the application layer.
7. The hybrid NVME SSD storage system based on MRAM main memory according to claim 1, characterized in that: The NAND controller includes a NAND ECC unit and a NAND interface. The NAND interface is responsible for completing data interaction with the external NAND in the underlying storage medium layer. The NAND ECC unit uses a low-density forward check code LDPC error correction algorithm to protect data blocks.
8. The hybrid NVME SSD storage system based on MRAM main memory according to claim 1, characterized in that: The DRAM controller includes a DRAM ECC unit and a DRAM interface. The DRAM interface is responsible for completing data interaction with the external DRAM in the underlying storage medium layer. The DRAM ECC unit uses Hamming code for byte-by-byte protection and supports correcting one bit and detecting two bits.
9. The hybrid NVME SSD storage system based on MRAM main memory according to claim 1, characterized in that: The MRAM controller includes an MRAM ECC unit and an MRAM interface. The MRAM interface is responsible for completing data interaction with the external MRAM in the underlying storage medium layer. The MRAM ECC unit uses the BCH error correction algorithm to protect the data block.
Citation Information
Patent Citations
SSD (solid state drive) controller chip based on embedded STT-MRAM (spin-transfer torque magnetic random access memory) and solid state drive
CN106294226A
Acceleration processing method for autonomously outputting NVME protocol command
CN111831226A
Storage device of heterogeneous namespace and application thereof in database
CN111858401A
SSD based on HBM cache
CN113760796A
Data storage device using host memory and method of operating same
US20180039578A1
