Storage unit scanning frequency optimization method and system based on data migration opportunity

By calculating the comprehensive instability coefficient of the storage unit and dynamically adjusting the data transfer timing, the problem of unreasonable setting of the UFS storage unit scan times is solved, and data stability and reliability are improved.

CN120353413AActive Publication Date: 2025-07-22合肥康芯威存储技术有限公司
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202510869554.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-26
Publication Date
2025-07-22
Estimated Expiration
2045-06-26

AI Technical Summary

Technical Problem

In the existing UFS storage technology, the setting of the number of scans of the memory unit lacks dynamic environmental adaptability, resulting in a nonlinear increase in the bit error rate, and the Retention and Read Disturb problems cannot be effectively avoided.

Method used

By obtaining the temperature of the storage unit, the number of scans and the time of decoding, the comprehensive unstable coefficient is calculated, and the data transfer timing is dynamically adjusted to control the maximum number of scans to avoid the problems caused by unreasonable setting of the scan threshold.

Benefits of technology

Real-time adjustments are achieved according to the environment conditions of the storage unit, the maximum number of scans is rationalized, Retention and Read Disturb problems are reduced, and data stability and reliability are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120353413A_ABST
    Figure CN120353413A_ABST
Patent Text Reader

Abstract

The invention discloses a storage unit scanning frequency optimization method and system based on data migration time. For any storage unit, a time period corresponding to a current moment is obtained according to an initial recording moment; according to the temperature of the storage unit at each moment in a time period corresponding to the current moment, decoding time consumption and scanning times when the storage unit is read each time, a comprehensive instability coefficient at the current moment is obtained, and then whether data migration is carried out on the storage unit at the current moment or not is judged. The maximum scanning frequency of the storage unit is controlled; and when data migration needs to be carried out, updating the initial recording moment, and judging whether data migration is carried out on the storage unit at the next moment or not. The data migration time is determined by integrating the temperature, the scanning times and the maximum decoding time consumption of the environment where each storage unit is located, so that the maximum scanning times of the storage units are more reasonable, and the data storage capacity problem and the read interference problem caused by too high or too low scanning threshold setting are avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of UFS storage, and particularly to a method and system for optimizing the number of scans of storage units based on the timing of data migration. Background Art

[0002] UFS (Universal Flash Storage) uses NAND Flash as the storage medium, and its data retention ability gradually deteriorates over time. Specifically, the error rate (the number of ErrorBits) of each storage unit gradually increases. When the error rate exceeds the error correction threshold of UFS, data loss will occur. To solve the Retention problem, UFS usually periodically performs a storage unit scan task internally, that is, by reading each storage unit to detect the error rate, finding storage units with too high an error rate, and reprogramming the data for them to ensure data correctness.

[0003] Although frequent read operations can help discover and correct data errors, they will cause the read disturb problem of NAND Flash. Read disturb is mainly manifested as the possibility of interfering with other storage units in the same physical block, thereby affecting the stability of stored data; In existing methods, in order to balance data reliability and the risk of read disturb, the number of scans of storage units is often limited by setting a threshold. When the number of reads of a storage unit reaches the scan threshold, the data is migrated to a new NAND Flash block to avoid further data instability caused by read disturb.

[0004] However, existing methods ignore the individual differences of NAND Flash and lack dynamic environmental adaptability. They cannot adjust the set scan threshold in real time according to the environmental conditions, such as temperature, of a single storage unit, resulting in difficulty in coping with the non-linear growth of the error rate.

[0005] Therefore, a method that can make the maximum number of scans of storage units more reasonable is needed to avoid the Retention problem and the Read Disturb problem caused by unreasonable setting of the scan threshold. Summary of the Invention

[0006] The main technical problem to be solved by the present invention is how to rationalize the maximum number of scans of each storage unit.

[0007] According to a first aspect, in one embodiment, a method for optimizing the number of scans of storage units based on the timing of data migration is provided, including: For any storage unit: Obtain the starting recording moment, and obtain the time period corresponding to the current moment according to the starting recording moment; Obtain the temperature instability coefficient of each moment in the time period corresponding to the current moment according to the temperature of each moment in the time period corresponding to the current moment and the first mapping table; Obtain the scan instability coefficient of the time period according to the number of scans and the instability increment in the time period corresponding to the current moment; Obtain the comprehensive instability coefficient of the current moment according to the scan instability coefficient of the time period corresponding to the current moment of the storage unit, the temperature instability coefficient of each moment, and the decoding time consumed each time the storage unit is read; Determine whether to perform data migration on the storage unit at the current moment according to the comprehensive instability coefficient of the current moment, so as to control the maximum number of scans of the storage unit; When it is not necessary to perform data migration on the storage unit at the current moment, continue to determine whether to perform data migration on the storage unit at the next moment according to the starting recording moment; When it is necessary to perform data migration on the storage unit at the current moment, perform data migration, update the starting recording moment, and determine whether to perform data migration on the storage unit at the next moment according to the updated starting recording moment.

[0008] According to a second aspect, an embodiment provides a storage unit scan times optimization system based on data migration timing, including: A target parameter acquisition unit, configured to acquire the target parameters of any storage unit, where the target parameters include the temperature of the storage unit at each moment, the decoding time consumed each time the storage unit is read, and the number of scans of the storage unit in the time period corresponding to the current moment; And a processor, configured to: For any storage unit: Obtain the starting recording moment, and obtain the time period corresponding to the current moment according to the starting recording moment; Obtain the temperature instability coefficient of each moment in the time period corresponding to the current moment according to the temperature of each moment in the time period corresponding to the current moment and the first mapping table; Obtain the scan instability coefficient of the time period according to the number of scans and the instability increment in the time period corresponding to the current moment; Obtain the comprehensive instability coefficient of the current moment according to the scan instability coefficient of the time period corresponding to the current moment of the storage unit, the temperature instability coefficient of each moment, and the decoding time consumed each time the storage unit is read; Determine whether to perform data migration on the storage unit at the current moment according to the comprehensive instability coefficient of the current moment, so as to control the maximum number of scans of the storage unit; When data migration of the storage unit is not required at the current moment, continue to determine whether to perform data migration on the storage unit at the next moment according to the starting recording moment; When data migration of the storage unit is required at the current moment, perform data migration, update the starting recording moment, and determine whether to perform data migration on the storage unit at the next moment according to the updated starting recording moment.

[0009] According to the method and system for optimizing the scanning times of a storage unit based on the data migration opportunity in the above embodiment, the comprehensive instability coefficient at the current moment is obtained according to the temperature at each moment in the time period corresponding to the storage unit at the current moment, the decoding time consumption each time the storage unit is read, and the scanning times; then, according to the comprehensive instability coefficient at the current moment, it is determined whether to perform data migration on the storage unit at the current moment, so as to determine the data migration opportunity and control the maximum scanning times of the storage unit; the temperature instability coefficient is adjusted according to the temperature of the storage unit, so that when the ambient temperature is high, the maximum scanning times of the storage unit is small, and when the ambient temperature is low, the maximum scanning times of the storage unit is large; the scanning instability coefficient is adjusted according to the scanning times of the storage unit in the time period corresponding to the current moment to ensure the stability of the data in the storage unit, especially in some storage units that need to be frequently read; the decoding instability coefficient is adjusted according to the maximum decoding time consumption in the time period corresponding to the current moment of the storage unit to ensure the reliability of the data in the storage unit; thus, by comprehensively considering the temperature of the environment where each storage unit is located, the scanning times of the storage unit, and the maximum decoding time consumption generated during the reading of the storage unit, the maximum scanning times of the storage unit is made more reasonable, and the Retention problem and the Read Disturb problem caused by setting the scanning threshold too high or too low are avoided. Brief Description of the Drawings

[0010] Figure 1 It is a flowchart of the method for optimizing the scanning times of a storage unit based on the data migration opportunity; Figure 2 It is a system block diagram of the system for optimizing the scanning times of a storage unit based on the data migration opportunity. Detailed Embodiment

[0011] The present invention will be further described in detail below in conjunction with the specific embodiments and the accompanying drawings. Similar elements in different embodiments are labeled with related similar element numbers. In the following embodiments, many detailed descriptions are provided to enable a better understanding of the present application. However, those skilled in the art can easily recognize that some of the features can be omitted in different situations, or can be replaced by other elements, materials, or methods. In some cases, some operations related to the present application are not shown or described in the specification to avoid overwhelming the core part of the present application with excessive descriptions. For those skilled in the art, it is not necessary to describe these related operations in detail, and they can fully understand the related operations based on the descriptions in the specification and the general technical knowledge in the art.

[0012] In addition, the features, operations, or characteristics described in the specification can be combined in any appropriate manner to form various embodiments. At the same time, the steps or actions in the method description can also be reordered or adjusted in a manner obvious to those skilled in the art. Therefore, the various sequences in the specification and the drawings are only for clearly describing a certain embodiment and do not mean that they are the necessary sequences, unless it is stated that a certain sequence must be followed.

[0013] The serial numbers assigned to the components in this article, such as "first", "second", etc., are only used to distinguish the described objects and do not have any sequential or technical meanings. And the "connection" and "coupling" mentioned in this application, unless otherwise specified, both include direct and indirect connection (coupling).

[0014] In the embodiments of the present invention, by comprehensively considering the temperature change, the number of scans, and the decoding time consumption of a single storage unit (NAND Flash) over a period of time, a comprehensive instability coefficient is calculated to determine the timing of data migration, so as to transfer the data to a safe NAND Flash block, thereby avoiding the influence caused by too high or too low number of scans of the storage unit, and making the maximum number of scans of the storage unit more reasonable.

[0015] Please refer to Figure 1 , in some embodiments, a method for optimizing the number of scans of a storage unit based on the timing of data migration is provided, including: Step S100: For any storage unit: Obtain the starting recording moment, and obtain the corresponding time period at the current moment according to the starting recording moment.

[0016] For any storage unit, in this embodiment, the next moment after the moment corresponding to the last data migration of the storage unit is used as the starting recording moment. Among them, if the storage unit has not undergone data migration, the starting recording moment is the first moment.

[0017] For example, assume that the current moment is the t-th moment. If the moment corresponding to the last data migration of this storage unit is the m-th moment, then the (m + 1)-th moment is taken as the starting recording moment of the current moment; and the time period from the (m + 1)-th moment to the t-th moment is taken as the time period corresponding to the current moment. Subsequently, the comprehensive instability coefficient is calculated by analyzing the temperature, the number of scans, and the decoding time consumption, etc. of this time period to determine whether data migration needs to be performed at the current moment.

[0018] Step S110: Obtain the comprehensive instability coefficient of the current moment according to the temperature at each moment within the time period corresponding to the current moment of this storage unit, the decoding time consumption each time when reading this storage unit, and the number of scans.

[0019] Since the higher the temperature of the environment where the NAND Flash is located, the faster the data reliability deteriorates over time; therefore, in this embodiment, a temperature acquisition unit, such as a temperature sensor, is added inside the UFS to record the temperature change of the NAND Flash, and when the temperature experienced by the storage unit is relatively high, it is mapped to a larger temperature instability coefficient, so that the comprehensive instability coefficient of this storage unit approaches the upper limit (i.e., the preset instability threshold) faster; while when the temperature experienced by the storage unit is relatively low, it is mapped to a larger temperature instability coefficient, so that the comprehensive instability coefficient of this storage unit approaches the upper limit more slowly, thereby obtaining the maximum number of scans acceptable for this storage unit in different temperature environments, realizing that the higher the temperature experienced by the storage unit, the lower its corresponding maximum number of scans; the lower the temperature experienced by the storage unit, the higher its corresponding maximum number of scans, so that the maximum number of scans is more reasonable.

[0020] It should be noted that the way to read the temperature can be to add a temperature sensor inside the UFS, or through the temperature sensor built in the NAND Flash, and the specific temperature acquisition method is not limited.

[0021] Record the temperature of this storage unit every other fixed moment; then obtain the temperature instability coefficient of each moment in this time period according to the temperature of each moment in the time period corresponding to the current moment; exemplarily, obtain the temperature instability coefficient of each moment according to the temperature of each moment in the time period corresponding to the current moment and the first mapping table. Among them, the first mapping table is shown in Table 1: Table 1

[0022] Table 1 shows the corresponding relationship between different temperatures and the temperature instability coefficient. It should be noted that if the temperature of the storage unit at a certain moment cannot be directly found in the first mapping table, the corresponding temperature instability coefficient can be obtained by linear interpolation; or, the temperature instability coefficient corresponding to the closest temperature can be used as the temperature instability coefficient corresponding to this temperature.

[0023] Generally, the storage unit is scanned once at a fixed frequency. However, considering that excessive reading of local hot spot units will accelerate data corruption, it is necessary to further consider the number of scans of the storage unit during the corresponding time period at the current moment; therefore, in this embodiment, the scan instability coefficient of this time period is obtained according to the number of scans in the time period corresponding to the current moment.

[0024] Exemplarily, obtain the number of scans in the time period corresponding to the current moment; then calculate the product of the obtained number of scans and the instability increment, and use the obtained product as the scan instability coefficient; where the instability increment increases by one for each scan during the time period corresponding to the current moment, and its value can be obtained through experimental statistics.

[0025] The decoding time of the storage unit refers to the time required for UFS (or NAND Flash) to perform error correction decoding on the original read data when reading the data of the storage unit; when the error rate of the storage unit is relatively high, the error correction algorithm needs to process more error bits, resulting in an increase in the number of decoding iterations; and as the number of Program / Erase cycles increases, it will affect the state of NAND Flash itself and also cause an increase in the error rate; therefore, the greater the decoding time, the more errors there are inside the corresponding storage unit, the worse the data reliability of this storage unit, and the more data migration is required; thus, in this embodiment, a timer is further designed inside the chip to record the decoding time when reading each storage unit, and then according to the decoding time of each read during the time period corresponding to the current moment, the decoding instability coefficient of this time period is obtained.

[0026] It should be noted that the method of recording the decoding time can be through adding an independent device for timing inside the chip or through software timing, and the specific method of obtaining the decoding time is not limited.

[0027] Exemplarily, obtain the maximum value of the decoding time required each time when reading the storage unit during the time period corresponding to the current moment to obtain the maximum decoding time; obtain the decoding instability coefficient according to the obtained maximum decoding time and the second mapping table. Among them, the second mapping table is shown in Table 2: Table 2

[0028] Table 2 shows the corresponding relationship between the interval range of different decoding time consumptions and the decoding instability coefficient. The corresponding decoding instability coefficient is obtained by looking up the interval range where the maximum decoding time consumption is located.

[0029] The comprehensive instability coefficient at the current moment is obtained based on the scanning instability coefficient, the decoding instability coefficient, and the temperature instability coefficient at each moment in the time period corresponding to the current moment; in this embodiment, the sum of the temperature instability coefficients at each moment in the time period is added to the scanning instability coefficient and the decoding instability coefficient, and the resulting sum is used as the comprehensive instability coefficient at the current moment.

[0030] Step S120: Determine whether to perform data migration on the storage unit at the current moment according to the comprehensive instability coefficient at the current moment, so as to control the maximum number of scans of the storage unit.

[0031] After obtaining the comprehensive instability coefficient at the current moment, if the comprehensive instability coefficient at the current moment is greater than or equal to the preset instability threshold, data migration needs to be performed on the storage unit at the current moment; otherwise, data migration does not need to be performed on the storage unit at the current moment.

[0032] Among them, when data migration does not need to be performed on the storage unit at the current moment, continue to determine whether to perform data migration on the storage unit at the next moment according to the starting recording moment; When data migration needs to be performed on the storage unit at the current moment, perform data migration, update the starting recording moment, and determine whether to perform data migration on the storage unit at the next moment according to the updated starting recording moment. That is, after a data migration is completed, data such as the number of scans, the temperature at each moment, and the decoding time consumption are re-recorded starting from the next moment. When the comprehensive instability coefficients corresponding to subsequent moments reach the preset instability threshold again, another data migration is performed on the storage unit, and so on.

[0033] Taking a certain storage unit as an example, starting from the first moment (or the next moment corresponding to the previous data migration) of the storage unit, the temperature, whether to scan, decoding time consumption per minute, and the corresponding temperature instability coefficient, scanning instability coefficient, decoding instability coefficient, and comprehensive instability coefficient are shown in Table 3: Table 3

[0034] For example, assume that the preset instability threshold is 110, that is, when the comprehensive instability coefficient at a moment is greater than or equal to 110, a data migration needs to be performed at that moment; in addition, the storage unit needs to be scanned once every three minutes; "NA" represents a missing value; If the current time is the 4th minute, the corresponding time period of the current time is from the 1st minute (the starting recording time) to the 4th minute. In this time period, the temperature instabilities of the storage unit per minute are 12, 12, 13, and 13 respectively; in this time period, a total of 1 scan is performed. If the instability increment is 10, the scan instability coefficient corresponding to the current time is 10; the maximum decoding time consumption in this time period is 6 μs , then the decoding instability coefficient of the current time is 8. Then, the sum of the temperature instability coefficients of each time in this time period is added to the scan instability coefficient and the decoding instability coefficient to obtain the comprehensive instability coefficient of the current 4th minute, which is 68; If the current time is the 7th minute, since the comprehensive instability coefficient at this time is 121, exceeding the preset instability threshold, a data migration needs to be performed on this storage unit at this time; then the next time is updated as the new starting recording time, that is, the 8th minute is used as the new starting recording time, and the corresponding time periods of each subsequent time are re-obtained according to this new starting recording time, and it is judged whether data migration needs to be performed on each subsequent time.

[0035] Both at the 11th minute and the 20th minute, the comprehensive instability coefficient exceeds 110 (the preset instability threshold). Therefore, data migration will also be performed on this storage unit at the 11th minute and the 20th minute.

[0036] In addition, in Table 3, from the 8th minute to the 11th minute, the temperature experienced by this storage unit is relatively high, indicating that this storage unit is in a high-temperature environment from the 8th minute to the 11th minute, and a data migration is performed after only 1 scan; from the 12th minute to the 20th minute, the temperature experienced by this storage unit is relatively low, indicating that this storage unit is in a low-temperature environment from the 12th minute to the 20th minute, and a data migration is performed after a total of 3 scans; in this example, when the storage unit is in a high-temperature environment, the corresponding scan threshold is 1 time; when the storage unit is in a low-temperature environment, the corresponding scan threshold is 3 times; that is, the method in this embodiment can be adjusted in real time according to the environmental conditions of each storage unit, so that the maximum scan times of each storage unit are more reasonable.

[0037] In this embodiment, based on the number of scans within the time period corresponding to the current moment, as well as the temperature and decoding time consumption at each moment within the time period corresponding to the current moment, the comprehensive instability coefficient at the current moment is obtained; then, based on the comprehensive instability coefficient at the current moment, it is determined whether to perform data migration on the storage unit at the current moment, thereby determining the timing of data migration and controlling the maximum number of scans of the storage unit; the temperature instability coefficient is adjusted according to the temperature at which the storage unit is located, so that when the ambient temperature is high, the maximum number of scans of the storage unit is small, and when the ambient temperature is low, the maximum number of scans of the storage unit is large; the scan instability coefficient is adjusted according to the number of scans of the storage unit within the time period corresponding to the current moment to ensure the stability of the data in the storage unit, especially in some storage units that need to be frequently read; the decoding instability coefficient is adjusted according to the maximum decoding time consumption of the storage unit within the time period corresponding to the current moment to ensure the reliability of the data in the storage unit; thus, by comprehensively considering the temperature of the environment where each storage unit is located, the number of scans of the storage unit, and the maximum decoding time consumption generated during the reading of the storage unit, the maximum number of scans of the storage unit is made more reasonable, avoiding the Retention problem and the Read Disturb problem caused by setting the scan threshold too high or too low.

[0038] Please refer to Figure 2 , in some embodiments, a storage unit scan count optimization system based on the data migration timing is provided, including: A target parameter acquisition unit 200, configured to acquire the target parameters of any storage unit, where the target parameters include the temperature of the storage unit at each moment, the decoding time consumption each time the storage unit is read, and the number of scans of the storage unit within the time period corresponding to the current moment; And a processor 210, configured to: For any storage unit: obtain the starting recording moment, and obtain the time period corresponding to the current moment according to the starting recording moment; obtain the temperature instability coefficient at each moment within the time period corresponding to the current moment according to the temperature at each moment within the time period corresponding to the current moment and the first mapping table; obtain the scan instability coefficient of the time period according to the number of scans within the time period corresponding to the current moment and the instability increment; obtain the comprehensive instability coefficient at the current moment according to the scan instability coefficient of the time period corresponding to the current moment of the storage unit, the temperature instability coefficient at each moment, and the decoding time consumption each time the storage unit is read; determine whether to perform data migration on the storage unit at the current moment according to the comprehensive instability coefficient at the current moment to control the maximum number of scans of the storage unit; When it is not necessary to perform data migration on the storage unit at the current moment, continue to determine whether to perform data migration on the storage unit at the next moment according to the starting recording moment; When data migration of the storage unit needs to be performed at the current moment, data migration is carried out, the starting recording moment is updated, and based on the updated starting recording moment, it is determined whether to perform data migration of the storage unit at the next moment.

[0039] It should be noted that the processing process of the processor in this embodiment corresponds to the method steps of the above-mentioned method for optimizing the number of scans of the storage unit based on the data migration timing, and its specific implementation has been specifically described in the above embodiments, and will not be elaborated here.

[0040] Those skilled in the art can understand that all or part of the functions of the above-mentioned various methods can be implemented in a hardware manner or in a computer program manner. When all or part of the functions in the above embodiments are implemented in a computer program manner, the program can be stored in a computer-readable storage medium, and the storage medium can include: read-only memory, random access memory, magnetic disk, optical disk, hard disk, etc. The above functions are realized by a computer executing the program. For example, the program is stored in the memory of the device, and when the processor executes the program in the memory, the above-mentioned all or part of the functions can be realized. In addition, when all or part of the functions in the above embodiments are implemented in a computer program manner, the program can also be stored in a storage medium such as a server, another computer, magnetic disk, optical disk, flash drive or mobile hard disk, and is saved to the memory of the local device by downloading or copying, or the system of the local device is updated. When the processor executes the program in the memory, the above-mentioned all or part of the functions in the embodiments can be realized.

[0041] The above uses specific examples to elaborate on the present invention, which is only used to help understand the present invention and is not intended to limit the present invention. For those skilled in the art of the present invention, based on the idea of the present invention, several simple deductions, deformations or substitutions can be made.

Claims

1. A method for optimizing the number of scan times of a storage unit based on the data transfer timing, characterized in that including: For any storage unit: obtain the starting recording moment, and obtain the time period corresponding to the current moment according to the starting recording moment; obtain the temperature instability coefficient of each moment in the time period corresponding to the current moment according to the temperature of each moment in the time period corresponding to the current moment and the first mapping table; obtain the scanning instability coefficient of the time period according to the number of scans and the instability increment in the time period corresponding to the current moment; obtain the comprehensive instability coefficient of the current moment according to the scanning instability coefficient of the time period corresponding to the current moment of the storage unit, the temperature instability coefficient of each moment, and the decoding time consumption each time the storage unit is read; judge whether to perform data migration on the storage unit at the current moment according to the comprehensive instability coefficient of the current moment, so as to control the maximum number of scans of the storage unit; when it is not necessary to perform data migration on the storage unit at the current moment, continue to judge whether to perform data migration on the storage unit at the next moment according to the starting recording moment; when it is necessary to perform data migration on the storage unit at the current moment, perform data migration, update the starting recording moment, and judge whether to perform data migration on the storage unit at the next moment according to the updated starting recording moment.

2. The method for optimizing the number of times of scanning a storage unit based on the data transfer timing as claimed in claim 1, wherein The obtaining of the starting recording moment includes: taking the next moment of the moment corresponding to the previous data migration as the starting recording moment; wherein, if the storage unit has not undergone data migration, the starting recording moment is the first moment.

3. The method for optimizing the number of storage unit scan times based on the data migration timing according to claim 1, wherein The obtaining of the comprehensive instability coefficient of the current moment according to the scanning instability coefficient of the time period corresponding to the current moment of the storage unit, the temperature instability coefficient of each moment, and the decoding time consumption each time the storage unit is read includes: obtain the decoding instability coefficient of the time period according to the decoding time consumption each time the storage unit is read in the time period corresponding to the current moment; obtain the comprehensive instability coefficient of the current moment according to the scanning instability coefficient, the decoding instability coefficient of the time period corresponding to the current moment, and the temperature instability coefficient of each moment in the time period.

4. The method for optimizing the number of times of scanning a storage unit based on the data transfer timing according to claim 1, wherein The obtaining of the scanning instability coefficient of the time period according to the number of scans and the instability increment in the time period corresponding to the current moment includes: obtaining the number of scans in the time period corresponding to the current moment; calculating the product between the number of scans and the instability increment, and taking the obtained product as the scanning instability coefficient.

5. The method for optimizing the number of times of scanning a storage unit based on the data transfer timing as claimed in claim 3, wherein The obtaining of the decoding instability coefficient of the time period according to the decoding time consumption each time the storage unit is read in the time period corresponding to the current moment includes: obtaining the maximum decoding time consumption corresponding to each time the storage unit is read in the time period corresponding to the current moment, and obtaining the maximum decoding time consumption; obtaining the decoding instability coefficient according to the maximum decoding time consumption and the second mapping table.

6. The method for optimizing the number of times of scanning a storage unit based on the data transfer timing according to claim 3, wherein Obtaining the comprehensive instability coefficient at the current moment based on the scanning instability coefficient, decoding instability coefficient corresponding to the time period of the current moment, and temperature instability coefficient at each moment in this time period includes: calculating the cumulative sum of the temperature instability coefficients at each moment within this time period, adding the cumulative sum to the scanning instability coefficient and the decoding instability coefficient, and taking the obtained addition result as the comprehensive instability coefficient.

7. The method for optimizing the number of storage unit scans based on the data migration timing according to claim 1, wherein Judging whether to perform data migration on the storage unit at the current moment according to the comprehensive instability coefficient at the current moment includes: if the comprehensive instability coefficient at the current moment is greater than or equal to the preset instability threshold, data migration needs to be performed on the storage unit at the current moment; otherwise, data migration does not need to be performed on the storage unit at the current moment.

8. A storage unit scan times optimization system based on data migration timing, characterized in that Including: A target parameter acquisition unit for acquiring the target parameters of any storage unit, where the target parameters include the temperature of the storage unit at each moment, the decoding time consumed each time the storage unit is read, and the number of scans of the storage unit within the time period corresponding to the current moment; And a processor for: For any storage unit: acquiring the starting recording moment, obtaining the time period corresponding to the current moment according to the starting recording moment; obtaining the temperature instability coefficient at each moment in the time period corresponding to the current moment according to the temperature at each moment in the time period corresponding to the current moment and the first mapping table; obtaining the scanning instability coefficient of the time period according to the number of scans in the time period corresponding to the current moment and the instability increment; obtaining the comprehensive instability coefficient at the current moment according to the scanning instability coefficient of the storage unit within the time period corresponding to the current moment, the temperature instability coefficient at each moment, and the decoding time consumed each time the storage unit is read; judging whether to perform data migration on the storage unit at the current moment according to the comprehensive instability coefficient at the current moment to control the maximum number of scans of the storage unit; When data migration does not need to be performed on the storage unit at the current moment, continue to judge whether to perform data migration on the storage unit at the next moment according to the starting recording moment; When data migration needs to be performed on the storage unit at the current moment, perform data migration, update the starting recording moment, and judge whether to perform data migration on the storage unit at the next moment according to the updated starting recording moment.

9. A computer-readable storage medium, characterized in that, A computer program is stored on the medium, and the computer program can be executed by the processor to implement the method for optimizing the number of scans of a storage unit based on the data migration opportunity as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Training data generation method and system of decision level prediction model, and storage medium

    CN114118439A

  • Storage error correction method and device for NAND Flash and storage medium

    CN117724888A

  • Solid state disk scanning method and device and related equipment

    CN119883125A

  • Information recorder, system for copying information, method for copying information, program and computer readable recording medium

    US20040170276A1

  • Temperature profile tracking for adaptive data integrity scan rate in a memory device

    US20230229317A1