Method and device for optimizing physical block read interference, equipment and medium

By setting the evaluation range and quality assessment in the solid-state drive and dynamically adjusting the number of reads, the problem of frequent data migration caused by fixed thresholds is solved, achieving a balance between extending hard drive life and data reliability.

CN121387189APending Publication Date: 2026-01-23成都芯忆联信息技术有限公司
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202511521268.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-23
Publication Date
2026-01-23

AI Technical Summary

Technical Problem

Existing technologies in solid-state drives (SSDs) cause excessively frequent data movement due to a fixed threshold for the number of reads, increasing the total amount of data written, which in turn exacerbates the wear and tear on the flash memory media and shortens the lifespan of the hard drive.

Method used

By setting a preset evaluation range, the physical block is evaluated for quality. If the quality is better than the standard, the number of reads is compensated and updated to delay data migration and reduce unnecessary data migration operations.

Benefits of technology

It effectively reduces write amplification and flash memory wear in solid-state drives, extends the lifespan of the drive, and ensures data reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121387189A_ABST
    Figure CN121387189A_ABST
Patent Text Reader

Abstract

The invention discloses a method, device and equipment for optimizing read interference of a physical block and a medium, and relates to the technical field of solid state hard disks, and the method comprises the following steps: in response to the fact that the read frequency of the physical block is in a preset evaluation range, carrying out quality evaluation on the physical block; and if the result of the quality evaluation shows that the quality of the physical block is superior to a preset standard, performing compensation updating on the number of reading times of the physical block to delay data migration. According to the method, the accurate quality evaluation of the physical block is triggered by setting the preset evaluation range, and the reading times of the physical block with excellent quality is compensated and updated based on the evaluation result. According to the mechanism, unnecessary data migration can be dynamically delayed, so that write amplification and flash memory wear of the solid state disk are effectively reduced. According to the method, on the premise of ensuring the data reliability, the additional write-in overhead generated due to read interference management is remarkably reduced, and finally the technical effect of prolonging the service life of the solid state disk is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of solid state disk, and particularly relates to a method and device for optimizing read interference of physical block, equipment and medium. BACKGROUND

[0002] As a kind of data storage device based on flash memory medium, the basic storage unit of solid state disk (SSD) is floating gate transistor. When reading the data of a certain flash page, in order to ensure that other unselected storage units will not interfere with the reading process, a certain pass voltage needs to be applied on other word lines. However, the application of the voltage will cause the slight loss of electrons accumulated in these adjacent storage units. With the increasing number of repeated readings of the physical block, the loss of electrons will gradually intensify, and eventually may cause the drift of the threshold voltage of the storage unit, resulting in the occurrence of error codes of the stored data, which is the read interference. In order to ensure the long-term reliability of data, the prior art usually adopts a direct coping strategy: a fixed threshold is set for the number of read operations of each physical block, and once it is monitored that the number of read operations of a certain block exceeds the threshold, the data migration process is immediately started, that is, all valid data in the block is migrated to other idle physical blocks, and then the original block is erased for reuse.

[0003] Although this strategy can avoid the risk of data errors caused by read interference to some extent, its inherent defects become particularly prominent in actual application. Since the threshold is a fixed value, it fails to distinguish the differences in actual health status and quality tolerance between different physical blocks, resulting in that a large number of physical blocks that can actually maintain good data integrity are prematurely subjected to data migration due to the number of read operations reaching the threshold. This frequent and often unnecessary data migration operation significantly increases the total amount of data written inside the solid state disk, and further aggravates the write amplification effect. The improvement of the write amplification effect directly means that the flash memory medium bears additional programming / erasing cycles that are not necessary for user data requests, which will irreversibly consume the endurance of the flash memory storage unit, and finally cause the overall service life of the solid state disk to be adversely affected. SUMMARY

[0004] The embodiments of the present application provide a method, device, equipment and medium for optimizing read interference of physical block, and aim to solve the technical problem of how to effectively cope with read interference to ensure data reliability while avoiding the significant decline of service life of solid state disk caused by too frequent data migration operation.

[0005] In a first aspect, the embodiments of the present application provide a method for optimizing read interference of physical block, which comprises: performing quality evaluation on the physical block in response to the number of read operations of the physical block being in a preset evaluation range; If the quality evaluation result indicates that the quality of the physical block is better than the preset standard, the read number of the physical block is updated to delay data migration.

[0006] Further, the quality evaluation of the physical block comprises: According to a preset sampling strategy, part of the word lines in the physical block are sampled and read; Obtaining the number of error bits generated by the sampling and reading to obtain the quality evaluation result.

[0007] Further, before the quality evaluation of the physical block in response to the read number of the physical block being in the preset evaluation range, the method further comprises: Monitoring the read number of the physical block; When the read number of the physical block is greater than the preset interrupt threshold, the read number of the physical block is reported to the preset interrupt queue; Reading the read number of the physical block from the interrupt queue to determine whether the read number of the physical block is in the preset evaluation range.

[0008] Further, the method further comprises: If the read number of the physical block exceeds the preset recycling threshold, the physical block is added to the garbage collection queue to perform data migration.

[0009] Further, the method further comprises: If the number of error bits is less than or equal to the preset first error threshold, it is determined to update the read voltage of the physical block.

[0010] Further, the read number of the physical block is updated to delay data migration, comprising: If the number of error bits is greater than the first error threshold and less than the preset second error threshold, a negative compensation value is calculated based on the number of error bits to reduce the read number record of the physical block.

[0011] Further, the method further comprises: If the number of error bits is greater than or equal to the second error threshold, a positive compensation value is calculated based on the number of error bits to increase the read number record of the physical block.

[0012] In a second aspect, the embodiments of the present application also provide a device for optimizing physical block read interference, which comprises units for executing the above method.

[0013] In a third aspect, an embodiment of the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the above method when executing the computer program.

[0014] In a fourth aspect, an embodiment of the present application further provides a computer readable storage medium, wherein the storage medium stores a computer program, and the computer program can implement the above method when being executed by a processor.

[0015] Embodiments of the present application provide a method, device, equipment and medium for optimizing physical block read interference. The method comprises: in response to the number of read times of a physical block being in a preset evaluation range, performing quality evaluation on the physical block; and if the result of the quality evaluation indicates that the quality of the physical block is better than a preset standard, performing compensation update on the number of read times of the physical block to delay data migration. The present application triggers accurate quality evaluation on the physical block by setting a preset evaluation range, and performs compensation update on the number of read times of the physical block with good quality based on the evaluation result. This mechanism can dynamically delay unnecessary data migration, thereby effectively reducing the write amplification and flash wear of the solid state disk. Under the premise of ensuring data reliability, this method significantly reduces the additional write overhead caused by read interference management, and finally achieves the technical effect of prolonging the service life of the solid state disk. BRIEF DESCRIPTION OF DRAWINGS

[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0017] Figure 1 A flowchart of the method for optimizing physical block read interference provided by the embodiments of the present application is shown in the figure. Figure 2 A schematic block diagram of the computer device provided by the embodiments of the present application is shown in the figure. DETAILED DESCRIPTION

[0018] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of the present application.

[0019] It should be understood that the terms "comprises" and "comprising," when used in this specification and accompanying claims, indicate the presence of the described features, integers, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0020] It should also be understood that the terms used in the specification and the appended claims are intended to describe particular embodiments and do not intend to limit the present application. As used in the specification and the appended claims, the singular forms "a," "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

[0021] It should further be understood that the term "and / or" used in the specification and the appended claims, refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.

[0022] As used in the specification and the appended claims, the term "if' can be interpreted as meaning "when" or "once" or "in response to a determination" or "in response to a detection" depending on the context. Similarly, the phrase "if determined" or "if detected [the described condition or event]" can be interpreted to mean "once determined" or "in response to a determination" or "once detected [the described condition or event]" or "in response to a detection [the described condition or event]" depending on the context.

[0023] Referring to Figure 1 The embodiment of the present application provides a method for optimizing read disturbance of a physical block, which comprises the following steps: S1, in response to the number of read times of the physical block being in a preset evaluation range, performing quality evaluation on the physical block.

[0024] In a specific implementation, by setting a preset evaluation range as a trigger condition, the management of the physical block is changed from "passive response" to "active intervention". The traditional scheme only takes action when the number of read times reaches a fixed upper limit, while the present scheme starts the subsequent process when the number of read times enters an evaluation interval that is lower than the recovery threshold of forced migration, thereby providing a valuable decision-making window for the system, so that the solid state disk controller has the opportunity to intervene in processing before the data reliability risk of the physical block reaches the critical point, thereby avoiding the passive situation of "one-size-fits-all" rescue only when the crisis occurs, and laying a time sequence foundation for subsequent fine operation.

[0025] Further, the physical block in the evaluation range is evaluated for quality, and the physical block is converted from an abstract "read number" statistical object to an entity with a specific health status. Through the evaluation, the system can learn the current actual data storage capacity and read interference resistance of the physical block, which provides an important objective basis for subsequent decision-making and avoids the "misjudgment" in the traditional scheme, i.e., the physical block with a high read number but still good quality is prematurely included in the moving list, thereby wasting the write endurance of the solid state disk and increasing the write amplification effect.

[0026] In some preferred embodiments, the above step "evaluating the quality of the physical block in response to the read number of the physical block being in a preset evaluation range" further includes the following steps: monitoring the read number of the physical block; when the read number of the physical block is greater than a preset interruption threshold, reporting the read number of the physical block to a preset interruption queue; and reading the read number of the physical block from the interruption queue to determine whether the read number of the physical block is in the preset evaluation range.

[0027] In specific implementations, continuously monitoring the read number of all physical blocks consumes a large amount of system resources, especially in large-capacity solid state disks. The present scheme sets an interruption threshold, and only when the read number exceeds the threshold, the block is included in the interruption queue, so that the system is switched from full polling to event response mode. For example, the interruption threshold is set to a value lower than the recovery threshold, ensuring that the block is marked when it enters the potential risk stage, leaving sufficient time for subsequent processing. Subsequently, the system extracts the read number of the physical block from the interruption queue and determines whether the read number enters the evaluation range, thereby accurately triggering the quality evaluation process. This hierarchical judgment mechanism avoids premature or late intervention, preventing ineffective processing of low read number blocks and ensuring timely control of high read number blocks.

[0028] Further, the evaluation range can be an interval between the interruption threshold and the recovery threshold, for example, an open interval defined by the interruption threshold and the recovery threshold, which is not specifically limited by the present application.

[0029] In some preferred embodiments, the method further includes the following step: if the read number of the physical block exceeds a preset recovery threshold, the physical block is added to a garbage collection queue to perform data moving.

[0030] In specific implementations, the recovery threshold serves as an insurmountable safety red line, and when the read number of the physical block exceeds this value, the physical block will be forcibly moved. This design ensures the safety bottom line of read interference management and prevents data loss due to algorithm misjudgment or extreme conditions.

[0031] Specifically, if the physical block is an open block, the reclaim threshold is a preset first threshold; if the physical block is a closed block, the reclaim threshold is a preset second threshold. The open block is a physical block being written, and the closed block is a physical block being written full. Different reclaim thresholds are set for the open block and the closed block, and the core purpose is to implement differentiated reliability management strategies according to the data risk state and future use expectation of the two at the current time, so as to achieve the best balance between data safety and storage medium life.

[0032] Specifically, the open block is an active block in a writing state, and the internal data is still being continuously updated. Part of the data may not have been written or will be replaced by new data. In this case, the actual risk of data error of the open block caused by read interference is relatively low, because even if slight electron loss occurs, its influence can be covered or eliminated by subsequent write operations. Therefore, a relatively high reclaim threshold is set for the open block, which means that the open block is allowed to bear more read operations before triggering data migration, avoiding the loss of efficiency and additional write amplification caused by prematurely migrating a block that has not been written full and can continue to receive write data, thereby prolonging the overall life of the solid state disk.

[0033] On the contrary, the closed block is a closed block that has been completely written full, and its content will remain fixed until the next garbage collection erasure. Since the data is no longer updated, any electron loss accumulated due to read interference will be permanent, and the risk of data error will continue to rise with the increase of the number of read times and cannot be self-repaired. Therefore, a relatively low reclaim threshold is set for the closed block, which means that a more conservative protection strategy is adopted for the closed block. Once the number of read times approaches this threshold, data migration is started earlier to safely transfer static data to a new block. This can effectively ensure the integrity of long-term static data and prevent irreversible data loss caused by read interference accumulation.

[0034] In some preferred embodiments, the above step of "performing quality assessment on the physical block" specifically includes the following steps: according to a preset sampling strategy, sampling and reading part of the word lines in the physical block; obtaining the number of error bits generated by the sampling and reading to obtain the result of the quality assessment.

[0035] In a specific implementation, the quality evaluation is realized efficiently and with low overhead by sampling and reading part of the word lines and counting the number of error bits. If all word lines of a physical block are read comprehensively to evaluate the quality, a huge time delay and performance loss will be introduced, especially in a high concurrency scenario. The sampling strategy is adopted in the present solution, and only part of the representative word lines are read, which greatly reduces the resource consumption of the evaluation process. For example, for a physical block containing hundreds of word lines, only 10% of the word lines are sampled and read, and the quality state of the whole block can be inferred from the statistical characteristics of the number of error bits. The principle of this method is that the wear of the flash memory block usually has spatial correlation, and the error rate of part of the word lines can reflect the severity of the overall electron loss. Through the objective indicator of the number of error bits, the system can quantify the health status of the physical block and provide a reliable basis for subsequent decision-making. It can be seen that the present embodiment can control the performance overhead of quality detection within a reasonable range while ensuring the accuracy of evaluation, so that the solution can be implemented in actual products, avoiding the system bottleneck caused by the evaluation process itself.

[0036] In some preferred embodiments, the sampling strategy at least includes a sampling ratio and sampling word line position information.

[0037] In a specific implementation, the balance between quality evaluation accuracy and system overhead is realized through a configurable sampling strategy. The flexible setting of the sampling ratio and position information allows the solution to adapt to different application scenarios and cost requirements. For example, in enterprise-grade solid state disks with extremely high reliability requirements, a higher sampling ratio can be used to improve evaluation accuracy; while in consumer-grade products, the sampling ratio can be reduced to optimize performance. The setting of the sampling position information allows the system to optimize for the specific physical structure of the flash memory chip, such as preferentially selecting edge word lines that are susceptible to read interference or sampling in an interleaved mode to improve representativeness.

[0038] The present embodiment provides high configurability for the quality evaluation module, allowing manufacturers to adjust the evaluation strategy according to product positioning. This flexibility ensures the universality of the solution in different levels of solid state disks, meeting the needs of accurate management in high-end markets and balancing the requirements of cost and performance in the mass market.

[0039] In some preferred embodiments, the method further comprises the step of: if the number of error bits is less than or equal to a preset first error threshold, determining to update the read voltage of the physical block.

[0040] In a specific implementation, the online repair of the slight read disturbance is realized by comparing the number of error bits with the first error threshold. When the number of error bits is low, it indicates that the degree of electron loss of the physical block is shallow and has not posed a substantial threat to the data integrity. At this time, the threshold voltage drift can be compensated by adjusting the read voltage. For example, the system fine-tunes the read reference voltage so that the sense amplifier can more accurately distinguish the charge state of the storage cell, thereby restoring the correct reading without moving the data. This voltage updating operation takes much less time than data moving and has minimal impact on performance.

[0041] The embodiment can realize "in-situ repair" for the early read disturbance problem, thereby prolonging the actual service life of the physical block. Meanwhile, the mechanism reduces the triggering frequency of the garbage collection system, reduces the background write pressure, and enables the host chip to focus more on processing user input / output requests, thereby improving the overall performance and response speed of the solid state disk.

[0042] S2, if the result of the quality assessment indicates that the quality of the physical block is better than the preset standard, the read number of the physical block is compensated and updated to delay data moving.

[0043] In a specific implementation, when the quality assessment result indicates that the quality of the physical block is better than the preset standard, the read number of the physical block is compensated and updated to delay data moving, which is the core invention point of the present scheme. It realizes the "intelligentization" and "personalization" of the management strategy. For a high-quality physical block, the system reduces the recorded read number by algorithm, which is equivalent to "recharging" the additional readable number of the physical block in logic, so that it can continue to provide services safely without triggering garbage collection immediately. This mechanism directly leads to a significant decrease in the number of data moving operations. Since each data moving operation involves writing to a new physical block and erasing the old block, these operations will consume the life of the flash cell and exacerbate the write amplification effect, so reducing unnecessary moving can prolong the overall service life of the solid state disk. At the same time, since this delay decision is made based on the fact that the quality of the physical block is good, it is not a risky behavior that sacrifices data reliability, but a rational optimization after fully assessing the risk, thereby fundamentally ensuring the integrity of the data.

[0044] In some preferred embodiments, the above step of "compensating and updating the read number of the physical block to delay data moving" specifically includes the following steps: if the number of error bits is greater than the first error threshold and less than a preset second error threshold, a negative compensation value is calculated based on the number of error bits to reduce the read number record of the physical block.

[0045] In a specific implementation, if the number of error bits is greater than the first error threshold and less than a preset second error threshold, it is determined that the quality of the physical block is better than a preset standard. For a physical block with a medium error level, a negative compensation mechanism is used to actively extend its service period. When the number of error bits is between the first error threshold and the second error threshold, it indicates that the block has a certain reliability risk but is still within a controllable range. At this time, direct migration is slightly conservative, and voltage update is not enough to completely solve the problem. By calculating a negative compensation value and reducing the read count record, the system logically "resets" the read disturbance accumulation process of the block. For example, a block with a read count of ninety times and a moderate number of error bits, after negative compensation, its record may be rolled back to seventy times, so that it needs to experience more reading before triggering the migration threshold. The essence of this operation is a health reward mechanism for the health status of the physical block, encouraging blocks with good quality to continue to provide services. The technical effect of this embodiment is directly reflected in the reduction of the frequency of garbage collection triggering and the improvement of the write amplification factor, thereby prolonging the durability of the solid state disk. This mechanism is particularly suitable for read-intensive application scenarios and can significantly reduce the additional write burden caused by read disturbance management.

[0046] In some preferred embodiments, the method further includes the following steps: if the number of error bits is greater than or equal to the second error threshold, a positive compensation value is calculated based on the number of error bits to increase the read count record of the physical block.

[0047] In a specific implementation, a positive compensation mechanism is used to accelerate the elimination process of low-quality blocks. When the number of error bits exceeds the second error threshold, it indicates that the physical block has serious reliability degradation and is close to the critical point of data error. At this time, the system increases its read count record by a positive compensation value, so that it quickly reaches the recycling threshold and triggers data migration. For example, a block with a read count of eighty times but a high number of error bits, after positive compensation, its record may be increased to one hundred times, immediately meeting the migration condition. This design ensures the rapid identification and disposal of high-risk blocks, preventing data damage due to delayed migration. The technical effect of this embodiment is to optimize the data reliability management strategy, so that system resources are preferentially used to protect the most risky data. At the same time, this mechanism and the negative compensation mechanism form a complementary system that differentiates according to actual quality, achieving the best balance between life optimization and data security.

[0048] To achieve the above-mentioned differentiated compensation based on the number of error bits, the present application provides the following specific implementation: First, a first error threshold and a second error threshold are pre-stored, wherein the second error threshold is greater than the first error threshold, and together constitute a grading standard for judging the health status of the physical block. The first error threshold and the second error threshold can be set by those skilled in the art, and the present application does not specifically limit. After the number of error bits of the sampling word line is obtained, it is compared with the first error threshold and the second error threshold to determine the corresponding compensation strategy.

[0049] If the number of error bits is greater than the first error threshold and less than the second error threshold, it indicates that the physical block has a certain degree of electronic loss, but the data integrity has not reached a critical degree that needs to be immediately moved. In this case, the system starts a negative compensation mechanism. Specifically, according to a pre-defined compensation algorithm, a negative compensation value is calculated based on the specific value of the number of error bits. The compensation algorithm can be a mapping function or a lookup table method, and the design principle is that when the number of error bits is in this interval (greater than the first error threshold and less than the second error threshold), the compensation value is negatively correlated with the number of error bits, that is, the closer the number of error bits is to the first error threshold, the greater the absolute value of the negative compensation value is; the closer the number of error bits is to the second error threshold, the smaller the absolute value of the negative compensation value is. The calculated negative compensation value will be used to reduce the corresponding read count value of the physical block in the read count record table. For example, if the original read count record is N, and the compensation value is Δ (Δ is negative), then the updated read count record is N+Δ. This operation is logically equivalent to "resetting" part of the read interference accumulation of the block, delaying the time to reach the global recycling threshold, thereby allowing the physical block with good quality to continue to serve and reducing unnecessary data migration.

[0050] If the number of error bits is greater than or equal to the second error threshold, it indicates that the performance of the physical block has been seriously degraded, and the data is in a high-risk state. At this time, the system starts a positive compensation mechanism. Based on the number of error bits, a positive compensation value is calculated by the compensation algorithm. In this interval (the number of error bits is greater than or equal to the second error threshold), the compensation value is positively correlated with the number of error bits, that is, the greater the number of error bits, the greater the value of the positive compensation value. The positive compensation value will be used to increase the read count record of the physical block. For example, the original read count record is N, and the compensation value is Δ (Δ is positive), then the updated read count record is N+Δ. The operation aims to actively and quickly raise the logical read count of the physical block to or above the recycling threshold, so that it meets the condition of being selected and performing data migration by the garbage collection mechanism as soon as possible, thereby preferentially transferring high-risk data to a new block and ensuring the overall data reliability of the storage system.

[0051] The compensation algorithm can be embodied as a linear function, a segmented function, or a compensation value mapping table pre-calibrated through experiments. Through the double mechanism of positive and negative compensation, the system can intelligently adjust the life cycle trajectory of the physical block according to the real health status of the physical block, and optimize the write endurance of the solid state disk under the premise of ensuring data reliability.

[0052] The embodiment of the present application provides a method for optimizing read interference of a physical block, comprising: performing quality evaluation on the physical block in response to the read number of the physical block being in a preset evaluation range; and performing compensation update on the read number of the physical block to delay data migration if the quality evaluation result shows that the quality of the physical block is better than a preset standard. The present application triggers accurate quality evaluation on the physical block by setting a preset evaluation range, and performs read number compensation update on the physical block with good quality based on the evaluation result. This mechanism can dynamically delay unnecessary data migration, thereby effectively reducing write amplification and flash wear of the solid state disk. This method significantly reduces the additional write overhead caused by read interference management under the premise of ensuring data reliability, and finally realizes the technical effect of prolonging the service life of the solid state disk.

[0053] Corresponding to the above method for optimizing read interference of a physical block, the present application also provides a device for optimizing read interference of a physical block. The device for optimizing read interference of a physical block comprises units for executing the above method for optimizing read interference of a physical block, and the device for optimizing read interference of a physical block can be configured in a desktop computer, a tablet computer, a laptop computer, or the like. Specifically, the device for optimizing read interference of a physical block comprises: an evaluation unit configured to perform quality evaluation on the physical block in response to the read number of the physical block being in a preset evaluation range; an update unit configured to perform compensation update on the read number of the physical block to delay data migration if the quality evaluation result shows that the quality of the physical block is better than a preset standard.

[0054] In some preferred embodiments, the quality evaluation on the physical block comprises: sampling and reading part of the word lines in the physical block according to a preset sampling strategy; obtaining the number of error bits generated by the sampling and reading to obtain the quality evaluation result.

[0055] In some preferred embodiments, the device for optimizing read interference of a physical block further comprises: a monitoring unit configured to monitor the read number of the physical block; a reporting unit configured to report the read number of the physical block to a preset interrupt queue when the read number of the physical block is greater than a preset interrupt threshold; The judging unit is configured to judge whether the read times of the physical block is in a preset evaluation range according to the read times of the physical block in the interrupt queue.

[0056] In some preferred embodiments, the device for optimizing the read disturbance of the physical block further comprises: The recycling unit is configured to add the physical block into a garbage collection queue to perform data migration if the read times of the physical block exceeds a preset recycling threshold.

[0057] In some preferred embodiments, the device for optimizing the read disturbance of the physical block further comprises: The updating unit is configured to determine to perform read voltage updating on the physical block if the error bit number is less than or equal to a preset first error threshold.

[0058] In some preferred embodiments, the read times of the physical block is updated to delay data migration, comprising: If the error bit number is greater than the first error threshold and less than a preset second error threshold, a negative compensation value is calculated based on the error bit number to reduce the record of the read times of the physical block.

[0059] In some preferred embodiments, the device for optimizing the read disturbance of the physical block further comprises: The increasing unit is configured to calculate a positive compensation value based on the error bit number to increase the record of the read times of the physical block if the error bit number is greater than or equal to the second error threshold.

[0060] It should be noted that the specific implementation process of the above-mentioned device for optimizing the read disturbance of the physical block and each unit can be clearly understood by those skilled in the art, which can be referred to the corresponding description in the foregoing method embodiments. For the convenience and brevity of description, it will not be repeated here.

[0061] The above-mentioned device for optimizing the read disturbance of the physical block can be realized in the form of a computer program, which can run on a computer device as shown in Figure 2 .

[0062] Please refer to Figure 2 , Figure 2 is a schematic block diagram of a computer device provided by an embodiment of the present application. The computer device 500 can be a terminal or a server, wherein the terminal can be a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, a wearable device, and an electronic device with a communication function. The server can be a stand-alone server or a server cluster composed of multiple servers.

[0063] The computer device 500 comprises a processor 502, a memory and a network interface 505 connected by a system bus 501, wherein the memory can comprise a non-volatile storage medium 503 and an internal memory 504.

[0064] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. The computer program 5032, when executed, can cause the processor 502 to perform a method for optimizing read interference of a physical block.

[0065] The processor 502 is configured to provide computing and control capabilities to support the operation of the entire computer device 500.

[0066] The internal memory 504 provides an environment for the execution of the computer program 5032 in the non-volatile storage medium 503, which, when executed by the processor 502, can cause the processor 502 to perform a method for optimizing read interference of a physical block.

[0067] The network interface 505 is configured to perform network communication with other devices. Those skilled in the art can understand that the above structure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device 500 to which the scheme of the present application is applied. The specific computer device 500 can comprise more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0068] The processor 502 is configured to run the computer program 5032 stored in the memory to implement the following steps: In response to the read number of the physical block being in a preset evaluation range, performing quality evaluation on the physical block; If the result of the quality evaluation indicates that the quality of the physical block is better than a preset standard, performing compensation update on the read number of the physical block to delay data migration.

[0069] In some preferred embodiments, the quality evaluation on the physical block comprises: According to a preset sampling strategy, sampling and reading part of the word lines in the physical block; Obtaining the number of error bits generated by the sampling and reading to obtain the result of the quality evaluation.

[0070] In some preferred embodiments, before the quality evaluation on the physical block in response to the read number of the physical block being in a preset evaluation range, the method further comprises: Monitoring the read number of the physical block; When the read number of the physical block is greater than a preset interruption threshold, reporting the read number of the physical block to a preset interruption queue; read the read times of the physical block from the interrupt queue, and determine whether the read times of the physical block are in a preset evaluation range.

[0071] In some preferred embodiments, the method further comprises: If the read times of the physical block exceed a preset recycling threshold, the physical block is added to a garbage collection queue to perform data migration.

[0072] In some preferred embodiments, the method further comprises: If the number of error bits is less than or equal to a preset first error threshold, it is determined to perform read voltage updating on the physical block.

[0073] In some preferred embodiments, the read times of the physical block are updated with compensation to delay data migration, comprising: If the number of error bits is greater than the first error threshold and less than a preset second error threshold, a negative compensation value is calculated based on the number of error bits to reduce the record of the read times of the physical block.

[0074] In some preferred embodiments, the method further comprises: If the number of error bits is greater than or equal to the second error threshold, a positive compensation value is calculated based on the number of error bits to increase the record of the read times of the physical block.

[0075] It should be understood that, in the embodiments of the present application, the processor 502 can be a central processing unit (CPU), and the processor 502 can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor.

[0076] It can be understood by those skilled in the art that all or part of the processes in the above-mentioned embodiments of the method can be completed by a computer program instructing related hardware. The computer program can be stored in a storage medium, which is a computer readable storage medium. The computer program is executed by at least one processor in the computer system to implement the process steps of the above-mentioned embodiments of the method.

[0077] Therefore, the application further provides a storage medium. The storage medium can be a computer readable storage medium. The storage medium stores a computer program. The computer program is executed by a processor to make the processor perform the following steps: performing quality evaluation on the physical block in response to the read number of the physical block being in a preset evaluation range; if the result of the quality evaluation indicates that the quality of the physical block is better than a preset standard, performing compensation update on the read number of the physical block to delay data migration.

[0078] In some preferred embodiments, the quality evaluation on the physical block comprises: sampling and reading part of the word lines in the physical block according to a preset sampling strategy; obtaining the number of error bits generated by the sampling and reading to obtain the result of the quality evaluation.

[0079] In some preferred embodiments, before the quality evaluation on the physical block in response to the read number of the physical block being in a preset evaluation range, the method further comprises: monitoring the read number of the physical block; when the read number of the physical block is greater than a preset interruption threshold, reporting the read number of the physical block to a preset interruption queue; reading the read number of the physical block from the interruption queue to determine whether the read number of the physical block is in a preset evaluation range.

[0080] In some preferred embodiments, the method further comprises: if the read number of the physical block exceeds a preset recycling threshold, adding the physical block to a garbage collection queue to perform data migration.

[0081] In some preferred embodiments, the method further comprises: if the number of error bits is less than or equal to a preset first error threshold, determining to perform read voltage update on the physical block.

[0082] In some preferred embodiments, the compensation update on the read number of the physical block to delay data migration comprises: if the number of error bits is greater than the first error threshold and less than a preset second error threshold, calculating a negative compensation value based on the number of error bits to reduce the read number record of the physical block.

[0083] In some preferred embodiments, the method further comprises: if the number of error bits is greater than or equal to the second error threshold, calculating a positive compensation value based on the number of error bits to increase the read number record of the physical block.

[0084] The storage medium is a physical, non-transient storage medium, for example, can be a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk, and various physical storage media that can store program codes. The computer-readable storage medium can be non-volatile or volatile.

[0085] Those skilled in the art can appreciate that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be realized in electronic hardware, computer software or a combination of both. In order to clearly illustrate the interchangeability of hardware and software, the components and steps of each example have been described in the above description in general terms. Whether the functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. A person skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.

[0086] In several embodiments provided by the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and actual implementation can have another division manner. For example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0087] The steps in the method embodiments of the present application can be adjusted, combined and deleted in sequence according to actual needs. The units in the device embodiments of the present application can be combined, divided and deleted according to actual needs. In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit.

[0088] The integrated unit, if realized in the form of a software functional unit and sold or used as an independent product, can be stored in a storage medium. Based on such understanding, the technical solutions of the present application essentially or the part that contributes to the prior art, or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a plurality of instructions for causing a computer device (which can be a personal computer, a terminal or a network device, etc.) to execute all or part of the steps of the methods described in each embodiment of the present application.

[0089] In the above embodiments, the description of each embodiment has its own emphasis, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments.

[0090] Obviously, various modifications and changes can be made to the present application without departing from the spirit and scope thereof. Accordingly, it is intended that all such modifications and changes be included within the scope of the application as defined by the following claims and their equivalents.

[0091] The above description is merely that of the preferred embodiments of the application, but the protection scope of the application is not limited thereto. Any modifications or replacements within the technical scope disclosed by the application can be easily conceived by those skilled in the art, and these modifications or replacements shall be included in the protection scope of the application. Therefore, the protection scope of the application shall be subject to the protection scope of the claims.

Claims

1. A method of optimizing read disturb of a physical block, the method comprising: The method comprises: performing quality evaluation on the physical block in response to the read count of the physical block being in a preset evaluation range; if the result of the quality evaluation indicates that the quality of the physical block is better than a preset standard, performing compensation update on the read count of the physical block to delay data migration.

2. The method of claim 1, wherein, The quality evaluation on the physical block comprises: sampling and reading part of word lines in the physical block according to a preset sampling strategy; obtaining the number of error bits generated by the sampling and reading to obtain the result of the quality evaluation.

3. The method of claim 1, wherein, Before the quality evaluation on the physical block in response to the read count of the physical block being in a preset evaluation range, the method further comprises: monitoring the read count of the physical block; when the read count of the physical block is greater than a preset interruption threshold, reporting the read count of the physical block to a preset interruption queue; reading the read count of the physical block from the interruption queue to determine whether the read count of the physical block is in a preset evaluation range.

4. The method of claim 3, wherein, The method further comprises: if the read count of the physical block exceeds a preset recycling threshold, adding the physical block to a garbage collection queue to perform data migration.

5. The method of claim 2, wherein the step of optimizing the read disturb of the physical block is performed by: The method further comprises: if the number of error bits is less than or equal to a preset first error threshold, determining to perform read voltage update on the physical block.

6. The method of claim 5, wherein, The compensation update on the read count of the physical block to delay data migration comprises: if the number of error bits is greater than the first error threshold and less than a preset second error threshold, calculating a negative compensation value based on the number of error bits to reduce the read count record of the physical block.

7. The method of optimizing physical block read disturb of claim 6, wherein, The method further comprises: if the number of error bits is greater than or equal to the second error threshold, calculating a positive compensation value based on the number of error bits to increase the read count record of the physical block.

8. An apparatus for optimizing read disturb of a physical block, the apparatus comprising: The computer device comprises a memory and a processor, the memory stores a computer program, and the processor implements the method when executing the computer program.

9. A computer device, comprising: The storage medium stores a computer program, and the computer program can implement the method when executed by the processor.

10. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, and the computer program can implement the method when executed by the processor.

Citation Information

Cited By

  • Solid state disk read interference compensation method and device based on deep reinforcement learning

    CN121983106A