Memory system and operating method thereof, memory controller and readable storage medium

By using the first type table and the second type table in the memory system to determine the data hotness and adjust the read voltage, the problem of threshold voltage drift of the non-volatile storage device is solved, and the reliability and space utilization efficiency of data reading are improved. .

CN118860263AActive Publication Date: 2024-10-29YANGTZE MEMORY TECH CO LTD

Patent Information

Application Number
CN202310503356.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-28
Publication Date
2024-10-29
Estimated Expiration
2043-04-28

AI Technical Summary

Technical Problem

The threshold voltage of the non-volatile storage device drifts with time, and it is difficult to track the threshold voltage drift level corresponding to the logical address of the data, making it difficult to ensure the reliability of reading data.

Method used

A memory system is used to determine the data heat corresponding to the logical address of the received read command through the first type table and the second type table, determine the drift level corresponding to the logical address based on the heat, and send different reads according to different levels. voltage to the non-volatile storage device. The first type of table is used to store the logical address mapping data within the first preset time period after writing. The second type of table is used to alternately store the logical address mapping data within the second preset time period after writing. The hash table and cloth are used to store the logical address mapping data within the second preset time period after writing. Long filter and other mapping functions are implemented.

Benefits of technology

The reliability of reading data of the memory system is improved by adjusting the read voltage in a targeted manner to offset the threshold voltage drift of the storage unit, ensuring the correctness of the read command, and saving space through the alternate use of multiple second-type tables.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118860263A_ABST
    Figure CN118860263A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a memory system, an operation method thereof, a memory controller and a readable storage medium. The memory system includes at least one non-volatile memory device and a memory controller coupled to the non-volatile memory device; the memory controller is configured to judge whether data mapped by a logic address of a received reading command belongs to a first class table or a second class table, and confirm the heat of the data corresponding to the logic address of the received reading command; determining the level of the drift distance of the threshold voltage of the storage unit corresponding to the logic address according to the heat of the data corresponding to the logic address of the received reading command; and determining different reading voltages correspondingly sent to the storage unit corresponding to the logic address according to the drift amounts of different levels.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of semiconductor technology, and in particular to a memory system and an operating method thereof, a memory controller, and a readable storage medium. Background Art

[0002] The threshold voltage of the storage cell of the non-volatile storage device drifts over time. The drift time range of the threshold voltage is very large, and it is difficult to track the drift level of the threshold voltage of the storage cell corresponding to the logical address of all data, and thus it is difficult to ensure the reliability of the reading voltage, which may cause errors in reading data and cannot ensure the reliability of reading data. Summary of the invention

[0003] In view of this, embodiments of the present disclosure provide a memory system and an operating method thereof, a memory controller, and a readable storage medium to solve at least one technical problem existing in the prior art.

[0004] According to a first aspect of an embodiment of the present disclosure, a memory system is provided, the memory system comprising: at least one non-volatile memory device and a memory controller coupled to the non-volatile memory device; the memory controller is configured to:

[0005] The heat of the data corresponding to the logical address of the received read command is determined by using the first type table and the second type table; the heat of the data represents the length of the average time difference between writing and reading the data; the first type table includes at least one, and at least one of the first type tables is used to store the data of the logical address mapping of each first time interval within a first preset time length after writing; the second type table includes multiple, and multiple second type tables are used to alternately store the data of the logical address mapping of each second time interval within a second preset time length after writing; the first preset time length is less than the second preset time length, and the first time interval is less than the second time interval;

[0006] The level of the drift amount corresponding to the logical address is determined according to the heat of the data corresponding to the logical address; different levels of drift amounts correspond to different read voltages sent to the non-volatile storage device.

[0007] In the above scheme, the first type of table is obtained through a hash table; the second type of table is obtained through a Bloom filter, a Cuckoo filter, an XOR filter or a vacuum filter.

[0008] In the above solution, the heat of the data includes: hot data, warm data and cold data; the average time difference between writing and reading the hot data, the warm data and the cold data increases in sequence; the memory controller is specifically configured as follows:

[0009] When the data mapped by the logical address is in the first class table, determining that the data corresponding to the logical address is hot data or warm data;

[0010] When the data mapped by the logical address is not in the first category table but in the second category table, determining that the data corresponding to the logical address is warm data or cold data;

[0011] When the data mapped to the logical address is not in the first category table and is not in the second category table, it is determined that the data corresponding to the logical address is cold data.

[0012] In the above scheme, the number of the first type of tables includes two, and the number of the second type of tables includes two;

[0013] The memory controller is specifically configured as follows:

[0014] When the data mapped by the logical address is in the first category table of the previous first time interval, determining that the data corresponding to the logical address is hot data;

[0015] When the data mapped by the logical address is not in the first category table of the previous first time interval, but is in the first category table of the current first time interval, determining that the data corresponding to the logical address is hot data or warm data;

[0016] When the data mapped by the logical address is not in the first category table of the current first time interval and the first category table of the previous first time interval, and is in the second category table of the previous second time interval, determining that the data corresponding to the logical address is warm data;

[0017] When the data mapped by the logical address is not in the first category table of the current first time interval, the first category table of the previous first time interval, and the second category table of the previous second time interval, and is in the second category table of the current second time interval, determining that the data corresponding to the logical address is warm data or cold data;

[0018] When the data mapped by the logical address is not in the first category table of the current first time interval and the first category table of the previous first time interval, and is not in the second category table of the current second time interval and the second category table of the previous second time interval, it is determined that the data corresponding to the logical address is cold data.

[0019] In the above scheme, the number of the first type of tables includes two, and the number of the second type of tables includes two;

[0020] The memory controller is specifically configured as follows:

[0021] When the data mapped by the logical address is in the first category table of the current first time interval or the first category table of the previous first time interval, determining that the data corresponding to the logical address is hot data;

[0022] When the data mapped by the logical address is not in the first category table of the current first time interval and the first category table of the previous first time interval, and is in the second category table of the current second time interval or the second category table of the previous second time interval, determining that the data corresponding to the logical address is warm data;

[0023] When the data mapped by the logical address is not in the first category table of the current first time interval and the first category table of the previous first time interval, and is not in the second category table of the current second time interval and the second category table of the previous second time interval, it is determined that the data corresponding to the logical address is cold data.

[0024] In the above solution, the memory controller is further configured as:

[0025] When the data corresponding to the logical address is the hot data, determining the drift amount corresponding to the logical address as the first-level drift amount;

[0026] When the data corresponding to the logical address is the warm data, determining that the drift amount corresponding to the logical address is a second-level drift amount;

[0027] When the data corresponding to the logical address is the cold data, determining that the drift amount corresponding to the logical address is a third-level drift amount;

[0028] The first-level drift is smaller than the second-level drift, and the second-level drift is smaller than the third-level drift.

[0029] In the above solution, the memory controller is specifically configured as follows:

[0030] When the data corresponding to the logical address is determined to be warm data using the first and second tables, and a read failure occurs when reading the data of the storage unit corresponding to the logical address using the read voltage corresponding to the warm data, the data of the storage unit corresponding to the logical address is re-read using the read voltage corresponding to the cold data.

[0031] In the above solution, the memory controller is further configured as:

[0032] Check whether the logical address corresponding to the received read command is stored in the write buffer;

[0033] When the logical address is not stored in the write buffer, determining a level of a drift amount corresponding to the logical address;

[0034] A read command is sent to the non-volatile storage device according to the level of drift corresponding to the logical address; wherein at least two of the processes of checking whether the logical address is saved, determining the level of drift and sending the read command are executed in parallel.

[0035] In the above scheme, the processes of checking whether the logical address is saved, determining the level of the drift amount and sending the read command are all executed in parallel; the memory controller includes: a first processor, a second processor, a third processor, a first on-chip memory and a second on-chip memory; wherein,

[0036] The first processor is configured to: check whether the logical address corresponding to the received read command is stored in the write buffer, and submit the logical address not stored in the write buffer to the first submission queue;

[0037] The first on-chip memory is configured to: store the first submission queue;

[0038] The second processor is configured to: determine the level of drift corresponding to each of the logical addresses in the first submission queue, and submit the level of drift corresponding to each of the logical addresses to the second submission queue;

[0039] The second on-chip memory is configured to: store the second submission queue;

[0040] The third processor is configured to: send a read command to the non-volatile storage device according to the level of the drift amount corresponding to each of the logical addresses in the second submission queue;

[0041] Among them, at the same moment, the first submission queue, the second submission queue and the logical address corresponding to the sending read command are different.

[0042] In the above solution, the third processor is specifically configured as follows:

[0043] Determining a read voltage for performing a read command operation on the non-volatile storage device according to a level of a drift amount corresponding to each of the logical addresses in the second submission queue;

[0044] A read command is sent to the nonvolatile memory device according to a read voltage for performing a read command operation on the nonvolatile memory device.

[0045] In the above solution, the first on-chip memory and the second on-chip memory both include dynamic random access memory or static random access memory.

[0046] In the above solution, the memory system includes a storage-level memory; and the non-volatile storage device includes a phase change memory.

[0047] According to a second aspect of an embodiment of the present disclosure, a memory controller is provided, coupled to at least one non-volatile storage device, and the memory controller is configured to:

[0048] The heat of the data corresponding to the logical address of the received read command is determined by using the first type table and the second type table; the heat of the data represents the length of the average time difference between writing and reading the data; the first type table includes at least one, and at least one of the first type tables is used to store the data of the logical address mapping of each first time interval within a first preset time length after writing; the second type table includes multiple, and multiple second type tables are used to alternately store the data of the logical address mapping of each second time interval within a second preset time length after writing; the first preset time length is less than the second preset time length, and the first time interval is less than the second time interval;

[0049] The level of the drift amount corresponding to the logical address is determined according to the heat of the data corresponding to the logical address; different levels of drift amounts correspond to different read voltages sent to the non-volatile storage device.

[0050] According to a third aspect of an embodiment of the present disclosure, there is provided an operating method of a memory system, the memory system comprising: at least one non-volatile memory device and a memory controller coupled to the non-volatile memory device; the operating method comprising:

[0051] The heat of the data corresponding to the logical address of the received read command is determined by using the first type table and the second type table; the heat of the data represents the length of the average time difference between writing and reading the data; the first type table includes at least one, and at least one of the first type tables is used to store the data of the logical address mapping of each first time interval within a first preset time length after writing; the second type table includes multiple, and multiple second type tables are used to alternately store the data of the logical address mapping of each second time interval within a second preset time length after writing; the first preset time length is less than the second preset time length, and the first time interval is less than the second time interval;

[0052] The level of the drift amount corresponding to the logical address is determined according to the heat of the data corresponding to the logical address; different levels of drift amounts correspond to different read voltages sent to the non-volatile storage device.

[0053] In the above solution, the method further comprises: forming the first category table and the second category table;

[0054] The forming of the first category table and the second category table comprises:

[0055] The logical address of each first time interval within the first preset time length after writing is stored in the first category table through the data mapped by the mapping function in the hash table;

[0056] The data mapped by the mapping function in the Bloom filter, the Cuckoo filter, the XOR filter or the vacuum filter at the logical address of each second time interval within the second preset time length after writing is stored in the second type table.

[0057] In the above scheme, the heat of the data includes: hot data, warm data and cold data; the average time difference between writing and reading the hot data, the warm data and the cold data becomes longer in sequence;

[0058] The method of using the first type table and the second type table to determine the heat of the data corresponding to the logical address of the received read command includes:

[0059] When the data group mapped by the logical address is in the first category table, determining that the data corresponding to the logical address is hot data or warm data;

[0060] When the data group mapped by the logical address is not in the first category table but in the second category table, determining that the data corresponding to the logical address is warm data or cold data;

[0061] When the data group mapped to the logical address is not in the first category table and is not in the second category table, it is determined that the data corresponding to the logical address is cold data.

[0062] In the above scheme, the number of the first type of tables includes two, and the number of the second type of tables includes two;

[0063] The method of using the first type table and the second type table to determine the heat of the data corresponding to the logical address of the received read command includes:

[0064] When the data mapped by the logical address is in the first category table of the previous first time interval, determining that the data corresponding to the logical address is hot data;

[0065] When the data mapped by the logical address is not in the first category table of the previous first time interval, but is in the first category table of the current first time interval, determining that the data corresponding to the logical address is hot data or warm data;

[0066] When the data mapped by the logical address is not in the first category table of the current first time interval and the first category table of the previous first time interval, and is in the second category table of the previous second time interval, determining that the data corresponding to the logical address is warm data;

[0067] When the data mapped by the logical address is not in the first category table of the current first time interval, the first category of the previous first time interval, and the second category table of the previous second time interval, and is in the second category table of the current second time interval, determining that the data corresponding to the logical address is warm data or cold data;

[0068] When the data mapped by the logical address is not in the first category table of the current first time interval and the first category table of the previous first time interval, and is not in the second category table of the current second time interval and the second category table of the previous second time interval, it is determined that the data corresponding to the logical address is cold data.

[0069] In the above scheme, the number of the first type of tables includes two, and the number of the second type of tables includes two;

[0070] The method of using the first type table and the second type table to determine the heat of the data corresponding to the logical address of the received read command includes:

[0071] When the array data mapped by the logical address is in the first category table of the current first time interval or the first category table of the previous first time interval, determining that the data corresponding to the logical address is hot data;

[0072] When the array data mapped by the logical address is not in the first class table of the current first time interval and the first class table of the previous first time interval, and is in the second class table of the current second time interval or the second class table of the previous second time interval, it is determined that the data corresponding to the logical address is warm data;

[0073] When the array data mapped by the logical address is not in the first category table of the current first time interval and the first category table of the previous first time interval, and is not in the second category table of the current second time interval and the second category table of the previous second time interval, it is determined that the data corresponding to the logical address is cold data.

[0074] In the above solution, determining the level of the drift amount corresponding to the logical address according to the heat of the data corresponding to the logical address includes:

[0075] When the data corresponding to the logical address is the hot data, determining the drift amount corresponding to the logical address as the first-level drift amount;

[0076] When the data corresponding to the logical address is the warm data, determining that the drift amount corresponding to the logical address is a second-level drift amount;

[0077] When the data corresponding to the logical address is the cold data, determining that the drift amount corresponding to the logical address is a third-level drift amount;

[0078] The first-level drift is smaller than the second-level drift, and the second-level drift is smaller than the third-level drift.

[0079] In the above scheme, the method further comprises:

[0080] When the data corresponding to the logical address is determined to be warm data using the first and second tables, and a read failure occurs when reading the data of the storage unit corresponding to the logical address using the read voltage corresponding to the warm data, the data of the storage unit corresponding to the logical address is re-read using the read voltage corresponding to the cold data.

[0081] In the above scheme, the method further comprises:

[0082] Check whether the logical address corresponding to the received read command is stored in the write buffer;

[0083] When the logical address is not stored in the write buffer, determining a level of a drift amount corresponding to the logical address;

[0084] According to the level of drift corresponding to the logical address, a read command is sent to the non-volatile storage device; wherein the processing of checking whether the logical address is saved, determining the level of drift and sending the read command is performed in parallel.

[0085] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed, the operating method of the memory system as described in any one of the above schemes can be implemented.

[0086] The disclosed embodiments provide a memory system and an operation method thereof, a memory controller and a readable storage medium. The memory system includes: at least one non-volatile storage device and a memory controller coupled to the non-volatile storage device; the memory controller is configured to: determine whether the data mapped by the logical address of the received read command belongs to the first type table or the second type table, and confirm the heat of the data corresponding to the logical address of the received read command according to the judgment result; determine the level of the drift amount corresponding to the logical address according to the heat of the data corresponding to the logical address; the level of the drift amount corresponding to the logical address of the received read command is different, and the corresponding read voltage stored in the non-volatile storage device is different, that is, the level of the logical address drift amount can be determined in the disclosed embodiments, and the read voltage is sent to the non-volatile storage device in a targeted manner, so as to ensure the correctness of the read command operation, thereby improving the reliability of the memory system. In addition, the alternating use of multiple second-type tables is more flexible than the use of a single table and can save more space. BRIEF DESCRIPTION OF THE DRAWINGS

[0087] Figure 1 A block diagram of a memory system provided for an embodiment of the present disclosure;

[0088] Figure 2A and Figure 2B A block diagram of the first type table and the second type table of the memory system provided in the embodiment of the present disclosure;

[0089] Figure 3A and Figure 3B A flowchart of an operation method of a memory system provided by an embodiment of the present disclosure, and a heat distribution diagram of data;

[0090] Figure 4A and Figure 4B A flowchart of another method for operating a memory system provided by an embodiment of the present disclosure, and a heat distribution diagram of data;

[0091] Figure 5A and Figure 5B A flowchart of another method for operating a memory system provided by an embodiment of the present disclosure, and a heat distribution diagram of data;

[0092] Figure 6 A block diagram of another memory system provided by an embodiment of the present disclosure;

[0093] Figure 7 A flowchart of an operating method of a memory system provided by an embodiment of the present disclosure;

[0094] Figure 8 A flowchart of an operating method of a memory system provided by an embodiment of the present disclosure;

[0095] Fig. 9 A schematic diagram of logical addresses corresponding to a first processor, a second processor, and a third processor in an nth time interval of an operating method of a memory system provided by an embodiment of the present disclosure;

[0096] Fig.10 A block diagram of a memory controller provided for an embodiment of the present disclosure;

[0097] Fig.11 A block diagram of a readable storage medium provided for an embodiment of the present disclosure;

[0098] Fig.12 A block diagram of a system provided for an embodiment of the present disclosure. DETAILED DESCRIPTION

[0099] The following is a clear and complete description of the technical solutions in the embodiments of the present disclosure in combination with the embodiments of the present disclosure and the accompanying drawings. The described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0100] In the following description, a large number of specific details are given to provide a more thorough understanding of the present disclosure. However, it is obvious to those skilled in the art that the present disclosure can be implemented without one or more of these details. In other examples, in order to avoid confusion with the present disclosure, some technical features known in the art are not described; that is, all features of actual embodiments are not described here, and well-known functions and structures are not described in detail.

[0101] In the drawings, the sizes of layers, regions, elements and their relative sizes may be exaggerated for clarity. Like reference numerals denote like elements throughout.

[0102] It should be understood that when an element or layer is referred to as "on ...", "adjacent to ...", "connected to" or "coupled to" other elements or layers, it can be directly on, adjacent to, connected to or coupled to other elements or layers, or there can be intervening elements or layers. On the contrary, when an element is referred to as "directly on ...", "directly adjacent to ...", "directly connected to" or "directly coupled to" other elements or layers, there is no intervening element or layer. It should be understood that although the terms first, second, third, etc. can be used to describe various elements, components, regions, layers and / or parts, these elements, components, regions, layers and / or parts should not be limited by these terms. These terms are only used to distinguish one element, component, region, layer or part from another element, component, region, layer or part. Therefore, without departing from the teachings of the present disclosure, the first element, component, region, layer or part discussed below can be represented as the second element, component, region, layer or part. And when the second element, component, region, layer or part is discussed, it does not indicate that the present disclosure necessarily has the first element, component, region, layer or part.

[0103] Spatially relative terms such as "under", "beneath", "below", "under", "above", "above", etc., may be used here for convenience of description to describe the relationship between an element or feature shown in the figure and other elements or features. It should be understood that in addition to the orientation shown in the figure, the spatial relationship terms are intended to also include different orientations of the device in use and operation. For example, if the device in the accompanying drawings is turned over, then the elements or features described as "under other elements" or "under it" or "under it" will be oriented as "on" other elements or features. Therefore, the exemplary terms "under" and "under" may include both upper and lower orientations. The device can be oriented otherwise (rotated 90 degrees or other orientations) and the spatial descriptors used herein are interpreted accordingly.

[0104] The purpose of the terms used herein is only to describe specific embodiments and is not intended to be a limitation of the present disclosure. When used herein, the singular forms "one", "an" and "said / the" are also intended to include plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "consisting of" and / or "comprising", when used in this specification, determine the presence of the features, integers, steps, operations, elements and / or parts, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, parts and / or groups. When used herein, the term "and / or" includes any and all combinations of the relevant listed items.

[0105] In order to thoroughly understand the present disclosure, detailed steps and detailed structures will be presented in the following description to illustrate the technical solution of the present disclosure. The preferred embodiments of the present disclosure are described in detail below, but in addition to these detailed descriptions, the present disclosure may also have other implementations.

[0106] Figure 1 A block diagram of a memory system provided by an embodiment of the present disclosure. Figure 1 As shown, according to a first aspect of an embodiment of the present disclosure, a memory system is provided. The memory system 100 includes: at least one non-volatile memory device 110 and a memory controller 120 coupled to the non-volatile memory device; the memory controller 120 is configured to perform the following steps:

[0107] Step S1001, using the first type table and the second type table, determine the heat of the data corresponding to the logical address of the received read command; the heat of the data represents the length of the average time difference between data writing and reading; the first type table includes at least one, at least one first type table is used to store the data of the logical address mapping of each first time interval within a first preset time length after writing; the second type table includes multiple, multiple second type tables are used to alternately store the data of the logical address mapping of each second time interval within a second preset time length after writing; the first preset time length is less than the second preset time length, and the first time interval is less than the second time interval;

[0108] Step S1002 : determining the level of drift corresponding to the logical address according to the heat of the data corresponding to the logical address; different levels of drift correspond to different read voltages sent to the non-volatile storage device.

[0109] The memory system 100 includes at least one memory and a memory controller connected to the at least one memory. The memory may include a nonvolatile memory device and a volatile memory device.

[0110] The memory controller 120 may control the overall operation of the memory system 100. The memory controller 120 may store data to the nonvolatile memory device or may read data stored in the nonvolatile memory device.

[0111] The nonvolatile memory device 110 may include one of a phase change memory (PCM), a resistive random access memory (RRAM), a magnetic random access memory (MRAM), and a carbon nanotube random access memory (NRAM).

[0112] The memory controller 120 may also store various information (eg, metadata information and a mapping table) required for the operation of the memory system 100 to the volatile memory device, and may access the nonvolatile memory device based on the information stored in the volatile memory device.

[0113] The volatile memory device may include a memory device of a dynamic random access memory (DRAM), a static random access memory (SRAM), a synchronous dynamic random access memory (SDRAM), or a fourth generation double data rate synchronous dynamic random access memory (DDR4 SDRAM).

[0114] The first type of table and the second type of table may be mapping tables (TBL, table) that provide fast and efficient insertion and search operations for the memory system. The first preset duration and the second preset duration may be time intervals consisting of at least one first time interval trigger and at least one second time interval, respectively, corresponding to different data heats. Among them, the first time interval and the second time interval may respectively correspond to different time intervals triggered by a time interval trigger. Exemplarily, within the first preset duration, the first type of table is used to store the data of the logical address mapping obtained by the first time interval trigger, and within the second preset duration, the second type of table is used to store the data of the logical address mapping obtained by the second time interval trigger; the first time interval is less than the second time interval.

[0115] In some embodiments, the second time interval includes the first time interval; wherein, within the second time interval, the data of the logical address mapping triggered by the second time interval includes the data of the logical address mapping triggered by the first time interval, and the second type table includes the first type table.

[0116] The heat of data can characterize the length of the average time difference from writing data to reading data from non-volatile storage (hereinafter referred to as the average time difference between writing and reading data). In some embodiments, data can be divided into hot data, warm data, and cold data according to the length of the time difference between writing and reading data. The time difference between writing and reading corresponding to hot data is the shortest, the time difference between writing and reading corresponding to warm data is the second shortest, and the time difference between writing and reading corresponding to cold data is the longest; among which, the time differences between writing and reading corresponding to hot data, warm data, and cold data become longer in sequence.

[0117] Exemplarily, the average time difference between writing and reading hot data can be defined as 1μs~2ms, which may be referred to as hot data (1μs~2ms) hereinafter; the average time difference between writing and reading warm data can be defined as 1ms~2s, which may be referred to as warm data (1ms~2s) hereinafter; the average time difference between writing and reading cold data can be defined as 1s~several hours, which may be referred to as cold data (1s~several hours) hereinafter.

[0118] It should be noted that the range of the time difference between writing and reading hot data, warm data and cold data may have overlapping areas. For data whose time difference between writing and reading is in a non-overlapping area, the result of judging the heat of the data is unique. Exemplarily, for data whose time difference between writing and reading is in the range of 1 microsecond to 1 millisecond, the data can be determined as hot data; for data whose time difference between writing and reading is in the range of 2 milliseconds to 1 second, the data can be determined as warm data; for data whose time difference between writing and reading exceeds 2 seconds, the data can be determined as cold data. However, for data whose time difference between writing and reading is in an overlapping area, the result of judging the heat of the data is not unique. Exemplarily, for data whose time difference between writing and reading is in the range of 1 millisecond to 2 milliseconds, the data can be determined as either hot data or warm data. For data whose time difference between writing and reading is in the range of 1 second to 2 seconds, the data can be determined as either warm data or cold data. Therefore, the heat of data represents the length of the average time difference between writing and reading data.

[0119] It is understandable that when there are overlapping areas in the range of the time difference between writing and reading hot data, warm data and cold data, these overlapping areas are all at the intersection of the two types of data. In fact, there is a certain window for the read voltage. For the data in the overlapping area, the two drift levels corresponding to the two types of data can be applied, and at this time, the read voltages corresponding to the two drift levels can also be applied.

[0120] Here and below, the logical addresses (LBA, Logical Block Address) corresponding to hot data, warm data, and cold data are respectively referred to as hot logical addresses, warm logical addresses, and cold logical addresses.

[0121] It should be noted that, here and below, the data mapped to the logical address refers to the data representing the logical address, which can be the logical data itself or the data used to represent the logical address obtained after the logical address is subjected to a logical operation (or a mapping function operation).

[0122] In step S1001 , the memory controller may use at least one first type table to store data of hot logical address mappings, and use a plurality of second type tables to alternately store data of warm logical address mappings.

[0123] Determine whether the data mapped to the logical address of the received read command belongs to the first category table or the second category table, and confirm the heat of the data corresponding to the logical address of the received read command according to the result of the determination. Exemplarily, the data mapped to the logical address of the received read command belongs to the first category table, and the heat of the data corresponding to the logical address of the received read command is confirmed to be hot, that is, the data corresponding to the logical address of the received read command is confirmed to be hot data, or the logical address of the received read command is confirmed to be a hot logical address.

[0124] The memory controller uses at least one first-type table to store data of hot logical address mapping, which can improve or solve the problem that the read window margin (RWM) of the non-volatile memory device is very small at time zero.

[0125] The warm data and the cold data have a relatively large RWM. The memory controller uses a plurality of second-type tables to alternately store data mapped with warm logical addresses, and can distinguish between massive warm data and cold data with a relatively large RWM at low latency.

[0126] Since the threshold voltage of a memory cell of a nonvolatile memory device drifts over time, the drift level of the threshold voltage may be classified into different levels according to different temperatures (eg, hot, warm, and cold) of data.

[0127] Step S1002 is executed, the memory controller determines the level of drift of the threshold voltage of the storage unit corresponding to the logical address according to the heat of the data corresponding to the logical address of the received read command; and determines different read voltages to be sent to the non-volatile storage device 110 corresponding to the logical address according to the different levels of drift. In other words, the corresponding read voltage is given according to the different heat of the data in the storage unit corresponding to the logical address of the received read command, and each drift level of the corresponding read voltage can give a promised raw bit error rate (RBER) to ensure the reliability of the read data.

[0128] In the disclosed embodiment, the memory controller is configured to determine whether the data mapped to the logical address of the received read command belongs to the first category table or the second category table, and confirm the heat of the data corresponding to the logical address based on the determination result; determine the level of the drift amount corresponding to the logical address based on the heat of the data of the logical address; determine the read voltage applied when reading the data corresponding to the corresponding logical address in the non-volatile storage device based on the level of the drift amount, so as to offset the drift of the threshold voltage of the storage unit over time, thereby ensuring the reliability of reading data from the non-volatile storage device.

[0129] The following will refer to the above Figure 1 , Figure 2A , Figure 2B , Figure 3A , Figure 3B , Figure 4A , Figure 4B , Figure 5A , Figure 5B , and describes in detail how the memory controller uses the first type table and the second type table to determine the heat of the data corresponding to the logical address of the received read command. In the following text and its accompanying drawings, hot data can be understood as data mapped to hot logical addresses, warm data can be understood as data mapped to warm logical addresses, and cold data can be understood as data mapped to cold logical addresses.

[0130] It should be noted that the following uses hot data: 1μs to 2ms, warm data: 1ms to 2s, and cold data: 1s to several hours as examples of the basis for dividing data heat. It can be understood that the basis for dividing data heat here is only used to simplify the description and does not limit the basis for dividing data heat in this disclosure. In other embodiments, other bases can also be used to divide data heat.

[0131] Figure 2A and Figure 2B This is a block diagram of the first type table and the second type table of the memory system provided by the embodiment of the present disclosure. Figure 2A and Figure 2B As shown, in some embodiments, the first type of table is obtained through a hash table; the second type of table is obtained through a Bloom filter, a Cuckoo filter, an XOR filter, and a Vacuum filter.

[0132] Here, the hash table may include a first mapping function and a first type table, and the Bloom filter and the like may include a second mapping function and a second type table. The data mapped by the first mapping function to the logical address within the first preset time length after the host writes is stored in the first type table. The data mapped by the second mapping function to the logical address within the second preset time length after the host writes is stored in the second type table.

[0133] In some embodiments, a first type of table is used to store data of logical address mappings triggered by a first time interval, and a second type of table is used to store data of logical address mappings triggered by a second time interval; one time interval is smaller than a second time interval; wherein, within the second time interval, the data of logical address mappings triggered by the second time interval includes the data of logical address mappings triggered by the first time interval, and the second type of table includes the first type of table.

[0134] In this embodiment, the first type table is a part of the second type table, and the storage space of a first type table triggered by the first time interval corresponds to a unit of storage space in the storage space of a second type table triggered by the second time interval. The storage spaces of multiple first type tables constitute the storage space of one second type table. Exemplarily, the storage space of the second type table triggered by 1000 1ms time intervals corresponds to the storage space of one second type table triggered by a 1Sec time interval.

[0135] In some specific embodiments, the first type of table can be obtained through a hash table, and the second type of table can be obtained through a Bloom filter. Exemplarily, the data obtained after the logical address is operated by a hash function is stored in the first type of table, and the first type of table is used to store the data mapped by the hot logical address; the data obtained after the logical address is operated by multiple unbiased hash functions is stored in the second type of table, and the second type of table is used to store the data mapped by the warm logical address.

[0136] like Figure 2A As shown, the first type of table is used to store data of hot logical address mapping.

[0137] In some embodiments, the first type of table may include N mapping tables, where N is a positive integer and the maximum value is 5. Here, the value of N depends on the insertion delay of the Bloom filter.

[0138] Exemplarily, the first category table may include two mapping tables: a current first category table and a previous first category table. The current first category table is a first category table that stores data of some logical address mappings and has some unused storage space, or a first category table that has just been cleared and all storage space is unused. The previous first category table is a first category table that has stored data of all logical address mappings at the current moment and has no remaining storage space.

[0139] It should be noted that the current first-category table and the previous first-category table store data in a rotating manner in time. The current first-category table and the previous first-category table are not two first-category tables with fixed physical locations. The concepts of current and previous will change alternately over time. Specifically, at a certain current moment, the previous first-category table has been fully stored with data mapped by logical addresses, and at a certain current moment, the current first-category table has been storing data mapped by logical addresses. When the storage is full, the previous first-category table is cleared. The cleared previous first-category table serves as the current first-category table at the next current moment, and the current first-category table that was fully stored before a certain current moment serves as the previous first-category table at the next current moment.

[0140] The data of the logical address mapping of the completed queue may be the data of the logical address mapping of part of the input to be inserted into the logical address mapping of the first type table or the second type table. The definition and application of the input logical address mapping data are detailed in the following. Figures 6 to 8 The description of the relevant parts will not be repeated here.

[0141] In some embodiments, each mapping table can be obtained by a time interval trigger. Exemplarily, the time interval trigger is triggered by 1 ms to form a plurality of storage spaces with a bit width of 31 bits.

[0142] like Figure 2B As shown, the second type of table is used to store data of warm logical address mapping.

[0143] In some embodiments, the second type of table may include multiple mapping tables.

[0144] Exemplarily, the second category table may include two mapping tables: the current second category table and the previous second category table. The manner of inserting data that has completed the logical address mapping of the queue in the current second category table and the previous second category table, and the specific details of the current second category table and the previous second category table storing data in a rotating manner in time, are similar to the aforementioned current first category table and the previous first category table, and will not be repeated here. The difference is that the storage space of the second category table is larger than the storage space of the first category table, and the triggering time interval of the second category table is larger than the triggering time interval of the first category table. Exemplarily, the storage space of a second category table triggered by the second time interval is larger than the storage space of a first category table triggered by the first time interval.

[0145] In some embodiments, each mapping table can be obtained by a time interval trigger. Exemplarily, a time interval trigger of 1 Sec triggers to form a plurality of storage spaces with a bit width of 31 bits.

[0146] The storage space of one unit in the second type table is equivalent to the storage space of one unit in the first type table. Figure 2B The storage space of one unit in the current second-category table shown is equivalent to Figure 2A The storage space of a first type table is shown.

[0147] The first type of table can be used to store data mapped to hot logical addresses whose RWM is very small at time zero. By using a hash table to store hot logical addresses, the problem that the RWM of the non-volatile storage device is very small at time zero can be improved or solved.

[0148] The second type of table can be used to store massive amounts of warm logical address mapping data and cold logical address mapping data. By using Bloom filters to store massive amounts of warm logical addresses and cold logical addresses, massive amounts of warm data and cold data can be distinguished with low latency, so that the warm data and cold data have a considerable RWM.

[0149] Since the space for storing these warm data and cold data addresses is huge, it is impossible to use a hash table to completely store the data mapped by these logical addresses. For example, it takes a long time to query a large amount of warm logical address mapping data on the hash table, resulting in a large read delay and increasing the time consumed to refresh or insert the hash table.

[0150] If a certain error recognition rate is allowed, compared with the solution of querying a large number of logical addresses on the hash table, the solution of querying a large number of logical addresses on the mapping table obtained by the Bloom filter has comprehensive advantages in space efficiency and rate efficiency.

[0151] Exemplarily, when using a 4KB write granularity for a Bloom filter implementation, memory efficiency is improved by 20 times; the overhead of storing a 1Sec write address may be reduced from 1.84MB (hash table) to 92KB (Bloom filter); and the time to query a key on a Bloom filter is approximately ~40ns.

[0152] By adopting a scheme of querying massive logical addresses on the mapping table obtained by the Bloom filter, a massive logical address can be stored, the storage size of the on-chip memory can be actively compressed, and the consumption of on-chip memory resources can be avoided; at the same time, fast and efficient insertion and search operations can be achieved; and logical addresses of any length can be covered.

[0153] Figure 3A and Figure 3B The following is a flowchart of a method for operating a memory system and a heat distribution diagram of data provided by an embodiment of the present disclosure. Figure 3A and Figure 3B As shown, in some embodiments, the heat of data includes: hot data, warm data and cold data; the average time difference between writing and reading corresponding to the hot data, warm data and cold data is successively longer; the memory controller 120 is specifically configured to perform the following steps:

[0154] Step S3002: When the data mapped by the logical address is in the first type table, determine whether the data corresponding to the logical address is hot data or warm data;

[0155] Step S3003: When the data mapped by the logical address is not in the first type table but in the second type table, determine whether the data corresponding to the logical address is warm data or cold data;

[0156] Step S3004: When the data mapped to the logical address is neither in the first type table nor in the second type table, it is determined that the data corresponding to the logical address is cold data.

[0157] refer to Figure 3A and Figure 3BExemplarily, the data of the logical address mapping of the completion queue is written using multiple second-type tables and one first-type table.

[0158] The first type of table can store data mapped to hot logical addresses or data mapped to warm logical addresses; the second type of table can store data mapped to hot logical addresses, data mapped to warm logical addresses or data mapped to cold logical addresses; the logical address not stored in the first type of table or the second type of table is a cold logical address.

[0159] When the data of the logical address mapping can be queried from the first-class table, the logical address is a hot logical address or a warm logical address; otherwise, the query comes from multiple second-class tables. If the data of the logical address mapping cannot be queried from multiple second-class tables, the logical address is a cold logical address; if the data of the logical address mapping can be queried from two second-class tables, the logical address is a cold logical address or a warm logical address.

[0160] Figure 4A and Figure 4B A flowchart of another method for operating a memory system provided by an embodiment of the present disclosure and a heat distribution diagram of data. Figure 4A and Figure 4B As shown, in some embodiments, the number of first-type tables includes two, and the number of second-type tables includes two;

[0161] The memory controller 120 is specifically configured to perform the following steps:

[0162] Step S4002: when the data mapped by the logical address is in the first type table of the previous first time interval, determine that the data corresponding to the logical address is hot data;

[0163] Step S4003: when the data mapped to the logical address is not in the first category table of the previous first time interval, but is in the first category table of the current first time interval, determining that the data corresponding to the logical address is hot data or warm data;

[0164] Step S4004: when the data mapped to the logical address is not in the first category table of the current first time interval and the first category table of the previous first time interval, and is in the second category table of the previous second time interval, it is determined that the data corresponding to the logical address is warm data;

[0165] Step S4005: when the data mapped by the logical address is not in the first category table of the current first time interval, the first category table of the previous first time interval, and the second category table of the previous second time interval, and is in the second category table of the current second time interval, determine that the data corresponding to the logical address is warm data or cold data;

[0166] Step S4006: When the data mapped by the logical address is not in the first category table of the current first time interval and the first category table of the previous first time interval, and is not in the second category table of the current second time interval and the second category table of the previous second time interval, it is determined that the data corresponding to the logical address is cold data.

[0167] refer to Figure 4A and Figure 4B Exemplarily, two second-type tables and two first-type tables are used to alternately write data of the logical address mapping of the completion queue.

[0168] The previous first-class table can store data mapped by hot logical addresses, and the current first-class table can store data mapped by hot logical addresses or data mapped by warm logical addresses; the previous second-class table can store data mapped by hot logical addresses or data mapped by warm logical addresses, and the current second-class table can store data mapped by warm logical addresses or data mapped by cold logical addresses; the logical addresses not stored in the first-class table or the second-class table are cold logical addresses.

[0169] Exemplarily, each second-category table is used to store data of logical address mapping with a granularity of 1Sec and a bit width of 31 bits, hereinafter referred to as the second-category table with a granularity of 1Sec; each first-category table is used to store data of logical address mapping with a granularity of 1ms and a bit width of 31 bits, hereinafter referred to as the first-category table with a granularity of 1ms.

[0170] When the data of the logical address mapping can be queried from the first-class table of the previous 1ms level, the logical address is a hot logical address;

[0171] When the data of the logical address mapping cannot be queried from the first-class table of the previous 1ms level, and the data of the logical address mapping can be queried from the first-class table of the current 1ms level, the logical address is a hot logical address or a warm logical address;

[0172] When the data of the logical address mapping cannot be queried from the two first-class tables at the 1ms level, and the data of the logical address mapping can be queried from the second-class table at the previous 1Sec granularity, the logical address is a warm logical address;

[0173] When the data of the logical address mapping cannot be queried from the two first-class tables of the 1ms level, and the data of the logical address mapping cannot be queried from the second-class table of the previous 1Sec granularity, but the data of the logical address mapping can be queried from the second-class table of the current 1Sec granularity, the logical address is a warm logical address or a cold data address;

[0174] When the data mapped to the logical address cannot be queried from two first-class tables at the 1ms level, and the data mapped to the logical address cannot be queried from two second-class tables at the 1Sec granularity, the logical address is a cold data address.

[0175] In some specific embodiments, the time interval corresponding to hot data and the time interval corresponding to warm data are set with overlapping intervals, and the time interval corresponding to warm data and the time interval corresponding to cold data are set with overlapping intervals; increasing the margin of the memory controller in determining the heat of the data corresponding to the logical address of the received read command.

[0176] For example, reference Figure 4B The time interval corresponding to hot data is 1μs~2ms, the time interval corresponding to warm data is 1ms~2Ses, and the time interval corresponding to cold data is greater than 2Ses; among them, the time interval corresponding to hot data overlaps with the time interval corresponding to warm data by 1ms~2ms, and the time interval corresponding to warm data overlaps with the time interval corresponding to cold data by 1Ses~2Ses.

[0177] Figure 5A and Figure 5B A flowchart of another method for operating a memory system and a heat distribution diagram of data provided by an embodiment of the present disclosure. Figure 5A and Figure 5B As shown, in some embodiments, the number of first-type tables includes two, and the number of second-type tables includes two;

[0178] The memory controller 120 is specifically configured as follows:

[0179] S5002 and S5003, when the data mapped by the logical address is in the first category table of the current first time interval or the first category table of the previous first time interval, determining that the data corresponding to the logical address is hot data;

[0180] S5004 and S5005, when the data mapped by the logical address is not in the first category table of the current first time interval and the first category table of the previous first time interval, and is in the second category table of the current second time interval or the second category table of the previous second time interval, determine that the data corresponding to the logical address is warm data;

[0181] S5006: When the data mapped by the logical address is not in the first category table of the current first time interval and the first category table of the previous first time interval, and is not in the second category table of the current second time interval and the second category table of the previous second time interval, determine that the data corresponding to the logical address is cold data.

[0182] refer to Figure 5A and Figure 5B Exemplarily, two second-type tables and two first-type tables are used to alternately write data of the logical address mapping of the completion queue.

[0183] The previous first-class table and the current first-class table are both used to store data of hot logical address mappings; the previous second-class table can store data of hot logical address mappings or data of warm logical address mappings, and the current second-class table can store data of warm logical address mappings; data of cold logical address mappings in the first-class table and the second-class table are not stored.

[0184] Exemplarily, each second-category table is used to store data of logical address mapping with a granularity of 1Sec and a bit width of 31 bits, hereinafter referred to as the second-category table with a granularity of 1Sec; each first-category table is used to store data of logical address mapping with a granularity of 1ms and a bit width of 31 bits, hereinafter referred to as the first-category table with a granularity of 1ms.

[0185] When the data of the logical address mapping can be queried from the first-class table of the previous 1ms level or the first-class table of the current 1ms level, the logical address is a hot logical address;

[0186] When the data of the logical address mapping cannot be queried from the two first-class tables at the 1ms level, and the data of the read logical address mapping can be queried from the second-class table at the current 1Sec level or the second-class table at the previous 1Sec granularity, the logical address is a warm logical address;

[0187] When the data mapped by the logical address cannot be queried from the two first-class tables at the 1ms level, and the data mapped by the read logical address cannot be queried from the two second-class tables at the 1Sec level, the logical address is a cold data address.

[0188] In some specific embodiments, the time intervals corresponding to hot data, the time intervals corresponding to warm data, and the time intervals corresponding to cold data together constitute a continuous time interval, increasing the certainty of the memory controller in determining the heat of the data corresponding to the logical address of the received read command.

[0189] For example, reference Figure 5B The time interval corresponding to hot data is 1μs~2ms, the time interval corresponding to warm data is 2ms~2Ses, and the time interval corresponding to cold data is greater than 2Ses; among them, there is no overlapping interval between the time interval corresponding to hot data and the time interval corresponding to warm data, and between the time interval corresponding to warm data and the time interval corresponding to cold data.

[0190] In some embodiments, the memory controller 120 is further configured to:

[0191] When the data corresponding to the logical address is hot data, determining the drift amount corresponding to the logical address as the first-level drift amount;

[0192] When the data corresponding to the logical address is warm data, determining the drift amount corresponding to the logical address as the second-level drift amount;

[0193] When the data corresponding to the logical address is cold data, determining the drift amount corresponding to the logical address as the third level drift amount;

[0194] Among them, the first-level drift amount is smaller than the second-level drift amount, and the second-level drift amount is smaller than the third-level drift amount.

[0195] In practical applications, a reading voltage with a first-level drift corresponds to reading hot data (1μs to 2ms); a reading voltage with a first-level drift corresponds to reading warm data (1ms to 2s); and a reading voltage with a first-level drift corresponds to reading cold data (1s to several hours).

[0196] In this embodiment, the heat of hot data, warm data, and cold data changes from large to small, that is, the average time difference between writing and reading changes from small to large, which are 1μs to 2ms, 1ms to 2s, and 1s to several hours, respectively. The higher the heat of the data, the more times the storage unit corresponding to the logical address is read or written, and the threshold voltage offset of the storage unit corresponding to the logical address is small, and a smaller drift amount is required. Exemplarily, according to the heat of hot data, warm data, and cold data, the corresponding first-level drift amount, second-level drift amount, and third-level drift amount change from small to large.

[0197] In some embodiments, the memory controller 120 is specifically configured as follows:

[0198] When the data corresponding to the logical address is determined to be warm data using the first and second tables, and a read failure occurs when reading the data of the storage unit corresponding to the logical address using the read voltage corresponding to the warm data, the data of the storage unit corresponding to the logical address is re-read using the read voltage corresponding to the cold data.

[0199] As mentioned above Figure 3A , Figure 4A and Figure 5A As shown in steps S3005, S4007, and S5007 respectively, when the logical address mapping data cannot be queried from the two first-category tables, and the read logical address mapping data can be queried from the current second-category table or the previous second-category table, it is necessary to judge whether the logical address mapping data is a false positive: if it is a false positive, the logical address mapping data is cold data; if it is not a false positive, the logical address mapping data is warm data.

[0200] The accuracy of querying the second type of table is not 100%, and there may be a misjudgment rate (ie, a false positive). For example, the probability of a false positive in some Bloom filters is about 0.1%.

[0201] For example, Figure 4A and Figure 5A As shown, when the data mapped to the logical address cannot be queried from the two first-category tables, and the data mapped to the read logical address can be queried from the current second-category table or the previous second-category table, the data of the storage unit corresponding to the logical address is first read using the read voltage corresponding to the warm data. If a read failure occurs, it means that a false positive may occur in the data mapped to the logical address, and the data mapped to the logical address may actually be cold data. At this time, the read voltage corresponding to the cold data may be changed to re-read the data of the storage unit corresponding to the logical address, or an error correction code (ECC) may be used to correct it. If the read is successful and no false positive occurs in the data mapped to the logical address, the data mapped to the logical address is warm data, and the read voltage corresponding to the warm data is still used to re-read the data of the storage unit corresponding to the logical address.

[0202] The above describes in detail how to determine the level of the drift amount corresponding to the logical address. The following will introduce some specific application scenarios of determining the level of the drift amount corresponding to the logical address.

[0203] Figure 6 A block diagram of a memory system provided in an embodiment of the present disclosure, Figure 7 The flowchart of the operation method of the memory system provided by the embodiment of the present disclosure is as follows. Figure 6 and Figure 7 As shown, an embodiment of the present disclosure provides an operating method of a memory system, wherein the memory system 100 includes: at least one non-volatile memory device 110 and a memory controller 120 coupled to the non-volatile memory device 110; the memory controller is further configured as follows:

[0204] Step S201: Check whether the logical address corresponding to the received host read command is stored in the write buffer;

[0205] Step S202: when the logical address is not stored in the write buffer, determining the level of the drift amount corresponding to the logical address not stored in the write buffer;

[0206] Step S203: sending a read command to the non-volatile storage device according to the level of drift corresponding to the logical address; wherein at least two of the processes of checking whether the logical address is saved, determining the level of drift and sending the read command are executed in parallel.

[0207] In the disclosed embodiment, in step S201, the host sends a read command to the memory controller 120. After receiving the read command sent by the host, the memory controller 120 checks whether the logical address corresponding to the received read command is saved in the write buffer (Write Buffer), that is, checks whether the logical address corresponding to the read command is available in the write buffer.

[0208] In some embodiments, if the logical address corresponding to the read command is stored in a write buffer, the data corresponding to the logical address can be obtained from the write buffer. Here, the write buffer can be located in the host, and when the logical address corresponding to the read command is stored in the write buffer, the data corresponding to the logical address can be obtained from the write buffer, and the access distance for obtaining the data corresponding to the logical address is shorter.

[0209] In some embodiments, if the logical address corresponding to the read command is not stored in the write buffer, the data corresponding to the logical address can be obtained from the non-volatile storage device 110. Here, in the case where the logical address corresponding to the read command is not stored in the write buffer, the data corresponding to the logical address can be obtained from the non-volatile storage device 110 through the memory controller 120, and the access distance for obtaining the data corresponding to the logical address is longer.

[0210] It should be noted that the above Figure 3A , Figure 4A , Figure 5A The data mapped by the logical addresses in steps S3001, S4001, and S5001 can be understood as the data mapped after the logical address not saved in the write buffer obtained after executing step S201 is subjected to logical operation.

[0211] In the embodiment of the present disclosure, in step S202, when the logical address is not stored in the write buffer, for the logical address not stored in the write buffer, considering that the drift amounts of the threshold voltages of different storage cells are different, the level of the drift amount corresponding to the logical address not stored in the write buffer is determined. Wherein, different levels of drift amounts correspond to different read voltages, and in subsequent steps, the read voltage for performing a read command operation on the non-volatile storage device 110 can be determined according to the level of the drift amount.

[0212] In the embodiment of the present disclosure, in step S203, according to the level of the drift amount corresponding to the logical address, a read command is sent to the non-volatile storage device 110. In this way, the read voltage for performing the read command operation on the non-volatile storage device 110 can be determined according to the level of the drift amount corresponding to the logical address, thereby ensuring the correctness of the read command operation, thereby improving the reliability of the memory system 110.

[0213] In the disclosed embodiment, step S201, step S202 and step S203 may be executed in a pipeline manner. Specifically, in step S201, it is checked whether the logical address corresponding to the host read command is stored in the write buffer, and different steps are subsequently executed according to whether the logical address corresponding to the read command is stored in the write buffer. For the logical address not stored in the write buffer, step S202 is continued to be executed. In other words, for a fixed logical address, step S201 is executed, and if the logical address is not stored in the write buffer, step S202 may be executed for the logical address. In step S202, the level of drift corresponding to the logical address not stored in the write buffer is determined, and step S203 is continued to be executed. In other words, for a fixed logical address, step S202 is executed, and if the level of drift corresponding to the logical address is determined, step S203 may be executed for the logical address. In step S203, a read command is sent to the non-volatile storage device 110 according to the level of drift corresponding to the logical address. In other words, for a fixed logical address, step S203 is executed to send a read command to the non-volatile storage device 110 according to the level of the drift amount corresponding to the logical address.

[0214] It should be noted that, for a fixed logical address, step S201, step S202 and step S203 are executed in a pipeline manner, that is, step S201, step S202 and step S203 are executed in sequence in a serial manner. However, for multiple logical addresses, step S201, step S202 and step S203 can be executed in parallel. This is because the time spent on executing step S201, step S202 and step S203 is different. Exemplarily, for two logical addresses, that is, a first logical address and a second logical address, step S201, step S202 and step S203 can be executed in sequence for the first logical address, and step S201 can be executed for the second logical address while step S202 is executed for the first logical address. That is, there is no need to wait for the first logical address to complete steps S201, S202 and S203 before executing step S201 on the second logical address; at the same time, the logical addresses corresponding to executing steps S201, S202 and S203 are different.

[0215] In the disclosed embodiment, at least two processing processes of checking whether the logical address is saved in the write buffer, determining the level of drift corresponding to the logical address not saved in the write buffer, and sending a read command are performed in parallel, thereby optimizing the read delay and improving the read efficiency.

[0216] It should be noted that at least two of the processes of checking whether the logical address is saved, determining the level of the drift amount, and sending the read command include three situations. In the first case, step S201 and step S202 are merged, that is, one processor is used to sequentially execute step S201 and step S202 in a serial manner; another processor is used to execute step S203. In this case, the processing of step S201 and step S202 is executed in parallel with the processing of step S203. In this way, the reading time can be saved to a certain extent, the reading delay can be optimized, and the reading efficiency can be improved.

[0217] In the second case, a processor is used to perform step S201; step S202 and step S203 are combined, that is, another processor is used to perform step S202 and step S203 in sequence in a serial manner. In this case, the processing of step S201 is performed in parallel with the processing of step S202 and step S203. In this way, the reading time can be saved to a certain extent, the reading delay can be optimized, and the reading efficiency can be improved.

[0218] In the third case, three processors are used to execute step S201, step S202 and step S203 respectively. In this case, the processing of step S201, step S202 and step S203 are all executed in parallel. In this way, the reading time can be further saved, the reading delay can be optimized, and the reading efficiency can be improved.

[0219] Reference below Figure 8 , Figure 8 A flowchart of an operation method of a memory system provided by an embodiment of the present disclosure. Figure 6 and Figure 8 As shown, it is described in detail how to implement the processes of checking whether the logical address is saved, determining the level of the drift amount and sending the read command to be executed in parallel.

[0220] like Figure 6 and Figure 8 As shown, in some embodiments, the processes of checking whether the logical address is saved, determining the level of the drift amount, and sending the read command are all performed in parallel; the memory controller 120 includes: a first processor 121, a second processor 122, a third processor 123, a first on-chip memory 124, and a second on-chip memory 125; wherein,

[0221] The first processor 121 is configured to: check whether the logical address corresponding to the host read command is stored in the write buffer, and submit the logical address not stored in the write buffer to the first submission queue;

[0222] The first on-chip memory 124 is configured to: store a first submission queue;

[0223] The second processor 122 is configured to: determine the level of drift corresponding to each logical address in the first submission queue, and submit the level of drift corresponding to each logical address to the second submission queue;

[0224] The second on-chip memory 125 is configured to: store a second submission queue;

[0225] The third processor 123 is configured to: send a read command to the non-volatile storage device 110 according to the level of the drift amount corresponding to each logical address in the second submission queue;

[0226] At the same time, the first submission queue, the second submission queue and the corresponding logical addresses in the sending read command are different.

[0227] like Figure 8 As shown, in step S301, the host dispatches a task, that is, the host sends a read command. The execution subject of step S301 is the host.

[0228] In step S302, it is checked whether the logical address corresponding to the host read command is stored in the write buffer. If the result of executing step S302 is "no", that is, the logical address corresponding to the host read command is not stored in the write buffer, then execute step S303; if the result of executing step S302 is "yes", that is, the logical address corresponding to the host read command is stored in the write buffer, then execute step S304.

[0229] In other words, in step S302, it is checked whether the logical address corresponding to the host read command and the logical address in the write buffer overlap (Read LBA overlap check). If the logical address corresponding to the host read command and the logical address in the write buffer do not overlap (Writer Buffer Miss), that is, the logical address corresponding to the host read command is not stored in the write buffer, then step S303 is executed; if the logical address corresponding to the host read command and the logical address in the write buffer overlap (Writer Buffer Hit), that is, the logical address corresponding to the host read command is stored in the write buffer, then step S304 is executed.

[0230] In the embodiment of the present disclosure, the subject that executes step S302 is the first processor 121 (ie, Core 1), and the first processor 121 is located in the memory controller 120.

[0231] In step S303, the logical addresses not stored in the write buffer are submitted to the first submission queue. The first submission queue is stored in the first on-chip memory (OCM) 124, and the first on-chip memory 124 is located in the memory controller 120. In other words, the first submission queue can also be called a filtered submission queue, that is, the logical addresses not stored in the write buffer are filtered out to form a filtered submission queue.

[0232] In the embodiment of the present disclosure, the first processor 121 specifically returns data corresponding to the logical address when the logical address corresponding to the read command is stored in the write buffer; and the first on-chip memory 124 stores the returned data.

[0233] In step S304 , for the logical address stored in the write buffer, the data corresponding to the logical address can be returned to complete the reading process of the data corresponding to the logical address. The data corresponding to the logical address stored in the write buffer is stored in the first on-chip memory 124 .

[0234] In step S305, the drift level corresponding to each logical address in the first submission queue is determined, that is, the drift level corresponding to each logical address in the first submission queue is predicted (Predicate Drift Level), and the drift level corresponding to each logical address is submitted to the second submission queue.

[0235] In the embodiment of the present disclosure, the subject that executes step S305 is the second processor 122 (ie, Core 2), and the second processor 122 is located in the memory controller 120.

[0236] Please refer to the above for reference Figure 1 , Figure 2A , Figure 2B , Figure 3A , Figure 3B , Figure 4A , Figure 4B , Figure 5A , Figure 5B Referring to the relevant contents in the text, the following will describe in detail how to determine the level of drift corresponding to each logical address in the first submission queue.

[0237] In some embodiments, before the second processor 122 determines the level of drift corresponding to each logical address in the first submission queue and submits the level of drift corresponding to each logical address to the second submission queue, the operation method further includes:

[0238] The second processor 122 determines the level of drift corresponding to each logical address according to the heat of the data corresponding to each logical address in the first submission queue; the heat of the data represents the length of the average time difference between writing and reading the data.

[0239] Here, the level of drift corresponding to each logical address is determined according to the heat of the data corresponding to each logical address in the first submission queue, that is, according to the length of the time difference between writing and reading the data corresponding to each logical address in the first submission queue. Among them, if the time difference between writing and reading the data corresponding to the logical address is shorter, it means that the heat of the data corresponding to the logical address is higher; accordingly, the drift of the threshold voltage of the storage unit used to store these data with higher heat is smaller. In other words, if the time difference between writing and reading the data corresponding to the logical address is longer, it means that the heat of the data corresponding to the logical address is lower; accordingly, the drift of the threshold voltage of the storage unit used to store these data with lower heat is larger.

[0240] In the disclosed embodiment, based on the heat of the data corresponding to each logical address in the first submission queue and taking into account the different drift amounts of the threshold voltages of the storage units used to store the data, different read voltages are applied when performing a read command operation on the non-volatile storage device, thereby ensuring the correctness of the read command operation and further improving the reliability of the memory system.

[0241] In some embodiments, the second processor 122 determines the level of drift corresponding to each logical address according to the heat of the data corresponding to each logical address in the first submission queue, including:

[0242] When the data corresponding to the logical address is hot data, the second processor 122 determines that the drift amount corresponding to the logical address is a first-level drift amount; when the data corresponding to the logical address is warm data, the second processor 122 determines that the drift amount corresponding to the logical address is a second-level drift amount; when the data corresponding to the logical address is cold data, the second processor 122 determines that the drift amount corresponding to the logical address is a third-level drift amount; wherein the first-level drift amount is smaller than the second-level drift amount, and the second-level drift amount is smaller than the third-level drift amount.

[0243] As mentioned above, the drift of the threshold voltage of the storage unit for storing hot data is the smallest, the drift of the threshold voltage of the storage unit for storing warm data is the second largest, and the drift of the threshold of the storage unit for storing cold data is the largest. In this way, according to the different heats of the data stored in the storage unit, it can be determined that the drift of the threshold voltage of the storage unit is different. Subsequently, according to the different drift of the threshold voltage of the storage unit, it can be determined that different read voltages are applied to these storage units when performing read command operations.

[0244] In some embodiments, the above operation method further includes:

[0245] The second processor 122 determines the order of the logical addresses in the second submission queue according to the heat of the data corresponding to each logical address in the first submission queue; wherein, the higher the heat of the data corresponding to the logical address, the higher the priority of the order of the logical addresses in the second submission queue.

[0246] Here, multiple logical addresses in the first submission queue are in an unordered state, that is, the order of hot data, warm data, and cold data corresponding to the logical addresses in the first submission queue is irregular. In other words, if it is determined that the logical address is not saved in the write buffer, the logical address can be submitted to the first submission queue, then the order of multiple logical addresses in the first submission queue corresponds to the moment when it is determined that the logical address is not saved in the write buffer. Among them, it is determined that the heat of the data corresponding to the multiple logical addresses not saved in the write buffer is randomly distributed. Without considering the order of hot data, warm data, and cold data corresponding to the logical addresses in the first submission queue, the level of the drift amount corresponding to each logical address in the first submission queue is determined in turn to obtain the second submission queue; and the read command operation is performed on each logical address in the second submission queue in turn.

[0247] It should be noted that the time difference between writing and reading the hot data is very short (i.e., 1 microsecond to 2 milliseconds). If the hot data corresponding to the logical address in the first submission queue is ranked at the back (i.e., the priority of operating the hot data corresponding to the logical address is low), then wait until the level of the drift amount corresponding to the hot data corresponding to the logical address in the first submission queue is determined, and further wait until the read command operation is performed on the hot data corresponding to the logical address. In other words, the time to operate the hot data corresponding to the logical address may exceed the timeliness of the hot data. Therefore, the order of the logical addresses in the second submission queue can be determined according to the heat of the data corresponding to each logical address in the first submission queue; the higher the heat of the data corresponding to the logical address in the first submission queue, the higher the ranking of the logical address in the second submission queue, and the higher the priority of the read command operation on the logical address. In this way, the process of performing the read command operation on the hot data can be accelerated to meet the timeliness requirements of the hot data.

[0248] In step S306, the level of drift corresponding to each logical address is submitted to the second submission queue. The second submission queue is stored in the second on-chip memory 125, and the second on-chip memory 125 is located in the memory controller 120. In other words, the second submission queue can also be called a predicted submission queue, that is, the level of drift corresponding to each logical address is predicted to form a predicted submission queue.

[0249] In step S307, according to the level of drift corresponding to each logical address in the second submission queue, a read command is sent to the non-volatile storage device 110. If the read is successful, step S308 is executed; if the read fails, step S309 is executed.

[0250] Specifically, the third processor 123 sends a read command to the non-volatile storage device 110 according to the level of the drift amount corresponding to each logical address in the second submission queue. The third processor 123 is specifically configured as follows:

[0251] Determining a read voltage for performing a read command operation on the non-volatile memory device 110 according to a level of a drift amount corresponding to each logical address in the second submission queue;

[0252] A read command is sent to the nonvolatile memory device 110 according to a read voltage for performing a read command operation on the nonvolatile memory device 110 .

[0253] In the embodiment of the present disclosure, the subject that executes step S307 is the third processor 123, and the third processor 123 is located in the memory controller 120. In other words, the third processor 123 can also be called a storage medium controller (MediaController), which is located in the memory controller 120, and is coupled to the non-volatile storage device 110 and used to control the non-volatile storage device 110.

[0254] In some embodiments, after the third processor 123 sends a read command to the non-volatile storage device 110 according to the level of the drift amount corresponding to each logical address in the second submission queue, the third processor is specifically configured as follows:

[0255] The third processor 123 is specifically configured to: submit the logical address of the read command to the read completion queue when the non-volatile storage device 110 is read successfully; and submit the logical address of the read command to the write completion queue when the non-volatile storage device 110 is read unsuccessfully;

[0256] The second on-chip memory 125 is configured to: store a read completion queue (Complete Queue of Read) and a write completion queue (Complete Queue of Write);

[0257] The second processor 122 is configured to re-determine the level of the drift amount corresponding to each logical address in the write completion queue.

[0258] In step S308 , when the non-volatile storage device 110 is read successfully, the logical address corresponding to the read command is submitted to the read completion queue, wherein the read completion queue is stored in the second on-chip memory 125 , and the second on-chip memory 125 is located in the memory controller 120 .

[0259] In step S309, when the non-volatile storage device 110 fails to read, the logical address corresponding to the read command is submitted to the write completion queue, and step S305 is returned to each logical address in the write completion queue to re-determine the level of drift corresponding to each logical address in the write completion queue. The write completion queue is stored in the second on-chip memory 125, and the second on-chip memory 125 is located in the memory controller 120.

[0260] Exemplarily, the second processor 122 can determine whether the data corresponding to each logical address in the first submission queue is warm data or cold data by querying the Bloom filter. However, the accuracy of querying the Bloom filter is not 100%, that is, there may be a false positive rate (that is, a false positive). In other words, the second processor 122 determines that the data corresponding to the logical address in the first submission queue is warm data (or cold data) by querying the Bloom filter. In fact, the data corresponding to the logical address is cold data (or warm data). Further, according to the heat of the data corresponding to the logical address, the level of the drift amount corresponding to the logical address is determined, and then the read voltage is determined according to the level of the drift amount corresponding to the logical address. Since the result of determining the heat of the data corresponding to the logical address in the first submission queue is wrong, further, according to the heat of the data corresponding to the logical address, the result of determining the level of the drift amount corresponding to the logical address is also wrong, and then according to the level of the drift amount corresponding to the logical address, the result of determining the read voltage is also wrong. Using an incorrect read voltage to perform a read command operation may result in a read failure. Therefore, it is necessary to re-determine the level of the drift amount corresponding to the logical address corresponding to these failed read command operations.

[0261] In the disclosed embodiments, the algorithm design of the memory controller 120 can be optimized without increasing the cost, that is, without adding hardware, and the read voltage for performing a read command operation on the non-volatile storage device 110 can be determined according to the drift amount corresponding to the logical address, thereby ensuring the correctness of the read command operation and further improving the reliability of the memory system; and by executing in parallel the processes of checking whether the logical address is stored in the write buffer, determining the level of the drift amount corresponding to the logical address not stored in the write buffer, and sending the read command, the read delay can be optimized and the read efficiency can be improved.

[0262] refer to Fig. 9 , Fig. 9 A schematic diagram of logical addresses corresponding to a first processor, a second processor, and a third processor within an nth time interval of an operating method of a memory system provided by an embodiment of the present disclosure.

[0263] Fig. 9 Step S201, step S202 and step S203 are illustrated, and different steps are separated by dashed lines. The first processor is used to execute step S201, the second processor is used to execute step S202, and the third processor is used to execute step S203.

[0264] Specifically, the first processor is used to execute step S201, check whether the logical address corresponding to the host read command is saved in the write buffer, and submit the logical address not saved in the write buffer to the first submission queue. That is to say, each logical address in the first submission queue is not saved in the write buffer, and the first processor filters out the logical addresses that are not saved in the write buffer from the logical addresses corresponding to the host read command. Exemplarily, the first processor can check a total of 20 logical addresses in each time interval, and submit the logical addresses that are not saved in the write buffer among the 20 logical addresses to the first submission queue.

[0265] It should be noted that the multiple logical addresses in the first submission queue are in a disordered state, that is, the order of the hot data, warm data and cold data corresponding to the logical addresses in the first submission queue is irregular.

[0266] Specifically, the second processor is used to execute step S202, determine the level of drift corresponding to each logical address in the first submission queue, and submit the level of drift corresponding to each logical address to the second submission queue. Exemplarily, the second processor can determine (or calculate) the level of drift corresponding to a total of 5 logical addresses in each time interval. That is, in the time interval of the same length, the number of logical addresses processed by the first processor and the second processor can be different.

[0267] Specifically, the third processor is used to execute step S203, and send a read command to the non-volatile storage device 110 according to the level of the drift amount corresponding to each logical address in the second submission queue.

[0268] In the disclosed embodiment, for a fixed logical address, step S201, step S202 and step S203 are sequentially executed in a pipeline manner. However, for multiple logical addresses, in the nth time interval, the first processor performs the n+1th round of checking whether the logical address is stored in the write buffer; the second processor performs the nth round of determining the level of drift corresponding to the logical address in the first submission queue; the third processor performs the n-1th round of sending a read command corresponding to the level of drift of the logical address in the second submission queue; wherein n is a positive integer. In other words, step S201, step S202 and step S203 are executed in parallel, and at the same time, the logical addresses processed by step S201, step S202 and step S203 are different.

[0269] It should be noted that for each step in step S201, step S202 and step S203, there are rounds n-1, n and n+1 with continuous time intervals, and the processing time of each round corresponds to a time interval. Here, the specific length of the time interval can be selected according to the actual situation, and it is necessary to consider the setting of the time period corresponding to the heat, and the parameters of each processor in the memory controller. Exemplarily, the length of the time interval can be K*160ns, where K can be obtained according to empirical values.

[0270] It should be noted that the number of rounds processed by two adjacent steps in the same time interval differs by at least one round; the difference in the number of rounds processed by two adjacent steps in the same time interval can be adjusted according to actual needs.

[0271] In some examples, the number of rounds processed by two adjacent steps in the same time interval differs by one round, such as Fig. 9 As shown, at the nth time interval, step S201 is processing the n+1th round, step S202 is processing the nth round, and step S203 is processing the n-1th round. The logical address corresponding to the received read command is processed in the n-1th time interval, the nth time interval, the n+1th time interval, the n+2th time interval, and so on. For example, the logical address corresponding to the received read command triggered by the n-1th time interval is checked by the first processor after the nth round in the n-1th time interval ( Fig. 9 After the first processor completes the nth round of checking, the second processor completes the nth round of calculation ( Fig. 9 After the second processor completes the nth round of calculation processing, the third processor will complete the nth round of reading ( Fig. 9 Read n) processing shown.

[0272] That is to say, the logical address corresponding to the received read command triggered by the n-1th time interval will complete the inspection, calculation, and reading processing in the three adjacent trigger time intervals (n-1th time interval, nth time interval, and n+1th time interval). No redundant time is set between two adjacent processing steps. For example, the data checked by the first processor will be immediately calculated and processed in the second processor. There is no redundant time between the inspection and calculation, which can improve the efficiency of data processing.

[0273] In other examples, the number of rounds processed by two adjacent steps in the same time interval differs by 2 rounds ( Fig. 9 (not shown), at the n-1th time interval, step S201 is processing the nth round, and step S202 is processing the n-2th round ( Fig. 9 (not shown), step S203 processes the n-4th round ( Fig. 9 not shown).

[0274] The logical address corresponding to the received read command triggered at the n-1th time interval will be displayed at three intervals of triggering time intervals (n-1th time interval, n+1th time interval, n+3th time interval ( Fig. 9 (not shown)) completes the checking, calculating, and reading processes in sequence. A redundant time interval is set between two adjacent processing steps. For example, the data checked by the first processor in the n-1th time interval will not be immediately calculated and processed in the second processor. After waiting for a time interval (nth time interval), the calculation process is performed in the n+1th time interval. A redundant time interval is set between the checking and the calculation. The memory controller can use a time interval (nth time interval) to perform other processing (such as ECC checking and other processing), which can improve the reliability of data processing.

[0275] It can be understood that, for a fixed logical address, the execution of steps S201, S202 and S203 is performed serially, but for multiple logical addresses, the execution of steps S201, S202 and S203 is performed in parallel.

[0276] In the disclosed embodiment, the memory system may include a storage class memory (SCM); the non-volatile storage device may include a phase change memory.

[0277] In the existing storage hierarchy, there is a gap in storage speed and storage capacity between dynamic random access memory (DRAM) and non-volatile storage devices (such as NAND flash memory), which limits the further improvement of computer computing power. To this end, a storage-level memory with storage speed and storage capacity between dynamic random access memory and non-volatile storage devices is proposed. Various properties of dynamic random access memory, phase change memory and NAND flash memory include whether it is a non-volatile storage device, storage density, erasure requirements, software support, number of erasable times, read delay and write delay. Among them, the storage speed (read delay and write delay) and storage capacity (storage density) of PCM enable it to be well positioned between dynamic random access memory and non-volatile storage devices, acting as an intermediate memory.

[0278] At present, there are many types of storage media for storage-class memory, the more mainstream ones include phase change memory, resistive random access memory, magnetic random access memory and carbon nanotube random access memory.

[0279] The basic principle of phase change memory is: an electric pulse with a large signal value and a short duration (i.e., high and narrow) is applied to the phase change memory cell. Under the action of Joule heat, a part of the initial crystalline phase change memory layer melts because the temperature is higher than the melting temperature. After the electric pulse is interrupted, the melted part cools rapidly and stays in the amorphous state with the lowest atomic order, thus completing the conversion from low resistance to high resistance. This is the erase (Reset) process. The melted part in this process is called the programming volume. If an electric pulse with a small signal value and a long duration (i.e., low and wide) is applied, so that the temperature in the programming volume reaches above the crystallization temperature and below the melting temperature, and lasts for a sufficient time to crystallize the amorphous structure in the programming volume, a low resistance state is obtained, which is the write (Set) process. The reading process of phase change memory is to apply a low and narrow electric pulse to the phase change memory cell, so that the phase change memory layer is below the crystallization temperature, and the resistance value of the phase change memory cell is measured.

[0280] Phase change memory materials are used as storage media for phase change memory, and their performance directly affects the quality of device characteristics. Usually, the characteristics of phase change memory are mainly measured by indicators such as write operation speed, data retention and switching ratio. Therefore, the performance research of phase change memory materials includes the research of parameters such as crystallization rate, crystallization temperature, amorphous structure stability, thermal stability and resistance window (i.e., the ratio of resistivity of amorphous state to that of crystalline state).

[0281] For phase change memory, among the write operation, erase operation and read operation, the write operation time is generally longer, which becomes the key factor restricting the high-speed operation of phase change memory. The write operation time is related to the crystallization rate of the phase change memory material. The faster the crystallization rate, the shorter the write operation time, and the faster the operation speed of the phase change memory.

[0282] The data retention of phase change memory is determined by the amorphous structure stability and thermal stability of the phase change memory material. The better the amorphous structure stability and thermal stability, the longer the data retention. To obtain better amorphous structure stability and thermal stability, the phase change memory material may be required to have a higher crystallization temperature.

[0283] The switching ratio of phase change memory is determined by the resistance window of the phase change memory material. The resistance window refers to the resistivity difference between the amorphous state and the crystalline state. The resistivity difference between the amorphous state and the crystalline state is large, and the resistance window is large to ensure a large switching ratio, so that data can be read accurately and quickly during the read operation.

[0284] In the embodiment of the present disclosure, the first on-chip memory 124 and the second on-chip memory 125 both include dynamic random access memory or static random access memory.

[0285] In the disclosed embodiment, the first on-chip memory 124 is used to store the intermediate results of step S201, including the first submission queue and the data corresponding to the logical address stored in the write buffer; the second on-chip memory 125 is used to store the intermediate results of step S202, including the second submission queue, the write completion queue and the read completion queue. By executing step S201, step S202 and step S203 in parallel, the efficiency of reading the non-volatile storage device 110 can be accelerated, and the storage capacity of the first on-chip memory 124 and the second on-chip memory 125 used to store these intermediate results can be minimized.

[0286] refer to Fig.10 , Fig.10 A block diagram of a memory provided by an embodiment of the present disclosure. Fig.10 As shown, according to a second aspect of an embodiment of the present disclosure, a memory controller is provided, wherein the memory controller 120 is connected to at least one non-volatile storage device ( Fig.10 The memory controller 120 is configured as follows:

[0287] The heat of the data corresponding to the logical address of the received read command is determined by using the first type table and the second type table; the heat of the data represents the length of the average time difference between writing and reading the data; the first type table includes at least one, and at least one of the first type tables is used to store the data of the logical address mapping of each first time interval within a first preset time length after writing; the second type table includes multiple, and multiple second type tables are used to alternately store the data of the logical address mapping of each second time interval within a second preset time length after writing; the first preset time length is less than the second preset time length, and the first time interval is less than the second time interval;

[0288] The level of the drift amount corresponding to the logical address is determined according to the heat of the data corresponding to the logical address; different levels of drift amounts correspond to different read voltages sent to the non-volatile storage device.

[0289] Fig.10 The memory controller 120 is shown to include a first processor 121, a second processor 122, a third processor 123, a first on-chip memory 124, and a second on-chip memory 125. The first processor 121 checks whether the logical address corresponding to the host read command is stored in the write buffer, and submits the logical address not stored in the write buffer to the first submission queue; the first on-chip memory 124 stores the first submission queue; the second processor 122 determines the level of drift corresponding to each logical address in the first submission queue, and submits the level of drift corresponding to each logical address to the second submission queue; the second on-chip memory 125 stores the second submission queue; the third processor 123 sends a read command to the non-volatile storage device 110 according to the level of drift corresponding to each logical address in the second submission queue; at the same time, the first submission queue, the second submission queue, and the corresponding logical addresses in the sent read command are different.

[0290] Refer to the above Figure 1 According to a third aspect of an embodiment of the present disclosure, a method for operating a memory system is provided. The memory system 100 includes: at least one non-volatile memory device 110 and a memory controller 120 coupled to the non-volatile memory device 110; the operating method includes:

[0291] The heat of the data corresponding to the logical address of the received read command is determined by using the first type table and the second type table; the heat of the data represents the length of the average time difference between writing and reading the data; the first type table includes at least one, at least one first type table is used to store the data of the logical address mapping of each first time interval within a first preset time length after writing; the second type table includes multiple, multiple second type tables are used to alternately store the data of the logical address mapping of each second time interval within a second preset time length after writing; the first preset time length is less than the second preset time length, and the first time interval is less than the second time interval;

[0292] The level of the drift amount corresponding to the logical address is determined according to the heat of the data corresponding to the logical address; different levels of drift amounts correspond to different read voltages sent to the non-volatile memory device 110 .

[0293] Refer to the above Figure 2A and Figure 2B ,In some embodiments, the method further includes: forming a first category table and a second category table;

[0294] Form the first category table and the second category table, including:

[0295] The logical address of each first time interval within the first preset time length after writing is stored in the first type table through the data mapped by the mapping function in the hash table;

[0296] The logical address of each second time interval within the second preset time length after writing is stored in the second type table through the data mapped by the mapping function in the Bloom filter, the Cuckoo filter, the XOR filter or the Vacuum filter.

[0297] Refer to the above Figure 3A and Figure 3B In some embodiments, the heat of data includes: hot data, warm data, and cold data; the average time difference between writing and reading corresponding to hot data, warm data, and cold data increases in sequence;

[0298] Determining the heat of data corresponding to the logical address of the received read command by using the first type table and the second type table includes:

[0299] When the data group mapped by the logical address is in the first type table, determining that the data corresponding to the logical address is hot data or warm data;

[0300] When the data group mapped by the logical address is not in the first type table but in the second type table, determining that the data corresponding to the logical address is warm data or cold data;

[0301] When the data group mapped to the logical address is neither in the first type table nor in the second type table, it is determined that the data corresponding to the logical address is cold data.

[0302] Refer to the above Figure 4A and Figure 4B , in some embodiments, the number of first-type tables includes two, and the number of second-type tables includes two;

[0303] Determining the heat of data corresponding to the logical address of the received read command by using the first type table and the second type table includes:

[0304] When the data mapped by the logical address is in the first type table of the previous first time interval, determining that the data corresponding to the logical address is hot data;

[0305] When the data mapped by the logical address is not in the first category table of the previous first time interval, and is in the first category table of the current first time interval, determining that the data corresponding to the logical address is hot data or warm data;

[0306] When the data mapped by the logical address is not in the first category table of the current first time interval and the first category table of the previous first time interval, and is in the second category table of the previous second time interval, determining that the data corresponding to the logical address is warm data;

[0307] When the data mapped by the logical address is not in the first category table of the current first time interval, the first category of the previous first time interval, and the second category table of the previous second time interval, and is in the second category table of the current second time interval, determining that the data corresponding to the logical address is warm data or cold data;

[0308] When the data mapped by the logical address is not in the first category table of the current first time interval and the first category table of the previous first time interval, and is not in the second category table of the current second time interval and the second category table of the previous second time interval, the data corresponding to the logical address is determined to be cold data.

[0309] Refer to the above Figure 5A and Figure 5B , in some embodiments, the number of first-type tables includes two, and the number of second-type tables includes two;

[0310] Determining the heat of data corresponding to the logical address of the received read command by using the first type table and the second type table includes:

[0311] When the array data mapped by the logical address is in the first category table of the current first time interval or the first category table of the previous first time interval, determining that the data corresponding to the logical address is hot data;

[0312] When the array data mapped to the logical address is not in the first category table of the current first time interval and the first category table of the previous first time interval, and is in the second category table of the current second time interval or the second category table of the previous second time interval, determining that the data corresponding to the logical address is warm data;

[0313] When the array data mapped by the logical address is not in the first category table of the current first time interval and the first category table of the previous first time interval, and is not in the second category table of the current second time interval and the second category table of the previous second time interval, it is determined that the data corresponding to the logical address is cold data.

[0314] In some embodiments, determining the level of the drift amount corresponding to the logical address according to the heat of the data corresponding to the logical address includes:

[0315] When the data corresponding to the logical address is hot data, determining the drift amount corresponding to the logical address as the first-level drift amount;

[0316] When the data corresponding to the logical address is warm data, determining the drift amount corresponding to the logical address as the second-level drift amount;

[0317] When the data corresponding to the logical address is cold data, determining the drift amount corresponding to the logical address as the third level drift amount;

[0318] Among them, the first-level drift amount is smaller than the second-level drift amount, and the second-level drift amount is smaller than the third-level drift amount.

[0319] In some embodiments, the method further comprises:

[0320] When the data corresponding to the logical address is determined to be warm data using the first and second tables, and a read failure occurs when reading the data of the storage unit corresponding to the logical address using the read voltage corresponding to the warm data, the data of the storage unit corresponding to the logical address is re-read using the read voltage corresponding to the cold data.

[0321] Refer to the above Figure 7 In some embodiments, the method further comprises:

[0322] Check whether the logical address corresponding to the received read command is stored in the write buffer;

[0323] When the logical address is not stored in the write buffer, determining a level of a drift amount corresponding to the logical address;

[0324] According to the level of drift corresponding to the logical address, a read command is sent to the non-volatile storage device 110; wherein the processes of checking whether the logical address is saved, determining the level of drift and sending the read command are performed in parallel.

[0325] refer to Fig.11 , Fig.11 A block diagram of a readable storage medium provided by an embodiment of the present disclosure. Fig.11As shown, the embodiment of the present disclosure provides a readable storage medium, the readable storage medium 200 stores a computer program 210, and when the computer program 210 is executed, the operation method of the memory system in the above technical solution can be implemented. The operation method includes: checking whether the logical address corresponding to the host read command is saved in the write buffer; determining the level of the drift amount corresponding to the logical address not saved in the write buffer; different levels of drift amount correspond to different read voltages; according to the level of drift amount corresponding to the logical address, sending a read command to the non-volatile storage device 110; wherein, at least two of the processing processes of checking whether the logical address is saved, determining the level of drift amount and sending the read command are executed in parallel.

[0326] refer to Fig.12 , Fig.12 A block diagram of a system provided by an embodiment of the present disclosure. Fig.12 As shown, system 300 may be a mobile phone, a desktop computer, a laptop computer, a tablet computer, a vehicle computer, or any other suitable electronic device having a non-volatile storage device 310 therein.

[0327] like Fig.12 As shown, the system 300 may include a host 330 and a memory system, and the memory system may include a memory controller 320 and at least one non-volatile memory device 310. The host 330 may be a processor (e.g., a central processing unit (CPU)) or a system on chip (SoC) (e.g., an application processor (AP)) of an electronic device. The host 330 may be configured to send data to the non-volatile memory device 310 or receive data from the non-volatile memory device 310. Fig.12 It is shown that the memory controller 320 is connected to four non-volatile storage devices 310. In fact, the embodiment of the present disclosure does not specifically limit the number of non-volatile storage devices 310 connected to the memory controller 320. The number of non-volatile storage devices 310 connected to the memory controller 320 may be less than four (for example, one); or, the number of non-volatile storage devices 310 connected to the memory controller 320 may be greater than four (for example, five).

[0328] In some embodiments, the memory controller 320 may be coupled to the host 330 and the nonvolatile memory device 310, respectively, and configured to control the nonvolatile memory device 310. The memory controller 320 may manage data stored in the nonvolatile memory device 310 and communicate with the host 330.

[0329] In a specific example, the memory system may include at least one nonvolatile memory device 310 and a memory controller 320 coupled to the nonvolatile memory device 310; wherein the memory system may include a storage-level memory; and the nonvolatile memory device 310 may include a phase change memory.

[0330] Still refer to Fig.12 As shown, the memory controller 320 includes a first communication interface 321, a second communication interface 322, a processing unit (Processing Unit) 323, a read-only memory (ROM) 324, a static random access memory 325 and a storage medium controller 326. The processing unit 323 and the host 330 are connected to each other through the first communication interface 321 and the second communication interface 322. The processing unit 323 can also be connected to the storage medium controller 326 to control the storage medium controller 326, and the storage medium controller 326 is connected to the non-volatile storage device 310 to control the non-volatile storage device 310. The processing unit 323 can also be connected to the read-only memory 324 and the static random access memory 325. The processing unit 323 can obtain data from the read-only memory 324, and the processing unit 323 can store part of the temporary data in the static random access memory 325.

[0331] In some embodiments, the first communication interface 321 may be a Peripheral Component Interconnect Express (PCIE), that is, the first communication interface may be an interface set according to a high-speed serial computer expansion bus standard; the second communication interface 322 may be a Compute Express Link (CXL).

[0332] In a specific example, the non-volatile storage device may include a phase change memory. The read latency at the system level affects the actual throughput of the storage-class memory. The threshold voltage of the phase change material of the phase change memory in the storage-class memory changes over time. Only by predicting the drift amount corresponding to the logical address of the data according to the heat of the data and adjusting the read voltage according to the drift amount corresponding to the logical address can the initial bit error rate (RBER) be guaranteed.

[0333] When the read delay of the storage medium is very small (~160 nanoseconds), the drift amount corresponding to each logical address read is predicted, and the read voltage is adjusted according to the drift amount corresponding to the logical address. On the one hand, the drift time range of the threshold voltage is large, and it is difficult to track all written logical addresses. Different drift speeds will lead to loss of read margin and uncorrectable errors (Uncorrectable Error Correction Code, UECC). On the other hand, the time difference between writing and reading hot data is short. By giving priority to reading the logical address corresponding to the hot data, the timeliness of the hot data can be avoided. Therefore, it is very important to predict the drift amount of the storage medium (i.e., phase change material) in the storage-level memory and ensure the reliability and correctness of the data stored in the storage medium.

[0334] In a specific example, querying the Bloom filter and reading data from the storage medium are performed in parallel in a pipeline manner, thereby avoiding read delay. In this solution, attention is paid to the read flow efficiency between the core processor (i.e., the first processor and the second processor), the storage medium controller (i.e., the third processor) and the storage medium (i.e., the non-volatile storage device). In this way, the promised initial bit error rate can be guaranteed without affecting the overall read delay.

[0335] In a specific example, the read operation includes the following three steps:

[0336] Step 1: Use the core processor (i.e., Core1) to check whether the logical address to be read overlaps with the logical address in the write buffer; pack the logical addresses not stored in the write buffer to obtain a first submission queue; the core processor here may correspond to the first processor described above;

[0337] Step 2: using the core processor (i.e., Core2) to predict the drift amount of the logical address not stored in the write buffer; wherein the drift amount corresponding to the logical address can be predicted according to the heat of the data corresponding to the logical address; the core processor here can correspond to the second processor as described above;

[0338] Step three: Use the storage medium controller to send a read command to the non-volatile storage device. The logical address corresponding to the read command has been predicted to drift in step two. The storage medium controller here may correspond to the third processor described above.

[0339] The above three steps can be executed in a pipeline manner to improve the reading efficiency. The three steps run in parallel at the same time, and the intermediate results obtained in each step can be stored in the on-chip memory.

[0340] The disclosed embodiments provide a memory system and an operation method thereof, a memory controller and a readable storage medium. The memory system includes: at least one non-volatile storage device and a memory controller coupled to the non-volatile storage device; the memory controller is configured to: determine whether the data mapped by the logical address of the received read command belongs to the first type table or the second type table, and confirm the heat of the data corresponding to the logical address of the received read command according to the judgment result; determine the level of the drift amount corresponding to the logical address according to the heat of the data corresponding to the logical address; the level of the drift amount corresponding to the logical address of the received read command is different, and the corresponding read voltage stored in the non-volatile storage device is different, that is, the level of the logical address drift amount can be determined in the disclosed embodiments, and the read voltage is sent to the non-volatile storage device in a targeted manner, so as to ensure the correctness of the read command operation, thereby improving the reliability of the memory system. In addition, the alternating use of multiple second-type tables is more flexible than the use of a single table and can save more space.

[0341] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present disclosure. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does 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 should be understood that in the various embodiments of the present disclosure, the size of the serial number of the above-mentioned processes does not mean the order of execution. 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 embodiments of the present disclosure. The serial numbers of the embodiments of the present disclosure are for description only and do not represent the advantages and disadvantages of the embodiments.

[0342] The above description is only a preferred embodiment of the present disclosure, and does not limit the patent scope of the present disclosure. All equivalent structural changes made by using the contents of the present disclosure and the drawings under the inventive concept of the present disclosure, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present disclosure.

Claims

1. A memory system, characterized in that: The memory system comprises: at least one non-volatile memory device and a memory controller coupled to the non-volatile memory device; the memory controller is configured to: The heat of the data corresponding to the logical address of the received read command is determined by using the first type table and the second type table; the heat of the data represents the length of the average time difference between writing and reading the data; the first type table includes at least one, and at least one of the first type tables is used to store the data of the logical address mapping of each first time interval within a first preset time length after writing; the second type table includes multiple, and multiple second type tables are used to alternately store the data of the logical address mapping of each second time interval within a second preset time length after writing; the first preset time length is less than the second preset time length, and the first time interval is less than the second time interval; The level of the drift amount corresponding to the logical address is determined according to the heat of the data corresponding to the logical address; different levels of drift amounts correspond to different read voltages sent to the non-volatile storage device.

2. The memory system according to claim 1, wherein: The first type of table is obtained through a hash table; the second type of table is obtained through a Bloom filter, a Cuckoo filter, an XOR filter or a vacuum filter.

3. The memory system according to claim 1, wherein: The heat of the data includes: hot data, warm data and cold data; the average time difference between writing and reading the hot data, the warm data and the cold data becomes longer in sequence; the memory controller is specifically configured as follows: When the data mapped by the logical address is in the first class table, determining that the data corresponding to the logical address is hot data or warm data; When the data mapped by the logical address is not in the first category table but in the second category table, determining that the data corresponding to the logical address is warm data or cold data; When the data mapped to the logical address is not in the first category table and is not in the second category table, it is determined that the data corresponding to the logical address is cold data.

4. The memory system according to claim 3, characterized in that: The number of tables of the first category includes two, and the number of tables of the second category includes two; The memory controller is specifically configured as follows: When the data mapped by the logical address is in the first category table of the previous first time interval, determining that the data corresponding to the logical address is hot data; When the data mapped by the logical address is not in the first category table of the previous first time interval, but is in the first category table of the current first time interval, determining that the data corresponding to the logical address is hot data or warm data; When the data mapped by the logical address is not in the first category table of the current first time interval and the first category table of the previous first time interval, and is in the second category table of the previous second time interval, determining that the data corresponding to the logical address is warm data; When the data mapped by the logical address is not in the first category table of the current first time interval, the first category table of the previous first time interval, and the second category table of the previous second time interval, and is in the second category table of the current second time interval, determining that the data corresponding to the logical address is warm data or cold data; When the data mapped by the logical address is not in the first category table of the current first time interval and the first category table of the previous first time interval, and is not in the second category table of the current second time interval and the second category table of the previous second time interval, it is determined that the data corresponding to the logical address is cold data.

5. The memory system according to claim 3, characterized in that: The number of tables of the first category includes two, and the number of tables of the second category includes two; The memory controller is specifically configured as follows: When the data mapped by the logical address is in the first category table of the current first time interval or the first category table of the previous first time interval, determining that the data corresponding to the logical address is hot data; When the data mapped by the logical address is not in the first category table of the current first time interval and the first category table of the previous first time interval, and is in the second category table of the current second time interval or the second category table of the previous second time interval, determining that the data corresponding to the logical address is warm data; When the data mapped by the logical address is not in the first category table of the current first time interval and the first category table of the previous first time interval, and is not in the second category table of the current second time interval and the second category table of the previous second time interval, it is determined that the data corresponding to the logical address is cold data.

6. The memory system according to claim 3, characterized in that: The memory controller is further configured to: When the data corresponding to the logical address is the hot data, determining the drift amount corresponding to the logical address as the first-level drift amount; When the data corresponding to the logical address is the warm data, determining that the drift amount corresponding to the logical address is a second-level drift amount; When the data corresponding to the logical address is the cold data, determining that the drift amount corresponding to the logical address is a third-level drift amount; The first-level drift is smaller than the second-level drift, and the second-level drift is smaller than the third-level drift.

7. The memory system according to claim 3, characterized in that: The memory controller is specifically configured as follows: When the data corresponding to the logical address is determined to be warm data using the first and second tables, and a read failure occurs when reading the data of the storage unit corresponding to the logical address using the read voltage corresponding to the warm data, the data of the storage unit corresponding to the logical address is re-read using the read voltage corresponding to the cold data.

8. The memory system according to claim 1, wherein: The memory controller is further configured to: Checking whether the logical address corresponding to the received read command is stored in the write buffer; When the logical address is not stored in the write buffer, determining a level of a drift amount corresponding to the logical address; A read command is sent to the non-volatile storage device according to the level of drift corresponding to the logical address; wherein at least two of the processes of checking whether the logical address is saved, determining the level of drift and sending the read command are executed in parallel.

9. The memory system according to claim 8, characterized in that: The processes of checking whether the logical address is saved, determining the level of the drift amount and sending the read command are all executed in parallel; the memory controller comprises: a first processor, a second processor, a third processor, a first on-chip memory and a second on-chip memory; wherein, The first processor is configured to: check whether the logical address corresponding to the received read command is stored in the write buffer, and submit the logical address not stored in the write buffer to the first submission queue; The first on-chip memory is configured to: store the first submission queue; The second processor is configured to: determine the level of drift corresponding to each of the logical addresses in the first submission queue, and submit the level of drift corresponding to each of the logical addresses to the second submission queue; The second on-chip memory is configured to: store the second submission queue; The third processor is configured to: send a read command to the non-volatile storage device according to the level of the drift amount corresponding to each of the logical addresses in the second submission queue; Among them, at the same time, the first submission queue, the second submission queue and the logical address corresponding to the sending read command are different.

10. The memory system according to claim 9, characterized in that: The third processor is specifically configured as follows: Determining a read voltage for performing a read command operation on the non-volatile storage device according to a level of a drift amount corresponding to each of the logical addresses in the second submission queue; A read command is sent to the nonvolatile memory device according to a read voltage for performing a read command operation on the nonvolatile memory device.

11. The memory system according to claim 10, characterized in that: The first on-chip memory and the second on-chip memory each include a dynamic random access memory or a static random access memory.

12. The memory system according to claim 1, wherein: The memory system includes a storage class memory; the non-volatile memory device includes a phase change memory.

13. A memory controller, characterized in that: The at least one non-volatile memory device is coupled to the memory controller, and the memory controller is configured to: The heat of the data corresponding to the logical address of the received read command is determined by using the first type table and the second type table; the heat of the data represents the length of the average time difference between writing and reading the data; the first type table includes at least one, and at least one of the first type tables is used to store the data of the logical address mapping of each first time interval within a first preset time length after writing; the second type table includes multiple, and multiple second type tables are used to alternately store the data of the logical address mapping of each second time interval within a second preset time length after writing; the first preset time length is less than the second preset time length, and the first time interval is less than the second time interval; The level of the drift amount corresponding to the logical address is determined according to the heat of the data corresponding to the logical address; different levels of drift amounts correspond to different read voltages sent to the non-volatile storage device.

14. A method for operating a memory system, characterized in that: The memory system includes: at least one non-volatile memory device and a memory controller coupled to the non-volatile memory device; the operating method includes: The heat of the data corresponding to the logical address of the received read command is determined by using the first type table and the second type table; the heat of the data represents the length of the average time difference between writing and reading the data; the first type table includes at least one, and at least one of the first type tables is used to store the data of the logical address mapping of each first time interval within a first preset time length after writing; the second type table includes multiple, and multiple second type tables are used to alternately store the data of the logical address mapping of each second time interval within a second preset time length after writing; the first preset time length is less than the second preset time length, and the first time interval is less than the second time interval; The level of the drift amount corresponding to the logical address is determined according to the heat of the data corresponding to the logical address; different levels of drift amounts correspond to different read voltages sent to the non-volatile storage device.

15. The method for operating a memory system according to claim 14, characterized in that: The method further comprises: forming the first category table and the second category table; The forming of the first category table and the second category table comprises: The logical address of each first time interval within the first preset time length after writing is stored in the first category table through the data mapped by the mapping function in the hash table; The data mapped by the mapping function in the Bloom filter, the Cuckoo filter, the XOR filter or the vacuum filter at the logical address of each second time interval within the second preset time length after writing is stored in the second type table.

16. The method for operating a memory system according to claim 14, characterized in that: The heat of the data includes: hot data, warm data and cold data; the average time difference between writing and reading the hot data, the warm data and the cold data increases in sequence; The method of using the first type table and the second type table to determine the heat of the data corresponding to the logical address of the received read command includes: When the data group mapped by the logical address is in the first category table, determining that the data corresponding to the logical address is hot data or warm data; When the data group mapped by the logical address is not in the first category table but in the second category table, determining that the data corresponding to the logical address is warm data or cold data; When the data group mapped to the logical address is not in the first category table and is not in the second category table, it is determined that the data corresponding to the logical address is cold data.

17. The method for operating a memory system according to claim 16, wherein: The number of tables of the first category includes two, and the number of tables of the second category includes two; The method of using the first type table and the second type table to determine the heat of the data corresponding to the logical address of the received read command includes: When the data mapped by the logical address is in the first category table of the previous first time interval, determining that the data corresponding to the logical address is hot data; When the data mapped by the logical address is not in the first category table of the previous first time interval, but is in the first category table of the current first time interval, determining that the data corresponding to the logical address is hot data or warm data; When the data mapped by the logical address is not in the first category table of the current first time interval and the first category table of the previous first time interval, and is in the second category table of the previous second time interval, determining that the data corresponding to the logical address is warm data; When the data mapped by the logical address is not in the first category table of the current first time interval, the first category of the previous first time interval, and the second category table of the previous second time interval, and is in the second category table of the current second time interval, determining that the data corresponding to the logical address is warm data or cold data; When the data mapped by the logical address is not in the first category table of the current first time interval and the first category table of the previous first time interval, and is not in the second category table of the current second time interval and the second category table of the previous second time interval, it is determined that the data corresponding to the logical address is cold data.

18. The method for operating a memory system according to claim 16, wherein: The number of tables of the first category includes two, and the number of tables of the second category includes two; The method of using the first type table and the second type table to determine the heat of the data corresponding to the logical address of the received read command includes: When the array data mapped by the logical address is in the first category table of the current first time interval or the first category table of the previous first time interval, determining that the data corresponding to the logical address is hot data; When the array data mapped by the logical address is not in the first class table of the current first time interval and the first class table of the previous first time interval, and is in the second class table of the current second time interval or the second class table of the previous second time interval, it is determined that the data corresponding to the logical address is warm data; When the array data mapped by the logical address is not in the first category table of the current first time interval and the first category table of the previous first time interval, and is not in the second category table of the current second time interval and the second category table of the previous second time interval, it is determined that the data corresponding to the logical address is cold data.

19. The method for operating a memory system according to claim 16, wherein: The step of determining the level of the drift amount corresponding to the logical address according to the heat of the data corresponding to the logical address includes: When the data corresponding to the logical address is the hot data, determining the drift amount corresponding to the logical address as the first-level drift amount; When the data corresponding to the logical address is the warm data, determining that the drift amount corresponding to the logical address is a second-level drift amount; When the data corresponding to the logical address is the cold data, determining that the drift amount corresponding to the logical address is a third-level drift amount; The first-level drift is smaller than the second-level drift, and the second-level drift is smaller than the third-level drift.

20. The method for operating a memory system according to claim 16, wherein: The method further comprises: When the data corresponding to the logical address is determined to be warm data using the first and second tables, and a read failure occurs when reading the data of the storage unit corresponding to the logical address using the read voltage corresponding to the warm data, the data of the storage unit corresponding to the logical address is re-read using the read voltage corresponding to the cold data.

21. The method for operating a memory system according to claim 14, wherein: The method further comprises: Check whether the logical address corresponding to the received read command is stored in the write buffer; When the logical address is not stored in the write buffer, determining a level of a drift amount corresponding to the logical address; According to the level of drift corresponding to the logical address, a read command is sent to the non-volatile storage device; wherein the processing of checking whether the logical address is saved, determining the level of drift and sending the read command is performed in parallel.

22. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed, the operating method of the memory system according to any one of claims 14 to 21 can be implemented.

Citation Information

Patent Citations

  • Data storage device and operating method thereof

    CN107305530A

  • Storage device and Method of operating the storage device

    CN108932964A

  • Controller, memory system and operation method thereof

    CN110457242A

  • Data storage system with read disturb control strategy whereby disturb condition can be predicted

    US11016880B1

  • Storage controller, a storage device and a method of operating the storage device

    US20230127606A1

Cited By

  • Memory management method and memory controller

    CN121704780A

  • Memory management method and memory controller

    CN121704780B