Read interference management method and device

By dividing the target storage units in the solid-state drive and reallocating the physical location of the data according to the media characteristic information, the read interference management complexity and resource occupation problems in the existing technology are solved, and the data heat is evenly distributed and the NAND service life is extended.

CN118550449APending Publication Date: 2024-08-27HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310215189.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-27
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

The existing read interference management solution requires a large resource space in the solid state drive (SSD) for read IO statistics and table entry storage, which leads to increased management complexity and cannot effectively reduce the impact of read interference on data reliability.

Method used

By dividing the SSD storage area into multiple target storage units, calculating read interference values ​​based on media characteristic information, reallocating data physical storage locations, reducing resource occupation and releasing read interference management information, achieving even distribution of data heat.

Benefits of technology

It reduces the complexity of the SSD management system, saves resource space, and optimizes read interference through data reallocation, extending the service life of NAND and improving data reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550449A
    Figure CN118550449A
Patent Text Reader

Abstract

The invention provides a read interference management method and device, and relates to the field of storage. The SSD performs data redistribution based on the read popularity of each storage unit, table item resource consumption and upper layer IO real-time statistics are not needed, the resource space can be saved, and the complexity of an SSD management system is reduced. The method is applied to a solid state disk (SSD) and comprises the steps that a storage area of the SSD is divided into a plurality of storage units according to target granularity, and the storage units comprise a target storage unit; determining an RH value of the target storage unit; and redistributing a physical storage position of target data corresponding to the target storage unit according to the RH value of the target storage unit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present application relate to the field of storage management, and in particular, to a read disturb management method and device. Background Art

[0002] As a mainstream storage device, solid state disk (SSD) is mainly composed of NAND flash and controller unit. NAND flash uses floating gate transistors as the basic storage unit, and data reliability is affected by many factors, such as tunneling layer degradation caused by repeated erasure, charge loss caused by long-term storage, weak programming caused by read disturbance, and charge threshold distribution changes.

[0003] Therefore, SSDs are usually equipped with relevant NAND flash application management solutions to ensure the reliability of data storage. The existing RD management solution is to build a statistical table of the number of reads of each physical area of ​​NAND, namely, the read hotness (RH) statistical table. When the host sends a read operation that hits a physical location in the NAND flash, the RH count of the unit (such as block) corresponding to the location increases. This table usually needs to reside in the cache area of ​​the disk to support frequent and fast refreshes. Since the read instruction sent by the host is a logical block address (LBA) address, this table entry needs to convert the logical address of the input output (IO) read hit into a physical address with the help of the flash translation layer (FTL) to achieve accurate counting. The management background triggers the table to check at a certain interval, marks the unit with a read count exceeding the set threshold as a risk area, and rewrites the data in the unit to other locations, or performs other intervention / update measures, thereby improving the reliability of data storage under frequent reading.

[0004] In the existing RD management solution, it is necessary to perform technical analysis on read IO to count the frequency of reading data, and rely on table entries and IO monitoring to manage read interference. The table entries need to be stored in the cache area of ​​the SSD, which occupies a large resource space. Summary of the invention

[0005] The embodiments of the present application provide a read disturbance management method and device, which can reduce the complexity of the SSD management system.

[0006] In a first aspect, an embodiment of the present application provides a read interference management method applied to a solid state drive (SSD), the method comprising: dividing a storage area of ​​the SSD into a plurality of storage units according to a target granularity, the plurality of storage units including a target storage unit; determining an RH value of the target storage unit; and reallocating a physical storage location of target data corresponding to the target storage unit according to the RH value of the target storage unit.

[0007] In this possible implementation, the embodiment of the present application reallocates the physical storage location of the target data corresponding to the target storage unit based on the RH value of the target storage unit, without requiring table resource consumption and upper-layer IO real-time statistics, thereby saving resource space. On the other hand, when allocating data, the data is rearranged after identifying the heat according to the granularity of the storage unit, which can break up the aggregation effect of read interference in some areas from the upper layer.

[0008] In a possible implementation of the first aspect, the target storage unit includes at least one page, and determining the RH value of the target storage unit includes: determining medium characteristic information of the at least one page; determining a read interference value of the at least one page according to the medium characteristic information of the at least one page; and determining the RH value of the target storage unit according to the read interference value of the at least one page.

[0009] In this possible implementation, the SSD determines the read disturbance value of the page according to the medium characteristic information of the page, and does not need to perform real-time IO statistics, thereby reducing resource usage.

[0010] In a possible implementation manner of the first aspect, determining the RH value of the target memory cell according to the read disturbance value of at least one page includes: determining a sum of the read disturbance values ​​of at least one page as the RH value of the target memory cell.

[0011] In this possible implementation, a method for determining the RH value of a storage unit is specifically provided, which improves the feasibility of the embodiment of the present application.

[0012] In a possible implementation manner of the first aspect, the medium characteristic information includes NAND voltage and a number of NAND errors.

[0013] In a possible implementation of the first aspect, the above-mentioned reallocation of the physical storage position of the target data corresponding to the target storage unit according to the RH value of the target storage unit includes: when the difference in the RH value of the target storage unit between blocks is greater than a first threshold, reallocating the physical storage position of the target data corresponding to the target storage unit according to the RH value of the target storage unit, and the physical storage position of the reallocated target data does not belong to the block to which the target storage unit belongs.

[0014] In a possible implementation of the first aspect, the above-mentioned reallocation of the physical storage position of the target data corresponding to the target storage unit according to the RH value of the target storage unit includes: when the difference of the RH value of the target storage unit within the block is greater than a second threshold, reallocating the physical storage position of the target data corresponding to the target storage unit according to the RH value of the target storage unit, and the physical storage position of the reallocated target data belongs to the block to which the target storage unit belongs.

[0015] In a possible implementation of the first aspect, the method further includes: writing the target data into the reallocated physical storage location; releasing the read interference management information stored in the resource space, the read interference management information including storage unit information, storage unit RH value information and reallocated physical storage location information, the storage unit information indicates the correspondence between the divided multiple storage units and the page, the storage unit RH value information indicates the RH value of the multiple storage units, and the reallocated physical storage location information indicates the physical storage location corresponding to the reallocated storage unit.

[0016] In this possible implementation, after the SSD completes data reallocation and writing, the SSD may delete all the read interference management information, thereby releasing resource space.

[0017] In a second aspect, an embodiment of the present application provides a solid state drive (SSD), comprising: a processor and a memory. The processor is coupled to the memory; the memory is used to store computer instructions, and the computer instructions are loaded and executed by the processor to enable the SSD to implement any one of the methods provided in the first aspect.

[0018] In a third aspect, an embodiment of the present application provides a chip, comprising: a processor and an interface circuit; the interface circuit is used to receive code instructions and transmit them to the processor; the processor is used to run the code instructions to execute any one of the methods provided in the first aspect.

[0019] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which at least one computer program instruction is stored, and the computer program instruction is loaded and executed by a processor to implement any one of the methods provided in the first aspect above.

[0020] In a fifth aspect, an embodiment of the present application provides a computer program product, including computer execution instructions, which, when executed on a computer, enable the computer to execute any one of the methods provided in the first aspect.

[0021] In a sixth aspect, an embodiment of the present application provides a storage server, which includes a solid-state drive SSD, and the SSD can execute any one of the methods provided in the first aspect.

[0022] In a seventh aspect, an embodiment of the present application provides a storage management system, which includes a solid-state drive SSD, and the SSD can execute any one of the methods provided in the first aspect.

[0023] The technical effects brought about by any implementation method in the second to seventh aspects can refer to the technical effects brought about by the corresponding implementation method in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 A schematic diagram of a scenario of an RD management solution;

[0025] Figure 2 It is a schematic diagram of another scenario of RD management solution;

[0026] Figure 3 A schematic diagram of an SSD management architecture provided in an embodiment of the present application;

[0027] Figure 4 A flowchart of a read disturbance management method provided in an embodiment of the present application;

[0028] Figure 5 A schematic diagram of a process of dividing a storage unit provided in an embodiment of the present application;

[0029] Figure 6 A schematic diagram of a process for determining the RH value of a storage unit provided in an embodiment of the present application;

[0030] Figure 7 A schematic diagram of another process for determining the RH value of a storage unit provided in an embodiment of the present application;

[0031] Figure 8 A schematic diagram of a process for reallocating the physical storage location of target data provided in an embodiment of the present application;

[0032] Fig. 9 A schematic diagram of another process of reallocating the physical storage location of target data provided by an embodiment of the present application;

[0033] Fig.10 Another flowchart of reallocating the physical storage location of target data provided by an embodiment of the present application;

[0034] Fig.11 A schematic diagram of the structure of a solid state hard disk provided in an embodiment of the present application;

[0035] Fig.12 A schematic diagram of the structure of another solid state drive provided in an embodiment of the present application;

[0036] Fig.13A schematic diagram of the structure of a storage server provided in an embodiment of the present application;

[0037] Fig.14 A schematic diagram of the structure of a storage management system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0038] In the description of this application, unless otherwise specified, " / " indicates that the objects associated with each other are in an "or" relationship, for example, A / B can represent A or B; "and / or" in this application is merely a description of the association relationship between associated objects, indicating that three relationships may exist, for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural.

[0039] In the description of this application, unless otherwise specified, "plurality" means two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.

[0040] In addition, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same items or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.

[0041] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way for easy understanding.

[0042] It is understood that the "embodiment" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, the various embodiments in the entire specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It is understood that in various embodiments of the present application, the size of the sequence number of each process does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.

[0043] It can be understood that some optional features in the embodiments of the present application may be implemented independently in certain scenarios without relying on other features, such as the solution on which they are currently based, to solve corresponding technical problems and achieve corresponding effects, or may be combined with other features according to needs in certain scenarios. Accordingly, the devices provided in the embodiments of the present application may also realize these features or functions accordingly, which will not be elaborated here.

[0044] In this application, unless otherwise specified, the same or similar parts between the various embodiments can refer to each other. In this application, if there is no special description or logical conflict between the various embodiments, the terms and / or descriptions between different embodiments are consistent and can be referenced to each other, and different embodiments can be combined to form new embodiments according to their inherent logical relationships. The following implementation methods of this application do not constitute a limitation on the scope of protection of this application.

[0045] In order to facilitate understanding of the technical solutions of the embodiments of the present application, a brief introduction to the relevant technologies of the embodiments of the present application is given below:

[0046] 1. Solid-state drive.

[0047] As a mainstream storage device, solid state disk (SSD) is mainly composed of NAND flash and controller unit. NAND flash uses floating gate transistors as the basic storage unit, and data reliability is affected by many factors, such as tunneling layer degradation caused by repeated erasure, charge loss caused by long-term storage, weak programming caused by read disturbance, and charge threshold distribution changes.

[0048] The principle of NAND read disturbance effect is that Vpass voltage is applied to other unselected word lines (WL) during the read process, and weak programming occurs due to effects such as hot electron injection. As the number of reads increases, the threshold voltage of cells in the unselected WL changes, resulting in an increase in the number of errors. When reliability degrades to a certain extent, a read retry process is required to recover data, or even trigger data movement and rewriting.

[0049] On the one hand, as the 3D-NAND process shrinks and the number of storage cell states increases, the impact of a single operation on the NAND cell read disturbance (RD) becomes more serious, causing the NAND RD specification to gradually decrease; at the same time, the number of stacked layers exacerbates the reliability differences between layers, and the RD tolerance performance of each layer within the block is different, and the overall specification is limited by the performance of the poorer layer.

[0050] On the other hand, in read-intensive business scenarios, each physical block on the SSD undergoes frequent read operations, and the heat distribution may be uneven. Combined with the evolution of the medium's RD characteristics, SSDs need to support smaller-granularity read heat (read count) identification and management algorithms to optimize the impact on data reliability in various read scenarios as much as possible, reduce the number of RD-triggered migrations, and extend the service life of NAND.

[0051] Therefore, SSDs are usually configured with relevant NAND flash application management solutions to ensure the reliability of data storage.

[0052] like Figure 1 As shown, Figure 1 The figure is a scenario diagram of an RD management solution. The existing RD management solution is to build in a statistical table of the number of reads of each physical area of ​​NAND, namely, the read hotness (RH) statistical table. When the host sends a read operation that hits a physical location in the NAND flash, the RH count of the unit (such as block) corresponding to the location increases. The table usually needs to reside in the cache area of ​​the disk to support frequent and fast refreshes. Since the read instruction sent by the host is a logic block address (LBA) address, the table entry needs to convert the logical address of the input output (IO) read hit into a physical address with the help of the flash translation layer (FTL) to achieve accurate counting. The management background triggers the table to check at a certain interval, marks the unit whose read count exceeds the set threshold as a risk area, and rewrites the data in the unit to other locations, or performs other intervention / update measures, thereby improving the reliability of data storage under frequent reading.

[0053] like Figure 2 As shown, Figure 2 This is a scenario diagram of another RD management solution. In the process of moving read heat data, the read heat is evenly dispersed. When the software moves the read heat data, it puts the hotter data into blocks with fewer errors, or disperses the data with higher read heat to blocks containing cold read data during the migration process, so as to achieve uniform distribution of heat and improve the tolerance of each block to RDC.

[0054] Figure 1 and Figure 2In the RD management solution shown, it is necessary to perform technical analysis on read IO to count the “hotness” (i.e., frequency) of read data, and rely on table entries and IO monitoring to implement read interference management. The table entries need to be stored in the cache area of ​​the SSD, which occupies a large resource space.

[0055] Based on this, the embodiment of the present application provides a read disturbance management method, such as Figure 3 As shown, Figure 3 A schematic diagram of the SSD controller architecture of a read interference management method provided in an embodiment of the present application. In a read interference management method provided in an embodiment of the present application, the SSD controller first divides the data storage area on the NAND into several small areas (sub-zones) as the minimum unit of read interference management based on the relationship between the medium characteristics and the read interference. When identifying the read heat, the read heat value corresponding to the small area is calculated by directly reading the medium characteristics of the small area (sub-zone). Then, when triggering data migration, the identified small area heat is used as input to replace the upper storage table items for data rearrangement optimization.

[0056] like Figure 3 As shown, the SSD in the embodiment of the present application may include the following modules:

[0057] The garbage collection (GC) module is used to move and rearrange data.

[0058] The read interference management (RD management) module includes a read heat redistribution module, a read heat calculation unit, and a sub-zone mapping table for the read heat management granularity. The read heat calculation unit is used to calculate the read heat of the corresponding small area based on the medium characteristics; the sub-zone mapping table is used to record the small area grouping corresponding to each page inside the NAND; the read heat redistribution module is used to reallocate the physical location for the sub-zone when moving data.

[0059] The NAND array module (storage array module) is used to store data and obtain and store the medium characteristic information corresponding to the small area.

[0060] Among them, the garbage collection module and the read disturbance management module belong to the flash memory management unit of the SSD controller.

[0061] It is understandable that in the embodiments of the present application, the execution subject may execute some or all of the steps in the embodiments of the present application, and these steps or operations are only examples. The embodiments of the present application may also execute other operations or variations of various operations. In addition, the various steps may be executed in different orders presented in the embodiments of the present application, and it is possible that not all operations in the embodiments of the present application need to be executed.

[0062] It should be noted that the message names between the devices or the names of the parameters in the messages in the following embodiments of the present application are only examples, and other names may be used in the specific implementation, and the embodiments of the present application do not specifically limit this.

[0063] like Figure 4 As shown, a read disturbance management method provided by an embodiment of the present application includes the following steps:

[0064] 401. The SSD divides a storage area of ​​the SSD into multiple storage units according to a target granularity.

[0065] SSD divides the NAND storage area into multiple storage units (sub-zones) according to the target granularity, which is the unit for subsequent read heat identification and data redistribution. Since NAND includes multiple pages of storage data, SSD also stores the correspondence between each page and the assigned sub-zone in the sub-zone table, that is, SSD records the mapping relationship between each page and the assigned sub-zone.

[0066] In the embodiment of the present application, the division of the storage area of ​​the NAND by the SDD (i.e., the size of the target granularity) is based on the intrinsic performance of the NAND, and the granularity of the storage area division by the SSD can be determined in combination with the range of influence of the medium RD of the SSD, and can also be determined in combination with the tolerance difference between the medium block and WL. For example, the SDD can determine that one block corresponds to one sub-zone, and the SDD can also determine that a group of n NAND pages corresponds to one sub-zone, and n is a positive integer not less than 1. It is understandable that in addition to this, the SDD can also determine that other granularities correspond to one sub-zone, that is, the granularity size of a sub-zone can also be determined to be other sizes, such as one WL corresponds to one sub-zone, and the specifics are not limited here.

[0067] like Figure 5As shown, the SSD can divide the storage unit (sub-zone) based on the intrinsic performance of NAND. The SSD selects page N as the test object, and then applies X read operations to page N, and then takes parameter i=1, reads the number of errors of page N+i, and then determines whether the number of errors of page N+i is less than the threshold TH3. If it is greater than TH3, then take i=i++; if it is less than TH3, then record the value i. Then take j=1, read the number of errors of page Nj, and then determine whether the number of errors of page Nj is less than TH3. If it is greater than TH3, then take j=j++; if it is less than TH3, then record the value j. Then the SSD can determine that page N+i to page Nj are a storage unit. That is, after the SSD selects page N and applies X read operations, it takes page N as the center and the number of errors less than TH3 as the boundary to determine the two pages on both sides of page N, namely page N+i and page Nj, and then the SSD determines that page N+i to page Nj are a storage unit.

[0068] In a possible implementation, the SSD will divide the storage area according to the target granularity only after the background business triggers the garbage collection GC process. That is, the SSD will perform operations such as dividing the storage unit and calculating the RH value only after the background business triggers the garbage collection GC process. If the GC process is not triggered, the SSD will not perform this step, that is, the SSD will not store the corresponding relationship between each page and the allocated sub-zone.

[0069] Therefore, in the embodiment of the present application, when the GC process is not triggered, the SSD does not store the corresponding relationship between each page and the allocated sub-zone, that is, it no longer stores Figure 3 The sub-zone mapping table shown in the figure saves SSD resource space.

[0070] 402. The SSD determines the RH value of the target storage unit.

[0071] The SSD first determines NAND characteristic information of at least one page corresponding to the target storage unit, then determines the RH value of at least one page according to the NAND characteristic information of the at least one page, and finally determines the RH value of the target storage unit according to the RH value of the at least one page.

[0072] In the embodiment of the present application, the NAND characteristic information may include information such as NAND voltage and the number of errors at different voltages (NAND error number), and may also include other medium characteristic information, which is not limited here. The SSD may determine the RH value of each page based on the NAND characteristic information of each page, and then determine the RH value of the target storage unit based on the RH value of each page.

[0073] For example, the target storage unit includes 5 pages. The SSD can first determine the voltage or the number of medium errors of the 5 pages, and then determine the read disturbance value of the corresponding page according to the voltage or the number of medium errors of each page, and then determine the sum of the read disturbance values ​​of the 5 pages as the RH value of the target storage unit.

[0074] In the embodiment of the present application, the SSD is divided into a plurality of storage units, and the SSD determines the RH values ​​of other storage units in accordance with the above-mentioned method of determining the RH value of the target storage unit.

[0075] like Figure 6 As shown, the SSD first divides the entire NAND area into N storage unit sub-zones according to the target granularity. For the target sub-zone, the SSD first initializes the RH value of the target sub-zone to zero, and then samples the NAND characteristic information of a specific page-i, for example, the page-i can be read to obtain the NAND voltage / error number information of the page-i, which is used as the NAND characteristic information of the page-i. Then the SSD determines the read disturbance value RD-i of the page-i according to the voltage / error number information of the page-i. Then the SSD follows the above method for determining the read disturbance value RD-i of the specific page-i, so that the SSD can determine the read heat value RH of the target sub-zone = sub-zone RH = RH + RD-i. Then the read disturbance values ​​of other pages corresponding to the target sub-zone are determined in turn, and the read disturbance values ​​of the other multiple pages are added in the above method, which is the read heat value RH of the target sub-zone. Then the SSD can determine the RH values ​​of other sub-zones according to the above method.

[0076] like Figure 7 As shown, in a possible implementation, SDD traverses each page of the sub-zone and calculates the thermal RD_i. The voltage value read is linearly related to the RH value of the corresponding sub-zone. When identifying the page at the edge position, the RH value is accumulated to the adjacent sub-zone at the same time, thereby improving the accuracy of RH identification.

[0077] Specifically, the SDD first determines the area sub-zone 0-N identified by the read heat, and then initializes the RD count of sub-zone 0-N. The SSD then reads page i of the NAND, obtains the voltage information of page i, and then calculates the read interference value RD i received by page i. The read interference value RD i=V(page i)*a+b, where a and b are corresponding parameters, and V(page i) is the voltage information of page i. Then the SSD determines the small area corresponding to page i, sub-zone N read heat RH n=RH n+RD i. Then the SSD determines whether Page i is an edge page of sub-zone n. If it is an edge page, the adjacent sub-zone of sub-zone n determines RH n-1=RH n-1+RD i or RH n+1=RH n+1+RD i. If it is not an edge page, it is determined whether Page i is the last page in the identification area. If not, the next page is determined. If so, the RH values ​​of all pages have been determined, thereby obtaining the RH values ​​of all sub-zones.

[0078] In the embodiment of the present application, the RH value is an absolute value or a relative value, which is used to reflect the difference level of reading heat between each sub-zone over a period of time.

[0079] In the embodiment of the present application, the SSD establishes the relationship between the medium performance of the NAND and the RD times of the corresponding sub-zone. The medium performance of the NAND includes but is not limited to the threshold voltage offset Vth-shift and the number of errors of the NAND medium at different voltages, that is, the NAND characteristic information may include information such as the NAND voltage and the number of errors. At the same time, the SSD calculates the RH value of the sub-zone through the evaluation algorithm and considers the influence of other factors on the relationship, such as the PE times of the NAND, the retention time and other factors. The corresponding relationship between the medium performance of the NAND and the RH value of the sub-zone obtained in the end includes but is not limited to a linear relationship and a nonlinear relationship.

[0080] 403. The SSD reallocates the physical storage location of the target data corresponding to the target storage unit.

[0081] The SSD reallocates the physical storage location of the target data corresponding to the target storage unit according to the RH value of the target storage unit, that is, redetermines the mapping relationship between the target data corresponding to the target sub-zone and the physical storage location.

[0082] In the embodiment of the present application, after the read interference management module judges all sub-zones, it returns the rearranged data physical location mapping relationship to the garbage collection module.

[0083] like Figure 8 As shown, in a possible implementation, when it is detected that the difference between sub-zones in blocks or block groups is greater than a specific threshold TH1, the SSD scatters the data in the block dimension and reallocates the physical storage location where the target data corresponding to the target sub-zone is written.

[0084] Specifically, after the SSD inputs the RH values ​​of multiple sub-zones as input values, the SSD groups the multiple sub-zones into multiple storage unit groups sub-zone groups according to blocks, and then the SSD calculates whether the difference between the RH values ​​of the sub-zone groups is greater than the threshold TH1. When the difference between the RH values ​​of the sub-zone groups is greater than the threshold TH1, the SSD reallocates the sub-zones between different blocks. That is, for the data corresponding to the target sub-zone, it will be reallocated to a physical storage location outside the target block, and the target block is the block to which the target sub-zone belongs.

[0085] like Fig. 9 As shown, the SSD scatters the data in the block dimension. The SSD can write the data corresponding to sub-zone0(A) of Block A to a new physical storage location, which is the physical storage location originally corresponding to sub-zone0(B) of Block B. The SSD can write the data corresponding to sub-zone 2(A) of Block A to a new physical storage location, which is the physical storage location originally corresponding to sub-zone 3(C) of Block B. The SSD can write the data corresponding to sub-zone N+1(A) of Block A to a new physical storage location, which is the physical storage location originally corresponding to sub-zone N+1(D) of Block B.

[0086] It can be understood that the physical storage locations originally corresponding to the sub-zone 0(B), sub-zone 3(C) and sub-zone N+1(D) of the above Block B are physical storage locations that can be used when the SSD performs data reallocation. The sub-zone 0(B), sub-zone 3(C) and sub-zone N+1(D) of the above Block B may not have corresponding data or may have corresponding data. The SSD will also reallocate the data for them, but will not necessarily allocate them to the physical storage locations originally corresponding to the sub-zone 0(A) of Block A, sub-zone 2(A) of Block A and sub-zone N+1(A) of Block A, that is, the sub-zone data exchange in the block dimension will not necessarily be performed.

[0087] It is understandable that the above data reallocation method is not limited to the block dimension, but may also be other dimensions. For example, when a sub-zone corresponds to a block, each NAND storage array includes multiple blocks, and the SSD can reallocate the data corresponding to a block among multiple NAND storage arrays, that is, realize data reallocation in the NAND storage array dimension. It may also be other dimensions, which are not specifically limited here.

[0088] like Figure 8 As shown, in another possible implementation, when it is detected that the difference of sub-zones within a block is greater than a specific threshold TH2, the SSD reallocates data within the block. The dimension of the reallocation can be WL or sub-WL, and the physical storage location where the data corresponding to the sub-zone is written is reallocated.

[0089] Specifically, after the SSD inputs the RH values ​​of multiple sub-zones as input values, the SSD traverses each block to determine whether the difference within each block is greater than a specific threshold TH2. In the case where the difference within the target block is greater than the specific threshold TH2, for the target sub-zone that needs to be reallocated, the SSD will reallocate it to the physical storage location within the target block, and the target block is the block to which the target sub-zone belongs.

[0090] like Fig.10As shown, the SSD performs data redistribution within the block, and writes the data corresponding to the sub-zone that needs to be redistributed to a new physical location. The data corresponding to sub-zone 1 is written to a new physical location, which is the physical location corresponding to the original sub-zone N; the data corresponding to sub-zone 2 is written to a new physical location, which is the physical location corresponding to the original sub-zone N+1, to achieve data redistribution within the block. It can be understood that the location corresponding to the original sub-zone N and the location corresponding to the original sub-zone N+1 are physical storage locations that the SSD can use when redistributing data. The original sub-zone N and the original sub-zone N+1 may not have corresponding data, or they may have corresponding data. The SSD will also redistribute the data, but it will not necessarily allocate it to the locations of sub-zone 1 and sub-zone 2.

[0091] It is understandable that the above data reallocation method is not limited to the block dimension, but may also be other dimensions. For example, when a sub-zone corresponds to a block, a NAND storage array includes multiple blocks, and the SSD can reallocate the data corresponding to a block in a NAND storage array, that is, realize data reallocation in the NAND storage array dimension. It may also be other dimensions, which are not specifically limited here.

[0092] In the embodiment of the present application, whether it is reallocation between blocks or reallocation within a block, the SSD may be reallocated according to a specific rule or may be reallocated randomly, which is not limited here.

[0093] In the embodiment of the present application, the granularity of the SSD for scattering and rearranging (reallocating) multiple data corresponding to multiple sub-zones includes but is not limited to plane, block, NAND layer, etc. In addition, it can also be WL and other granularities, which are not specifically limited here.

[0094] 404. The SSD writes the target data to the reallocated physical storage location.

[0095] After the SSD determines the mapping relationship between the target data corresponding to the target sub-zone and the physical storage location, the SSD writes the target data into the target physical storage location according to the mapping relationship.

[0096] 405. SSD releases resource space.

[0097] In the embodiment of the present application, after the SSD writes all data to the reallocated physical storage location, all data reallocation is completed. After the rewriting work, the SSD will delete the read interference management information stored in the temporary resource space in the previous steps 401 to 404, thereby releasing the temporarily allocated resource space. For example, the corresponding relationship between each page and the allocated sub-zone in the above step 401 is stored in the sub-zone table, the RH value of the sub-zone and the RD of the page in the above step 402; and the mapping relationship between the data of multiple sub-zones and the physical storage location in step 403. After the SSD completes the data reallocation writing, the SSD can delete all these data, thereby releasing the resource space.

[0098] In the embodiment of the present application, the SSD outputs the read heat of each area based on the NAND performance, and does not require table resource consumption and upper-level IO real-time statistics, thereby saving resource space. On the other hand, for the uneven distribution of SSD read heat, the data is rearranged after identifying the heat according to the granularity of the sub-zone during data migration, which can break up the aggregation effect of read interference in some areas from the upper layer. In the scenario where there are intrinsic differences in read interference tolerance in various physical areas of the medium, by matching the read heat and the medium tolerance, the tolerance of NAND to read interference can be further extended, reducing frequent data migration.

[0099] In the embodiment of the present application, the read disturbance management method can be applied to the data management in the SSD disk. It can be understood that the read disturbance management method can also be applied to the management of the upper management system of the SSD, such as the data management of the database storage system or the computing storage system. For example, a storage management system is built into a storage server, and the storage server includes multiple solid-state hard disks. The storage management system can manage the solid-state hard disks in the storage server through the above-mentioned read disturbance management method.

[0100] The embodiment of the present application provides a solid-state drive 1100. In the embodiment of the present application, the solid-state drive 1100 can be divided into functional modules according to the above method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present invention is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0101] In the case of dividing each functional module into corresponding functional modules, Fig.11 A possible structural diagram of the solid state drive 1100 involved in the above embodiment is shown. Fig.11As shown, the solid state drive 1100 includes:

[0102] The partitioning module 1101 is used to partition the storage area of ​​the SSD into multiple storage units according to the target granularity, and the multiple storage units include the target storage unit; for example, executing step 401 in the above method embodiment: the SSD partitions the storage area of ​​the SSD into multiple storage units according to the target granularity.

[0103] The determination module 1102 is used to determine the RH value of the target storage unit; for example, the step 402 in the above method embodiment is executed: the SSD determines the RH value of the target storage unit.

[0104] The determination module 1102 includes:

[0105] The first determining unit 1103 is used to determine the medium characteristic information of at least one page; for example, executing step 402 in the above method embodiment: the SSD determines the RH value of the target storage unit.

[0106] The second determining unit 1104 is used to determine the read disturbance value of at least one page according to the medium characteristic information of at least one page; for example, executing step 402 in the above method embodiment: the SSD determines the RH value of the target storage unit.

[0107] The third determining unit 1105 is configured to determine the RH value of the target storage unit according to the read disturbance value of at least one page. For example, the step 402 in the above method embodiment is performed: the SSD determines the RH value of the target storage unit.

[0108] The third determining unit 1105 is specifically configured to: determine the sum of the read disturbance values ​​of at least one page as the RH value of the target storage unit. For example, the step 402 in the above method embodiment is performed: the SSD determines the RH value of the target storage unit.

[0109] The reallocation module 1106 is used to reallocate the physical storage location of the target data corresponding to the target storage unit according to the RH value of the target storage unit, for example, executing step 403 in the above method embodiment: the SSD reallocates the physical storage location of the target data corresponding to the target storage unit.

[0110] In a possible implementation, the reallocation module 1106 is specifically used to: when the difference of the RH value of the target storage unit between blocks is greater than a first threshold, reallocate the physical storage location of the target data corresponding to the target storage unit according to the RH value of the target storage unit, and the reallocated physical storage location of the target data does not belong to the block to which the target storage unit belongs. For example, step 403 in the above method embodiment is executed: the SSD reallocates the physical storage location of the target data corresponding to the target storage unit.

[0111] In another possible implementation, the reallocation module 1106 is specifically used to: when the difference of the RH value of the target storage unit in the block is greater than the second threshold, reallocate the physical storage location of the target data corresponding to the target storage unit according to the RH value of the target storage unit, and the reallocated physical storage location of the target data belongs to the block to which the target storage unit belongs. For example, step 403 in the above method embodiment is executed: the SSD reallocates the physical storage location of the target data corresponding to the target storage unit.

[0112] The writing module 1107 is used to write the target data into the reallocated physical storage location; for example, executing step 404 in the above method embodiment: the SSD writes the target data into the reallocated physical storage location.

[0113] The release module 1108 is used to release the read interference management information stored in the resource space, the read interference management information includes storage unit information, storage unit RH value information and reallocated physical storage location information, the storage unit information indicates the corresponding relationship between the multiple storage units divided and the page, the storage unit RH value information indicates the RH value of the multiple storage units, and the reallocated physical storage location information indicates the physical storage location corresponding to the reallocated storage unit. For example, step 405 in the above method embodiment is executed: the SSD releases the resource space.

[0114] The various modules of the above-mentioned solid-state hard disk can also be used to perform other actions in the above-mentioned method embodiment. All relevant contents of each step involved in the above-mentioned method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.

[0115] Fig.12 It is a schematic diagram of a solid state drive structure provided in an embodiment of the present application. The solid state drive 1200 may include one or more central processing units (CPU) 1201 and a memory 1205. The memory 1205 stores one or more application programs or data.

[0116] The memory 1205 may be a volatile storage or a persistent storage. The program stored in the memory 1205 may include one or more modules, each of which may include a series of instruction operations on the solid state drive. Furthermore, the central processor 1201 may be configured to communicate with the memory 1205 and execute a series of instruction operations in the memory 1205 on the solid state drive 1200.

[0117] The central processor 1201 is used to execute the computer program in the memory 1205, so that the solid state drive 1200 is used to perform: dividing the storage area of ​​the SSD into multiple storage units according to the target granularity, the multiple storage units including the target storage unit; determining the RH value of the target storage unit; and reallocating the physical storage location of the target data corresponding to the target storage unit according to the RH value of the target storage unit. For specific implementation methods, please refer to Figure 4 Steps 401 - 402 in the illustrated embodiment will not be described in detail herein.

[0118] The solid state drive 1200 may also include one or more power supplies 1202, one or more wired or wireless network interfaces 1203, one or more input and output interfaces 1204, and / or one or more operating systems, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

[0119] The solid state drive 1200 can execute the aforementioned Figure 4 The operations performed by the solid state drive in the illustrated embodiment will not be described in detail here.

[0120] Fig.13 1 is a schematic diagram of a storage server provided in an embodiment of the present application. The storage server 1300 includes a solid state drive 1301. The solid state drive 1301 in the storage server 1300 can execute the aforementioned Figure 4 The operations performed by the solid state drive in the illustrated embodiment will not be described in detail here.

[0121] Fig.14 1400 is a schematic diagram of a storage management system provided in an embodiment of the present application. The storage management system 1400 includes a solid state drive 1401. The solid state drive 1401 in the storage server 1400 can execute the aforementioned Figure 4 The operations performed by the solid state drive in the illustrated embodiment will not be described in detail here.

[0122] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loading and executing computer program instructions on a computer, all or part of the processes (or functions) described in the embodiments of the present application are implemented. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or may contain one or more servers, data centers and other data storage devices that can be integrated with the medium. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)), etc. In the embodiment of the present application, the computer may include the aforementioned device.

[0123] Although the present application is described herein in conjunction with various embodiments, in the process of implementing the claimed application, those skilled in the art may understand and implement other variations of the disclosed embodiments by viewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "one" or "an" does not exclude multiple situations. A single processor or other unit may implement several functions listed in a claim. Certain measures are recorded in different dependent claims, but this does not mean that these measures cannot be combined to produce good results.

Claims

1. A read disturbance management method, characterized in that: The method is applied to a solid state drive (SSD), and the method comprises: Dividing a storage area of ​​the SSD into a plurality of storage units according to a target granularity, wherein the plurality of storage units include a target storage unit; Determining the RH value of the target storage unit; The physical storage location of the target data corresponding to the target storage unit is reallocated according to the RH value of the target storage unit.

2. The method according to claim 1, characterized in that The target storage unit includes at least one page, and determining the RH value of the target storage unit includes: Determining medium characteristic information of the at least one page; determining a read disturb value of the at least one page according to the medium characteristic information of the at least one page; The RH value of the target memory cell is determined according to the read disturbance value of the at least one page.

3. The method according to claim 2, characterized in that The determining the RH value of the target storage unit according to the read disturbance value of the at least one page includes: The sum of the read disturbance values ​​of the at least one page is determined as the RH value of the target memory cell.

4. The method according to claim 3, characterized in that The medium characteristic information includes NAND voltage and NAND error number.

5. The method according to any one of claims 1 to 4, characterized in that: The reallocating the physical storage location of the target data corresponding to the target storage unit according to the RH value of the target storage unit includes: When the difference in RH values ​​of the target storage unit between blocks is greater than a first threshold, the physical storage location of the target data corresponding to the target storage unit is reallocated according to the RH value of the target storage unit, and the physical storage location of the target data after the reallocation does not belong to the block to which the target storage unit belongs.

6. The method according to any one of claims 1 to 4, characterized in that: The reallocating the physical storage location of the target data corresponding to the target storage unit according to the RH value of the target storage unit includes: When the difference of the RH value of the target storage unit within the block is greater than the second threshold, the physical storage location of the target data corresponding to the target storage unit is reallocated according to the RH value of the target storage unit, and the physical storage location of the reallocated target data belongs to the block to which the target storage unit belongs.

7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: Writing the target data to the reallocated physical storage location; Release the read interference management information stored in the resource space, the read interference management information including storage unit information, storage unit RH value information and reallocated physical storage position information, the storage unit information indicates the correspondence between the multiple divided storage units and the page, the storage unit RH value information indicates the RH value of the multiple storage units, and the reallocated physical storage position information indicates the physical storage position corresponding to the reallocated storage unit.

8. A solid state drive SSD, characterized in that: The SSD includes: A partitioning module, configured to partition a storage area of ​​the SSD into a plurality of storage units according to a target granularity, wherein the plurality of storage units include a target storage unit; A determination module, used to determine the RH value of the target storage unit; The reallocation module is used to reallocate the physical storage location of the target data corresponding to the target storage unit according to the RH value of the target storage unit.

9. The SSD according to claim 8, characterized in that: The target storage unit includes at least one page, and the determination module includes: A first determining unit, configured to determine medium characteristic information of the at least one page; A second determining unit, configured to determine a read disturb value of the at least one page according to medium characteristic information of the at least one page; The third determining unit is configured to determine the RH value of the target memory cell according to the read disturbance value of the at least one page.

10. The SSD according to claim 9, characterized in that: The third determining unit is specifically configured to: The sum of the read disturbance values ​​of the at least one page is determined as the RH value of the target memory cell.

11. The SSD according to claim 10, characterized in that: The medium characteristic information includes NAND voltage and NAND error number.

12. The SSD according to any one of claims 8 to 10, characterized in that: The reallocation module is specifically used for: When the difference in RH values ​​of the target storage unit between blocks is greater than a first threshold, the physical storage location of the target data corresponding to the target storage unit is reallocated according to the RH value of the target storage unit, and the physical storage location of the target data after the reallocation does not belong to the block to which the target storage unit belongs.

13. The SSD according to any one of claims 8 to 10, characterized in that: The reallocation module is specifically used for: When the difference of the RH value of the target storage unit within the block is greater than the second threshold, the physical storage location of the target data corresponding to the target storage unit is reallocated according to the RH value of the target storage unit, and the physical storage location of the reallocated target data belongs to the block to which the target storage unit belongs.

14. The SSD according to any one of claims 8 to 13, characterized in that: The SSD further comprises: A writing module, used for writing target data into the reallocated physical storage location; A release module is used to release the read interference management information stored in the resource space, the read interference management information includes storage unit information, storage unit RH value information and reallocated physical storage position information, the storage unit information indicates the correspondence between the divided multiple storage units and the page, the storage unit RH value information indicates the RH value of the multiple storage units, and the reallocated physical storage position information indicates the physical storage position corresponding to the reallocated storage unit.

15. A solid state hard disk, characterized in that: The solid-state hard disk includes a processor and a memory; the processor is coupled to the memory; the memory is used to store computer instructions, and the computer instructions are loaded and executed by the processor to enable the solid-state hard disk to implement the method described in any one of claims 1-7.

16. A storage server, characterized in that: The storage server comprises at least one SSD according to claim 15, and the SSD is used to execute the method according to any one of claims 1-7.

17. A storage management system, characterized in that: The storage management system comprises at least one SSD according to claim 15, and the SSD is used to execute the method according to any one of claims 1-7.