Storage system, creation method, data processing method, apparatus and device, and nonvolatile readable storage medium

By mapping the persistent memory areas of multiple storage devices into continuous linear storage spaces, and using different flash memory units in layers according to IO types, the problem of poor small IO read and write performance of the storage system is solved, achieving high performance and high cost performance. and reliability of all-flash storage systems.

WO2024179157A1PCT designated stage expired Publication Date: 2024-09-06LANGCHAO ELECTRONIC INFORMATION IND CO LTD

Patent Information

Application Number
PCT/CN2023/141948
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-27
Filing Date
2023-12-26
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing storage systems perform poorly in small IO read and write performance, and it is difficult to achieve high reliability and cost-effective storage systems.

Method used

By mapping the persistent memory areas of multiple storage devices into contiguous linear storage spaces, create storage spaces of different sizes to handle non-block size aligned read and write requests, utilizing different types of flash memory cells (SLC, MLC, TLC, etc.) IO type stratification eliminates the reading and modification process and improves performance and cost-effectiveness.

Benefits of technology

It achieves a high-performance, cost-effective and reliable all-flash storage system, improves small IO read and write performance, and ensures data reliability through multi-copy technology and erasure coding technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023141948_06092024_PF_FP
    Figure CN2023141948_06092024_PF_FP
Patent Text Reader

Abstract

The present application discloses a storage system, a creation method, a data processing method, apparatus and device, and a nonvolatile readable storage medium, and relates to the technical field of storage. The storage system comprises a first storage space used for processing read-write requests not aligned with block sizes, the first storage space specifically being a storage space containing persistent memory regions of a plurality of storage devices; a second storage space that is connected to the first storage space and is used for processing read-write requests aligned with a first block size; and a third storage space that is connected to the second storage space and is used for processing read-write requests aligned with a second block size, the second block size being greater than the first block size. According to the present application, small IO read-write performance is improved, while a storage system having high reliability and high cost performance is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Storage system and creation method, data processing method, device, equipment and non-volatile readable storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on February 27, 2023, with application number 2023101668279, and application name “Storage system and creation method, data processing method, device, equipment and medium”, all contents of which are incorporated by reference into this application. Technical Field

[0003] The present application relates to the field of storage technology, and in particular, to a storage system and creation method, a data processing method, an apparatus, a device, and a non-volatile readable storage medium. Background Art

[0004] The evolution of storage system software is closely tied to storage media and applications. Changes in storage media and application scenarios necessitate a redesign of storage software. Different media have different characteristics, and storage systems must leverage their strengths and overcome their weaknesses to achieve the optimal balance between performance, price, and reliability.

[0005] HDDs (hard disk drives) offer high capacity and low price, but their performance lags significantly behind SSDs (solid-state hard drives) and they are gradually being phased out. In terms of reliability, SLC (single-level cell) > MLC (multi-level cell) > QLC (quad-level cell). In terms of price, SLC > MLC > QLC, and QLC is expected to be cheaper than, or on par with, HDDs. Therefore, using any single flash memory type alone has inherent drawbacks.

[0006] First-generation storage system software was primarily optimized for HDDs, resulting in a heavy storage stack and high latency, which prevented the full performance of SSDs. Current storage systems optimized for flash memory typically use a single type of flash memory, such as MLC or TLC (triple level cell), which offers high performance but low cost-performance and limited applicability.

[0007] In related technologies, all reads and writes are performed in blocks. As shown in Figure 1, during a small IO (Input / Output) read or write, the block to be modified is first read, then some of the data within it is modified, and finally the modified data is written back, resulting in a read-modify-write operation. This increases the number of IO operations and the amount of data read and written, which is the main reason for the poor read and write performance of small IO operations.

[0008] Therefore, how to improve the small IO read and write performance while achieving a high reliability and cost-effective storage system is a technical problem that needs to be solved by those skilled in the art.

[0009] Summary of the Invention

[0010] The purpose of this application is to provide a storage system and creation method, data processing method, device, equipment and non-volatile readable storage medium, which improves small IO read and write performance and realizes a high reliability and cost-effective storage system.

[0011] To achieve the above objectives, the present application provides a storage system, comprising:

[0012] A first storage space is used to process non-block-size aligned read and write requests; wherein the first storage space is specifically a storage space including a persistent memory area of ​​a plurality of storage devices;

[0013] A second storage space connected to the first storage space, for processing read and write requests aligned with the first block size;

[0014] The third storage space connected to the second storage space is used to process read and write requests aligned with a second block size; wherein the second block size is larger than the first block size.

[0015] The first storage space is specifically the storage space of the storage-class memory.

[0016] The storage device is specifically a solid-state hard drive.

[0017] The first storage space is specifically a continuous linear storage space including persistent memory areas of multiple storage devices.

[0018] The first storage space is further used to aggregate data of multiple bytes into data of a first block size and migrate the data to the second storage space.

[0019] The second storage space is further used to aggregate a plurality of data of the first block size into data of the second block size and migrate the data to the third storage space.

[0020] The second storage space is specifically a single-layer storage unit or a multi-layer storage unit.

[0021] The third storage space is specifically a three-layer storage unit, a four-layer storage unit, or a five-layer storage unit.

[0022] The first storage space is specifically used to store byte-level data;

[0023] The second storage space is specifically used to store KB-level data;

[0024] The third storage space is specifically used to store MB-level data.

[0025] Among them, the first storage space is specifically a continuous storage space containing persistent memory areas of multiple storage devices. The persistent memory area is a storage area created using the PMR function of the storage device. The first storage space, the second storage space, and the third storage space are different flash memories.

[0026] To achieve the above objectives, the present application provides a method for creating a storage system, comprising:

[0027] Mapping persistent memory areas of multiple storage devices to the memory address space of the operating system respectively to create a first storage space for processing non-block size aligned read and write requests;

[0028] Creating a second storage space for processing read and write requests aligned with the first block size;

[0029] A third storage space is created for processing read and write requests aligned with a second block size; wherein the second block size is larger than the first block size.

[0030] The step of creating a first storage space for processing non-block-size aligned read and write requests includes:

[0031] Based on the memory logical addresses after the mapping of the multiple persistent memory areas, the multiple persistent memory areas are spliced ​​into a continuous linear storage space, and the continuous linear storage space is used as the first storage space for processing non-block size aligned read and write requests.

[0032] The step of creating a second storage space for processing read and write requests aligned with the first block size includes:

[0033] A single-level storage unit or a multi-level storage unit is created for processing a first block-size aligned read or write request.

[0034] The step of creating a third storage space for processing read and write requests aligned with the second block size includes:

[0035] A three-tier storage unit, a four-tier storage unit, or a five-tier storage unit is created for processing read and write requests aligned with the second block size.

[0036] The storage system is an all-flash storage system, the persistent memory area is a storage area created using the PMR function of the storage device, and the first storage space, the second storage space, and the third storage space are different flash memories.

[0037] To achieve the above objectives, the present application provides a storage system creation device, comprising:

[0038] a first creation module configured to map the persistent memory areas of the plurality of storage devices to the memory address space of the operating system respectively, so as to create a first storage space for processing non-block size aligned read and write requests;

[0039] a second creation module configured to create a second storage space for processing read and write requests aligned with the first block size;

[0040] The third creation module is configured to create a third storage space for processing read and write requests aligned with a second block size; wherein the second block size is larger than the first block size.

[0041] Among them, the first creation module is specifically used to: map the persistent memory areas of multiple storage devices to the memory address space of the operating system respectively, splice the multiple persistent memory areas into a continuous linear storage space based on the memory logical addresses after the mapping of the multiple persistent memory areas, and use the continuous linear storage space as the first storage space for processing non-block size aligned read and write requests.

[0042] The second creation module is specifically used to create a single-layer storage unit or a multi-layer storage unit for processing read and write requests aligned with the first block size.

[0043] The third creation module is specifically used to create a three-layer storage unit or a four-layer storage unit for processing read and write requests aligned with the second block size.

[0044] To achieve the above objectives, this application provides a data processing method, including:

[0045] When receiving a read or write request, determining the alignment of the read or write request;

[0046] If the read / write request is non-block-size aligned, responding to the read / write request using the first storage space of the storage system; wherein the storage system may be the above-mentioned storage system;

[0047] If the read / write request is aligned to the first block size, responding to the read / write request using the second storage space of the storage system;

[0048] If the data is aligned to a second block size, a third storage space of the storage system is used to respond to the read and write request; wherein the second block size is larger than the first block size.

[0049] Among them, also include:

[0050] Aggregate multiple bytes of data in the first storage space into data of a first block size and migrate the data to the second storage space.

[0051] Among them, also include:

[0052] Aggregate a plurality of data of the first block size in the second storage space into data of the second block size and migrate the data to the third storage space.

[0053] Among them, the storage system is an all-flash storage system, the first storage space is specifically a continuous storage space containing persistent memory areas of multiple storage devices, the persistent memory area is a storage area created using the PMR function of the storage device, and the first storage space, the second storage space, and the third storage space are different flash memories.

[0054] To achieve the above objectives, the present application provides a data processing device, comprising:

[0055] a determination module, configured to determine an alignment mode of a read / write request when receiving the read / write request;

[0056] A first storage module is configured to respond to a read / write request using a first storage space of a storage system when the read / write request is non-block-size aligned; wherein the storage system may be the above-mentioned storage system;

[0057] a second storage module configured to respond to the read / write request using a second storage space of the storage system when the read / write request is aligned to the first block size;

[0058] The third storage module is configured to respond to the read / write request using the third storage space of the storage system when the read / write request is aligned to a second block size; wherein the second block size is larger than the first block size.

[0059] Among them, also include:

[0060] The first migration module is configured to aggregate a plurality of bytes of data in the first storage space into data of a first block size and migrate the data to the second storage space.

[0061] Among them, also include:

[0062] The second migration module is configured to aggregate a plurality of data of the first block size in the second storage space into data of the second block size and migrate the data to the third storage space.

[0063] To achieve the above objectives, the present application provides an electronic device, comprising:

[0064] memory for storing computer programs;

[0065] A processor is used to implement the steps of the above-mentioned storage system creation method or data processing method when executing a computer program.

[0066] To achieve the above objectives, the present application provides a non-volatile readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned storage system creation method or data processing method are implemented.

[0067] From the above scheme, it can be seen that a storage system provided by the present application includes a first storage space for processing non-block size aligned read and write requests; wherein the first storage space can be a storage space containing a persistent memory area of ​​multiple storage devices; a second storage space connected to the first storage space is used to process read and write requests aligned with the first block size; a third storage space connected to the second storage space is used to process read and write requests aligned with the second block size; wherein the second block size is larger than the first block size.

[0068] The storage system provided by this application has different storage spaces that process data of different IO types according to the characteristics of different flash memories, thereby establishing an all-flash storage system with high performance, high cost performance and high reliability. In addition, the storage system provided by this application aggregates the persistent memory regions (PMRs) in multiple storage devices as the first storage space, eliminating the read-modify-write process and improving the small IO read and write performance. This application also discloses a storage system and creation method, data processing method, device, equipment and non-volatile readable storage medium, which can also achieve the above technical effects.

[0069] It should be understood that the foregoing general description and the following detailed description are merely illustrative and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following will briefly introduce the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. The drawings are used to provide an understanding of the present disclosure and constitute part of the specification. Together with the following optional implementation methods, they are used to explain the present disclosure, but do not constitute a limitation of the present disclosure. In the drawings:

[0071] FIG1 is a schematic diagram of a data read, modify, and write process in blocks in the related art;

[0072] FIG2 is a structural diagram of a storage system according to an exemplary embodiment;

[0073] FIG3 is a flow chart showing a method for creating a storage system according to an exemplary embodiment;

[0074] FIG4 is a schematic diagram showing a linear space integrating multiple PMRs according to an exemplary embodiment;

[0075] FIG5 is a flow chart showing a data processing method according to an exemplary embodiment;

[0076] FIG6 is a structural diagram of a flash memory in an application embodiment provided by the present application;

[0077] FIG7 is a structural diagram of a storage system creation device according to an exemplary embodiment;

[0078] FIG8 is a structural diagram of a data processing device according to an exemplary embodiment;

[0079] Fig. 9 is a structural diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0080] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application. In addition, in the embodiments of the present application, "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0081] The NVMe (non-volatile memory express) 1.4 specification adds a key feature: PMR (persistent memory area). A PMR is a storage area. Using this feature, you create and control a persistent memory area, mapped to the address space on the PCI Express bus and accessible to the host and other devices. The key feature of PMR is that data written to it persists even after a power outage, a controller reset, or the PMR enable / disable switch. In other words, this feature allows SSDs to provide a second non-volatile storage area in addition to the storage area accessed via Logical Block Addresses (LBAs). This storage area is accessed using memory access rather than block access, thus avoiding the inefficient read-modify-write process mentioned above. Its access speed is faster than flash memory, approaching the speed of main memory. It also ensures that data is not lost in the event of an SSD failure. Therefore, it is a promising alternative to non-volatile memory. It offers small capacity, extremely high speed, high reliability, and a high price, making it suitable for handling small byte-level I / O.

[0082] SLC and MLC are two types of flash memory with high reliability and high cost. Their read and write units are blocks, and they achieve the highest performance when processing entire blocks. They are suitable for processing block-aligned data, that is, KB-level data.

[0083] TLC, QLC, and PLC (penta level cell) flash memory are relatively low-cost but short-life. They occupy the largest capacity in a system and are a key factor in determining overall cost. Technologies such as EC are used to increase aggregate bandwidth and reduce failure rates, while global wear leveling improves cost-effectiveness. They are suitable for processing large data blocks, typically megabytes.

[0084] This application uses all the above-mentioned types of storage media in combination, aggregates multiple NVME SSD disks with PMR function, and integrates all PMR memory space into a unified linear space, thereby achieving high IOPS (the number of read and write operations per second, Input / Output Operations Per Second). It is mainly responsible for byte-level hot data. Block-aligned IO is stored on SLC or MLC flash memory. It is the physical basis of high bandwidth and stores warm data on it. TLC, QLC or PLC is suitable for large IO reading and writing, and it mainly stores cold data.

[0085] An embodiment of the present application discloses a storage system. Referring to FIG2 , a structural diagram of a storage system according to an exemplary embodiment is shown. As shown in FIG2 , the storage system includes:

[0086] A first storage space 10 is used to process non-block-size aligned read and write requests; wherein the first storage space may be a storage space including a persistent memory area of ​​multiple storage devices;

[0087] A second storage space 20 connected to the first storage space 10, for processing read and write requests aligned with the first block size;

[0088] The third storage space 30 connected to the second storage space 20 is used to process read and write requests aligned with a second block size; wherein the second block size is larger than the first block size.

[0089] In this embodiment, in order to give full play to the characteristics of all flash memories, the entire storage system is divided into three layers, namely, a first storage space 10 , a second storage space 20 and a third storage space 30 .

[0090] The first storage space 10 mainly solves the performance problem of small IO. Its main function is to process IO that is smaller than a block or IO that is not block-size aligned, thereby avoiding inefficient read, modify and write. Because it is non-volatile, when the user writes to it, it can return immediately. That is, the first storage space 10 can be used to store byte-level data. The first storage space 10 can be a storage space for storage-class memory (SCM), including persistent memory regions (PMRs) of multiple storage devices, and the storage devices here can be solid-state drives (SSDs). It should be noted that the memory logical addresses of the PMRs of each storage device may be discontinuous, which is inconvenient to use. Therefore, they are spliced ​​into a continuous PMR linear space, that is, the first storage space 10 can be a continuous linear storage space containing persistent memory regions of multiple storage devices.

[0091] Optionally, the first storage space 10 is further configured to aggregate multiple bytes of data into a first block size and migrate the data to the second storage space 20. In an optional implementation, the first storage space aggregates the small blocks of IO into a whole block and then migrates the data to the next layer, i.e., the second storage space.

[0092] The second storage space 20 primarily addresses block I / O performance. If user data is aligned to the first block size, it will skip the first storage space and be written directly to the second storage space. This means that the second storage space 20 can store KB-level data. The second storage space offers a longer lifespan and higher performance, and can be single-level cell (SLC) or multi-level cell (MLC).

[0093] Optionally, the second storage space also accepts migrated data from the first storage space to prevent the first storage space from running out of space. Furthermore, the second storage space 20 is further configured to aggregate multiple data blocks of the first block size into data blocks of the second block size and migrate the data to the third storage space. In an optional implementation, the second storage space aggregates a certain number of data blocks into a large block and then migrates the data to the next level, namely the third storage space.

[0094] The third storage space 30 accounts for the majority of the storage system's costs and has the largest capacity, meaning it can store megabytes of data. While its performance is inferior to the first two tiers, it offers high capacity and low cost. The third storage space can be triple-level cells (TLC), quad-level cells (QLC), or quintuple-level cells (PLC). If user data is block-aligned, i.e., aligned to the second block size, it will be written directly to the third storage space, skipping the first and second storage spaces.

[0095] Optionally, the third storage space also accepts migrated data from the second storage space to prevent the second storage space from running out of space. The third storage space is mainly used to address cost issues, so related EC (erasure code) technologies and deduplication and compression functions are used at this layer.

[0096] The storage system provided by this application uses different storage spaces to process data of different IO types based on the characteristics of different flash memories, thereby establishing an all-flash storage system with high performance, high cost-effectiveness, and high reliability. In addition, the storage system provided by this application aggregates the persistent memory regions (PMRs) in multiple storage devices as the first storage space, eliminating the read-modify-write process and improving small IO read and write performance.

[0097] An embodiment of the present application discloses a method for creating a storage system. Referring to FIG3 , a flowchart of a method for creating a storage system according to an exemplary embodiment is shown. As shown in FIG3 , the method includes:

[0098] S101: Mapping persistent memory areas of multiple storage devices to a memory address space of an operating system respectively to create a first storage space for processing non-block-size aligned read and write requests;

[0099] Understandably, both HDDs and SSDs use fixed-size blocks (512 bytes or 4KB) for read and write data. This is the fundamental reason for their slow byte-level I / O processing. The fundamental solution to this problem is to use physical media accessed in byte-by-byte fashion. The NVMe 1.4 specification adds a key feature, PMR. With this feature, SSDs with PMR memory maintain data integrity before and after a failure, ensuring no data loss, effectively acting as non-volatile memory.

[0100] The PMR memory space of a single NVME SSD is limited. To efficiently utilize the PMR memory of all NVME SSDs, they need to be aggregated to provide a unified linear space and use multi-copy technology to ensure its reliability.

[0101] In an optional implementation, the PMR memory in each storage device (which may be an NVME SSD) is first mapped to the memory address space of the operating system to create a first storage space for processing non-block size aligned read and write requests.

[0102] As an optional implementation, creating a first storage space for processing non-block-size aligned read and write requests includes: splicing multiple persistent memory areas into a continuous linear storage space based on the memory logical addresses after the multiple persistent memory areas are mapped, and using the continuous linear storage space as the first storage space for processing non-block-size aligned read and write requests.

[0103] It is understandable that after successful mapping, the memory logical addresses of each PMR may be discontinuous, which is inconvenient to use. Therefore, it is necessary to splice all mapped address spaces into a continuous PMR linear space for convenient use. A schematic diagram of integrating multiple PMR linear spaces is shown in Figure 4.

[0104] Optionally, to prevent physical damage to a single NVME SSD, data replication is used to ensure data reliability. That is, when a copy of data is written to a PMR linear space, it is actually written to the PMR memory of one or more NVME SSDs. This way, if one of the NVME SSDs is physically damaged, the data will not be lost.

[0105] S102: creating a second storage space for processing read and write requests aligned with the first block size;

[0106] In an optional implementation, a second storage space is created to handle read and write requests aligned to the first block size. This second storage space primarily addresses the performance issues associated with full-block IO. If user data is aligned to the first block size, it will skip the first storage space and be written directly to the second storage space. This means that the second storage space can be used to store KB-level data.

[0107] As a feasible implementation, creating a second storage space for processing read and write requests aligned with the first block size includes: creating a single-layer storage unit or a multi-layer storage unit for processing the read and write requests aligned with the first block size. The second storage space has the characteristics of long life and high performance and can be a single-layer storage unit (SLC) or a multi-layer storage unit (MLC).

[0108] Optionally, the second storage space also accepts migration data from the first storage space to avoid running out of space in the first storage space. In addition, the second storage space will gather a certain number of data blocks into a large block and then migrate the data to the next layer, i.e. the third storage space.

[0109] S103: Create a third storage space for processing read and write requests aligned with a second block size; wherein the second block size is larger than the first block size.

[0110] In an optional implementation, a third storage space is created to handle read and write requests aligned to the second block size. The third storage space accounts for the majority of the storage system's costs and has the largest capacity, meaning it can store megabyte-scale data. If user data is large-block aligned, i.e., aligned to the second block size, it will be written directly to the third storage space, skipping the first and second storage spaces.

[0111] As a feasible implementation, creating a third storage space for processing read and write requests aligned with the second block size includes: creating a three-level storage unit or a four-level storage unit for processing the read and write requests aligned with the second block size. The third storage space has lower performance than the first and second storage spaces, but has large capacity and low cost. The third storage space may be a three-level storage unit (TLC), a four-level storage unit (QLC), or a five-level storage unit (PLC).

[0112] Optionally, the third storage space also accepts migrated data from the second storage space to prevent the second storage space from running out of space. The third storage space is mainly used to address cost issues, so related EC (erasure code) technologies and deduplication and compression functions are used at this layer.

[0113] It can be seen that the high performance of the storage system provided by this embodiment is reflected in the following: small IOs and IOs that are not aligned with block boundaries are handled by the SCM layer, which eliminates the read-modify-write process and greatly improves performance. The performance optimization goal of each layer is single, and the implementation of optimization is simplified, which can maintain high performance under various IO loads. The high cost-effectiveness is reflected in the following: from the upper layer to the lower layer, the price gradually becomes cheaper, the random performance gradually becomes lower, and the lifespan gradually becomes shorter. By reasonably combining them, high cost-effectiveness and high performance can be achieved. High reliability is reflected in the following: the first layer uses PMR linear space to ensure speed while ensuring reliability; the second and third layers use EC or replica technology to ensure the reliability of their data.

[0114] In the embodiments of the present application, different storage spaces process data of different IO types based on the characteristics of different flash memories, thereby establishing an all-flash storage system with high performance, high cost-effectiveness, and high reliability. In addition, the embodiments of the present application aggregate the persistent memory regions (PMRs) in multiple storage devices as the first storage space, eliminating the read-modify-write process and improving small IO read and write performance.

[0115] The present application discloses a data processing method. Referring to FIG5 , a flow chart of a data processing method according to an exemplary embodiment is shown. As shown in FIG5 , the method includes:

[0116] S201: When a read / write request is received, determining an alignment mode of the read / write request;

[0117] S202: If the read / write request is not block-size aligned, respond to the read / write request using a first storage space of the storage system; wherein the storage system may be the storage system provided in the above embodiment;

[0118] In an optional implementation, if the user's data is smaller than a block or is non-block aligned, it will be written to the first storage space.

[0119] S203: If the read / write request is aligned with the first block size, respond to the read / write request using the second storage space of the storage system;

[0120] In an optional implementation, if the user's data is aligned to the first block size, it will skip the first storage space and be written directly to the second storage space.

[0121] S204: If the data is aligned to a second block size, respond to the read and write request using a third storage space of the storage system; wherein the second block size is larger than the first block size.

[0122] In an optional implementation, if the user's data is block-aligned, that is, aligned to the second block size, it will skip the first storage space and the second storage space and be directly written to the third storage space.

[0123] Based on the above embodiment, as an optional implementation, the method further includes: aggregating multiple bytes of data in the first storage space into a first block of data and migrating it to the second storage space. In this optional implementation, the first storage space aggregates the small I / O blocks into a whole block and then migrates the data to the next layer, namely the second storage space. The second storage space receives the migrated data from the first storage space to prevent the first storage space from running out of space.

[0124] Based on the above embodiment, as an optional implementation, the method further includes: aggregating multiple data blocks of the first block size in the second storage space into data blocks of the second block size and migrating the data into the third storage space. In this optional implementation, the second storage space aggregates a certain number of data blocks into a large block and then migrates the data to the third storage space. The third storage space receives the migrated data from the second storage space to prevent the second storage space from running out of space.

[0125] In the embodiments of the present application, different storage spaces process data of different IO types based on the characteristics of different flash memories, thereby establishing an all-flash storage system with high performance, high cost-effectiveness, and high reliability. In addition, the embodiments of the present application aggregate the persistent memory regions (PMRs) in multiple storage devices as the first storage space, eliminating the read-modify-write process and improving small IO read and write performance.

[0126] The following describes an application embodiment provided by the present application: The PMR memory space of a single NVME SSD is limited. In order to efficiently utilize the PMR memory of all NVME SSDs, they need to be aggregated to provide a unified linear space and use multi-copy technology to ensure its reliability.

[0127] First, the PMR memory in each NVME SSD is mapped to the operating system's memory address space. After successful mapping, the memory logical address may be discontinuous, which is inconvenient to use. Therefore, all mapped address spaces must be spliced ​​into a continuous PMR linear space for easier use.

[0128] To prevent physical damage to a single NVME SSD, a replication method is used to ensure data reliability. That is, when a copy of data is written to a PMR linear space, it is actually written to the PMR memory of one or more NVME SSDs. In this way, if one of the NVME SSDs is physically damaged, the data will not be lost.

[0129] To fully utilize the characteristics of current flash memory, as shown in Figure 6, the entire flash memory structure is divided into three layers:

[0130] The first layer is the PMR linear space. Essentially equivalent to power-retaining memory, this layer primarily addresses small I / O performance issues. Its primary function is to handle I / O smaller than a block or non-block-aligned data, thereby avoiding inefficient read-modify-write operations. Because it is non-volatile, writes to it are immediately returned. It aggregates these small I / O blocks into a single block and then migrates the data to the next layer.

[0131] The second layer is the SLC / MLC storage space. This layer primarily addresses whole-block I / O performance issues. Current SLC / MLC SSDs are 4KB aligned. If user data is 4KB aligned and its length is an integer multiple of 4KB, it will skip the first layer and write directly to this layer. It also accepts migrated data from the linear space of the PMR layer to prevent it from running out of space. SLC / MLC flash memory has a long lifespan and high performance, making it suitable for buffering at this layer. It aggregates a certain number of 4KB blocks into a large block (MB level) and then migrates the data to the next layer.

[0132] The third tier is the TLC / QLC / PLC storage space. This tier accounts for the majority of the system's costs and boasts the largest capacity. While its performance is lower than the first two tiers, it offers high capacity and low cost. If user data is large-block aligned, it will skip the first two tiers and be written directly to this tier. It also accepts data migrations from SLC / MLC storage spaces to prevent its own storage from running out of space. This tier primarily addresses cost concerns, so related EC technologies and deduplication and compression are utilized here.

[0133] The high performance of the storage system provided by this embodiment is reflected in the following: small IOs and IOs that are not aligned with block boundaries are handled by the SCM layer, which eliminates the read-modify-write process and greatly improves performance. The performance optimization goal of each layer is single, and the optimization implementation is simplified, which can maintain high performance under various IO loads. The high cost-effectiveness is reflected in the following: from the upper layer to the lower layer, the price gradually becomes cheaper, the random performance gradually becomes lower, and the lifespan gradually becomes shorter. By rationally combining them, high cost-effectiveness and high performance can be achieved. High reliability is reflected in the following: the first layer uses PMR linear space to ensure speed while ensuring reliability; the second and third layers use EC or replication technology to ensure the reliability of their data.

[0134] The following introduces a storage system creation device provided in an embodiment of the present application. The storage system creation device described below and the storage system creation method described above can be referenced to each other.

[0135] 7 , which is a structural diagram of a storage system creation device according to an exemplary embodiment, includes:

[0136] A first creation module 701 is configured to map the persistent memory areas of multiple storage devices to the memory address space of the operating system respectively, so as to create a first storage space for processing non-block size aligned read and write requests;

[0137] A second creation module 702 is configured to create a second storage space for processing a read / write request aligned with the first block size;

[0138] The third creation module 703 is configured to create a third storage space for processing read and write requests aligned with a second block size; wherein the second block size is larger than the first block size.

[0139] In the embodiments of the present application, different storage spaces process data of different IO types based on the characteristics of different flash memories, thereby establishing an all-flash storage system with high performance, high cost-effectiveness, and high reliability. In addition, the embodiments of the present application aggregate the persistent memory regions (PMRs) in multiple storage devices as the first storage space, eliminating the read-modify-write process and improving small IO read and write performance.

[0140] Based on the above embodiment, as an optional implementation, the first creation module 701 can be configured to: map the persistent memory areas of multiple storage devices to the memory address space of the operating system respectively, splice the multiple persistent memory areas into a continuous linear storage space based on the memory logical addresses after the mapping of the multiple persistent memory areas, and use the continuous linear storage space as the first storage space for processing non-block size aligned read and write requests.

[0141] Based on the above embodiment, as an optional implementation, the second creation module 702 may be configured to create a single-layer storage unit or a multi-layer storage unit for processing read and write requests aligned with the first block size.

[0142] Based on the above embodiment, as an optional implementation, the third creation module 703 may be configured to create a three-tier storage unit or a four-tier storage unit for processing read and write requests aligned with the second block size.

[0143] A data processing device provided in an embodiment of the present application is introduced below. The data processing device described below and the data processing method described above can be referenced to each other.

[0144] Referring to FIG8 , a structural diagram of a data processing device according to an exemplary embodiment is shown. As shown in FIG8 , the device includes:

[0145] The determination module 801 is configured to determine an alignment mode of a read / write request when receiving the read / write request;

[0146] The first storage module 802 is configured to respond to the read / write request using the first storage space of the storage system when the read / write request is non-block-size aligned; wherein the storage system may be the storage system provided in the above embodiment;

[0147] The second storage module 803 is configured to respond to the read / write request using the second storage space of the storage system when the read / write request is aligned to the first block size;

[0148] The third storage module 804 is configured to respond to the read / write request using the third storage space of the storage system when the read / write request is aligned to a second block size; wherein the second block size is larger than the first block size.

[0149] In the embodiments of the present application, different storage spaces process data of different IO types based on the characteristics of different flash memories, thereby establishing an all-flash storage system with high performance, high cost-effectiveness, and high reliability. In addition, the embodiments of the present application aggregate the persistent memory regions (PMRs) in multiple storage devices as the first storage space, eliminating the read-modify-write process and improving small IO read and write performance.

[0150] Based on the above embodiment, as an optional implementation manner, the following is further included:

[0151] The first migration module is configured to aggregate a plurality of bytes of data in the first storage space into data of a first block size and migrate the data to the second storage space.

[0152] Based on the above embodiment, as an optional implementation manner, the following is further included:

[0153] The second migration module is configured to aggregate a plurality of data of the first block size in the second storage space into data of the second block size and migrate the data to the third storage space.

[0154] Regarding the apparatus in the above embodiment, the optional manners in which each module performs operations have been described in detail in the embodiment of the method and will not be elaborated on here.

[0155] Based on the hardware implementation of the above program modules, and in order to implement the method of the embodiment of the present application, the embodiment of the present application further provides an electronic device. FIG9 is a structural diagram of an electronic device according to an exemplary embodiment. As shown in FIG9 , the electronic device includes:

[0156] Communication interface 1, capable of exchanging information with other devices such as network devices;

[0157] Processor 2 is connected to communication interface 1 to implement information exchange with other devices. It is configured to execute the storage system creation method or data processing method provided by one or more of the above technical solutions when running a computer program. The computer program is stored in memory 3.

[0158] Of course, in actual applications, the various components in the electronic device are coupled together via bus system 4. It will be appreciated that bus system 4 is configured to enable communication between these components. In addition to a data bus, bus system 4 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in FIG9 , all of these buses are labeled as bus system 4.

[0159] The memory 3 in the embodiment of the present application is configured to store various types of data to support the operation of the electronic device. Examples of such data include any computer program used to operate on the electronic device.

[0160] It is understood that the memory 3 can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a magnetic disk memory or a magnetic tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus random access memory (DRRAM).The memory 3 described in the embodiments of the present application is intended to include but is not limited to these and any other suitable types of memories.

[0161] The method disclosed in the above-mentioned embodiment of the present application can be applied to processor 2 or implemented by processor 2. Processor 2 may be an integrated circuit chip with signal processing capabilities. During the implementation process, each step of the above-mentioned method can be completed by the integrated logic circuit of the hardware in processor 2 or instructions in the form of software. The above-mentioned processor 2 can be a general-purpose processor, DSP, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Processor 2 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in memory 3. Processor 2 reads the program in memory 3 and completes the steps of the above-mentioned method in combination with its hardware.

[0162] When the processor 2 executes the program, the corresponding processes in each method of the embodiment of the present application are implemented. For the sake of brevity, they are not repeated here.

[0163] In an exemplary embodiment, the present application also provides a non-volatile readable storage medium, namely, a computer storage medium. The non-volatile readable storage medium may include a memory 3 storing a computer program. The computer program may be executed by a processor 2 to perform the aforementioned method steps. The non-volatile readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface mount storage, optical disk, or CD-ROM.

[0164] Those skilled in the art will understand that all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a non-volatile readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiment; and the aforementioned non-volatile readable storage medium includes: mobile storage devices, ROM, RAM, magnetic disks or optical disks, and other media that can store program codes.

[0165] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a non-volatile readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for an electronic device (which can be a personal computer, server, network device, etc.) to execute all or part of the methods of each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.

[0166] The above are merely optional embodiments of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A storage system, characterized in that: include: A first storage space, used to process non-block size aligned read and write requests; wherein the first storage space is specifically a storage space containing a persistent memory area of ​​a plurality of storage devices; A second storage space connected to the first storage space, used to process read and write requests aligned with the first block size; A third storage space connected to the second storage space is used to process read and write requests aligned with a second block size; wherein the second block size is larger than the first block size.

2. The storage system according to claim 1, characterized in that: The first storage space is specifically a storage space of a storage-level memory.

3. The storage system according to claim 1, characterized in that: The storage device is specifically a solid state hard disk.

4. The storage system according to claim 1, characterized in that: The first storage space is specifically a continuous linear storage space including persistent memory areas of multiple storage devices.

5. The storage system according to claim 1, characterized in that: The first storage space is further used to aggregate data of multiple bytes into data of the first block size and migrate the data to the second storage space.

6. The storage system according to claim 1, characterized in that: The second storage space is further used to aggregate a plurality of data of the first block size into data of the second block size and migrate the data to the third storage space.

7. The storage system according to claim 1, characterized in that: The second storage space is specifically a single-layer storage unit or a multi-layer storage unit.

8. The storage system according to claim 1, characterized in that: The third storage space is specifically a three-layer storage unit, a four-layer storage unit, or a five-layer storage unit.

9. The storage system according to claim 1, characterized in that: The first storage space is specifically used to store byte-level data; The second storage space is specifically used to store KB-level data; The third storage space is specifically used to store MB-level data.

10. The storage system according to claim 1, characterized in that: The first storage space is specifically a continuous storage space including persistent memory areas of multiple storage devices, the persistent memory area is a storage area created using the PMR function of the storage device, and the first storage space, the second storage space, and the third storage space are different flash memories.

11. A method for creating a storage system, characterized in that: include: Mapping persistent memory areas of multiple storage devices to the memory address space of the operating system respectively to create a first storage space for processing non-block size aligned read and write requests; Creating a second storage space for processing read and write requests aligned with the first block size; A third storage space is created for processing read and write requests aligned with a second block size; wherein the second block size is larger than the first block size.

12. The method for creating a storage system according to claim 11, characterized in that: The step of creating a first storage space for processing non-block size aligned read and write requests comprises: Based on the memory logical addresses after the mapping of the multiple persistent memory areas, the multiple persistent memory areas are spliced ​​into a continuous linear storage space, and the continuous linear storage space is used as a first storage space for processing non-block size aligned read and write requests.

13. The method for creating a storage system according to claim 11, characterized in that: The step of creating a second storage space for processing a read / write request aligned with a first block size comprises: A single-level storage unit or a multi-level storage unit is created for processing first block size aligned read and write requests.

14. The method for creating a storage system according to claim 11, characterized in that: The step of creating a third storage space for processing a read / write request aligned with a second block size comprises: A three-level storage unit, a four-level storage unit, or a five-level storage unit is created for processing read and write requests aligned with the second block size.

15. The method for creating a storage system according to claim 11, characterized in that: The storage system is an all-flash storage system, the persistent memory area is a storage area created using a PMR function of the storage device, and the first storage space, the second storage space, and the third storage space are different flash memories.

16. A storage system creation device, characterized in that: include: A first creation module is configured to map the persistent memory areas of the plurality of storage devices to the memory address space of the operating system respectively, so as to create a first storage space for processing non-block size aligned read and write requests; A second creation module is configured to create a second storage space for processing a read and write request aligned with the first block size; A third creation module is configured to create a third storage space for processing read and write requests aligned with a second block size; wherein the second block size is larger than the first block size.

17. A data processing method, characterized in that: include: When receiving a read or write request, determining an alignment mode of the read or write request; If the read / write request is non-block size aligned, responding to the read / write request using the first storage space of the storage system; wherein the storage system is specifically the storage system according to any one of claims 1 to 10; If the read / write request is aligned to the first block size, responding to the read / write request using the second storage space of the storage system; If the data is aligned to a second block size, a third storage space of the storage system is used to respond to the read and write request; wherein the second block size is larger than the first block size.

18. The data processing method according to claim 17, characterized in that: Also includes: Aggregate a plurality of bytes of data in the first storage space into data of the first block size and migrate the data to the second storage space.

19. The data processing method according to claim 17, characterized in that: Also includes: Aggregate a plurality of data of the first block size in the second storage space into data of the second block size and migrate the data to the third storage space.

20. The data processing method according to claim 17, characterized in that: The storage system is an all-flash storage system, the first storage space is specifically a continuous storage space containing persistent memory areas of multiple storage devices, the persistent memory area is a storage area created using the PMR function of the storage device, and the first storage space, the second storage space, and the third storage space are different flash memories.

21. A data processing device, characterized in that: include: A determination module, configured to determine an alignment mode of a read / write request when receiving the read / write request; A first storage module is configured to respond to the read / write request using a first storage space of a storage system when the read / write request is non-block size aligned; wherein the storage system is specifically a storage system as claimed in any one of claims 1 to 10; A second storage module is configured to respond to the read / write request using a second storage space of the storage system when the read / write request is aligned to the first block size; The third storage module is configured to respond to the read / write request using the third storage space of the storage system when the read / write request is aligned to a second block size; wherein the second block size is larger than the first block size.

22. An electronic device, characterized in that: include: a memory arranged to store a computer program; A processor, configured to implement the steps of the storage system creation method according to any one of claims 11 to 15 or the data processing method according to any one of claims 17 to 20 when executing the computer program.

23. A non-volatile readable storage medium, characterized in that: The non-volatile readable storage medium stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of the storage system creation method according to any one of claims 11 to 15 or the data processing method according to any one of claims 17 to 20.

Citation Information

Patent Citations

  • Buffer to reduce write amplification of misaligned write operations

    CN112992207A

  • Data storage method and device, equipment and storage medium

    CN113485635A

  • Consistent access to persistent storage area range

    CN114968855A

  • Storage system, creation method, data processing method, device, equipment and medium

    CN115951841A

Cited By

  • YUV data storage method and device, equipment and storage medium

    CN119172511A

  • Dynamic random access memory based on multi-chip stacking architecture, control method, medium, terminal and program product

    CN121438894A