Read interference test method, storage controller, target storage device and storage medium
By determining the number of logical block addresses of the super physical block and generating a read command sequence, data reading operations are performed, solving the problem in existing technologies that make it difficult to assess the impact of read interference on the performance stability of solid-state drives. This enables accurate evaluation of storage device performance and improves the reliability of testing.
Patent Information
- Application Number
- CN202611312955.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-27
- Publication Date
- 2026-11-10
AI Technical Summary
Existing technologies struggle to accurately assess the impact of read interference on the performance stability of solid-state drives, especially when multiple physical blocks reach the read interference threshold simultaneously within a short period, leading to migration storms and performance degradation.
By determining the number of logical block addresses corresponding to the super physical block, a read command sequence is generated, and data read operations are performed under trigger and observation thresholds. Transmission bandwidth and latency are collected to evaluate the performance of the storage device.
This enables accurate performance evaluation of storage devices under read interference scenarios, improves the reliability and comprehensiveness of read interference testing, and ensures the accuracy and consistency of performance evaluation.
Smart Images

Figure CN123072467A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of storage device testing technology, and in particular to a read interference testing method, a storage controller, a target storage device, and a storage medium. Background Technology
[0002] With the rapid development of NAND (NOT AND) flash memory technology, NAND flash memory has become the core storage medium for solid-state drives (SSDs). Due to the physical storage characteristics of NAND flash memory, high-frequency reads on the same physical block may cause read interference to adjacent storage cells, leading to charge leakage and data flipping. To reduce the data reliability risks caused by read interference, SSD firmware typically includes a Read Disturb Avoidance (RDA) mechanism, which triggers data migration and block erasure operations when the read count of a physical block reaches a preset threshold. However, when multiple physical blocks reach the read interference threshold simultaneously within a short period, a migration storm can easily occur. Large-scale data migration consumes controller computing power, cache resources, and NAND channel bandwidth, resulting in decreased front-end service performance and increased access latency.
[0003] In related technologies, read interference testing for solid-state drives (SSDs) uses FIO (Flexible I / O Tester) to continuously apply high-pressure read I / O to accumulate read counts. This method has an excessively long testing cycle and makes it difficult to accurately establish the correlation between read counts and performance degradation. Some tests skip the natural accumulation process by directly modifying the underlying read counts, making it difficult to assess performance jitter and media reliability before RDA triggering. Therefore, the read interference testing methods in these technologies cannot comprehensively and accurately assess the impact of read interference and the RDA mechanism on the performance stability and data reliability of SSDs. Summary of the Invention
[0004] In view of this, one objective of the embodiments of this application is to provide a read interference testing method, a storage controller, a target storage device, and a storage medium, so as to improve the situation in the related art where it is difficult to accurately assess the impact of read interference on the performance stability of storage devices.
[0005] In a first aspect, embodiments of this application provide a read interference testing method applied to a storage controller. The method includes: determining a first quantity, which is the number of logical block addresses corresponding to a super physical block in a target storage device; determining a target physical block based on the first quantity and a second quantity, where the second quantity is the number of logical block addresses in the target storage device, the target physical block being a super physical block in the target storage device where read interference occurs, and the target physical block storing data; generating a read command sequence corresponding to the target physical block based on the target physical block; performing a reference number of data read operations on the target physical block based on the read command sequence and preset trigger number thresholds and observation number thresholds; performing a specified number of data read operations on all super physical blocks respectively, and collecting the transmission bandwidth and latency of the target storage device during the execution of the specified number of data read operations, wherein the specified number is greater than the observation number threshold; and evaluating the performance of the target storage device based on the transmission bandwidth and latency.
[0006] In some embodiments, determining the first quantity includes: calculating the number of bytes corresponding to a super physical block based on the composition method of the super physical block, wherein the composition method is used to represent one or more of the following: a die, a plane, a block, a word line, and a page of the super physical block; and calculating the first quantity based on the number of bytes and a preset logical sector size.
[0007] In some embodiments, determining the target physical block based on a first quantity and a second quantity includes: dividing the addresses of all logical blocks in the target storage device into [amounts] based on the first quantity and the second quantity. The first super physics block to the [number]th super physics block. The number of logical block addresses corresponding to each super physical block is the first number, the number of... The number of logical block addresses corresponding to each super physical block is less than or equal to a first quantity; the starting block address of all super physical blocks is determined according to the composition method; in response to a preset test quantity of one, a super physical block is selected as a target physical block according to the starting block address of each super physical block and the first quantity, and the number of logical block addresses corresponding to the target physical block is the first quantity; in response to multiple test quantities, multiple super physical blocks are selected as target physical blocks according to the starting block address of each super physical block, and the number of logical block addresses corresponding to each target physical block is less than or equal to the first quantity.
[0008] In some embodiments, generating a read command sequence corresponding to a target physical block based on the target physical block includes: calculating a reference number based on the maximum data transfer size of the target storage device and a preset logical sector size, wherein the reference number is the maximum number of logical block addresses read by a single read command; generating a read command sequence based on the number of logical block addresses corresponding to the target physical block and the reference number, wherein the read command sequence includes multiple read commands, and each read command corresponds to multiple logical block addresses.
[0009] In some embodiments, calculating a reference number based on the maximum data transfer size of the target storage device and a preset logical sector size includes: determining the ratio of the maximum data transfer size to the logical sector size as the reference number.
[0010] In some embodiments, generating a read command sequence based on the number of logical block addresses corresponding to the target physical block and a reference number includes: determining a reference block address based on a preset skip read count, where the skip read count is the number of logical block addresses skipped from the logical block addresses corresponding to the target physical block, and the reference block address is the first logical block address read from the logical block addresses corresponding to the target physical block; generating multiple read commands based on the reference block address and the reference count, where the number of logical block addresses read by each read command is less than or equal to the reference count; and sequentially combining all read commands to obtain a read command sequence.
[0011] In some embodiments, the number of target storage devices is multiple, and the reference number is a value determined based on the initial read count value of the target physical block, the trigger count threshold, and the observation count threshold. The method further includes: multiple read command sequences corresponding to the previous storage device as a first read command sequence corresponding to the current storage device, and generating a second read command sequence corresponding to a newly determined target physical block according to the newly determined target physical block in the current storage device. The previous storage device and the current storage device are any two adjacent target storage devices among multiple target storage devices ordered according to the test order; sequentially combining the first read command sequence and the second read command sequence to obtain the current read command sequence corresponding to the current storage device; and performing a reference number of data read operations on the target physical block in the current storage device according to the current read command sequence, the trigger count threshold, and the observation count threshold.
[0012] In some embodiments, after performing a specified number of data read operations on each of the super physical blocks, the method further includes: reading data from all super physical blocks and determining the integrity of the read data.
[0013] In some embodiments, before performing a reference number of data read operations on the target physical block according to the read command sequence and preset trigger number thresholds and observation number thresholds, the method further includes: formatting all data in the target storage device and writing preset data to the target storage device until the storage space of the target storage device is full.
[0014] Secondly, embodiments of this application provide a storage controller, including a processor and a memory, wherein the processor is communicatively connected to the memory, and the memory stores program instructions executable by the processor. When the program instructions are executed by the processor, the storage controller performs the read interference test method provided in the first aspect.
[0015] Thirdly, embodiments of this application provide a target storage device, including a plurality of super physical blocks and a storage controller provided in the second aspect, wherein the storage controller is communicatively connected to each of the super physical blocks.
[0016] Fourthly, embodiments of this application provide a computer-readable storage medium storing processor-executable program instructions, which, when executed by a processor, cause the processor to perform the read interference testing method provided in the first aspect.
[0017] The embodiments of this application have the following beneficial effects: Unlike related technologies, the embodiments of this application determine the target physical block where read interference occurs based on the number of logical block addresses corresponding to the super physical block, generate a read command sequence for the target physical block, and implement data reading based on the trigger number threshold and the observation number threshold. In this way, the actual number of data reading operations are performed on the target physical block flexibly and accurately, and a specified number of data reading operations are performed on all super physical blocks. The transmission bandwidth and latency are collected, and the performance data of the storage device under the read interference scenario is evaluated based on the transmission bandwidth and latency, so as to achieve an accurate evaluation of the performance of the storage device and improve the reliability and comprehensiveness of the read interference test. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the accompanying drawings used in the description of the related technologies or embodiments will be briefly introduced below. Obviously, the drawings described below only show some embodiments of this application and should not be considered as limiting the scope of protection. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 This is a schematic diagram illustrating the application scenario of read interference testing of the target storage device in some embodiments of this application; Figure 2 These are schematic diagrams of the structure of the target storage device provided in some embodiments of this application; Figure 3 This is a schematic diagram of the structure of a storage controller provided in some embodiments of this application; Figure 4 This is a flowchart illustrating a read interference testing method provided in some embodiments of this application; Figure 5 This is a schematic diagram of the read command sequence corresponding to the target physical block in some embodiments of this application; Figure 6 This is a schematic diagram of multiple target storage devices performing read interference tests in some embodiments of this application. Detailed Implementation
[0020] To make the objectives and advantages of the embodiments of this application more readily understood, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. The detailed description of the embodiments of this application in the accompanying drawings is not intended to limit the scope of protection claimed by this application, but only represents selected embodiments of this application. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0021] It should be noted that, unless there is a conflict, the various technical features involved in the embodiments of this application described below can be combined with each other, and all are within the protection scope of this application. Furthermore, although functional modules are divided in the device or structural schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. In addition, the terms "first," "second," "third," and other similar expressions used herein do not limit the data or execution order, but are only for illustrative purposes and to distinguish identical or similar items with substantially the same function and effect, and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features.
[0022] Unless otherwise defined, the technical and scientific terms used in this specification have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the scope of this application. It should be understood that the term "and / or" as used in this specification includes any and all combinations of one or more of the listed items.
[0023] In related technologies, the testing techniques used to test the performance of SSDs (Solid State Disk / Drive) under read interference scenarios have at least the following drawbacks.
[0024] 1. Currently, the common approach is to use FIO (Flexible I / O Tester) to issue high-pressure read I / O and set it to run for a long time to raise the read count of a specified storage area to trigger RDA. However, this method relies too much on the test time and the continuous storage area test range, making it difficult to establish a precise correspondence between the accumulation of read count and the degree of performance degradation.
[0025] 2. Instead of triggering read interference through a large number of actual reads, this method directly modifies the read count of physical blocks to reach or exceed the read interference threshold, thereby forcing the SSD to trigger its data migration mechanism, and then tests its performance at this point. Related technologies only focus on the performance impact after RDA triggering, ignoring the software-level retry read processing flow and NAND flash memory reliability in the high-pressure, continuous read area before triggering. Directly exceeding the read interference threshold makes it impossible to observe and evaluate whether the SSD's performance fluctuates due to the increase in frequent queries and reads in the critical state where the read count is extremely high but RDA has not been triggered.
[0026] 3. Lack of verification for silent data integrity corruption: Read interference is essentially caused by charge leakage leading to data flipping. Read interference testing should not only assess the impact on SSD performance, but also test whether irreversible silent data corruption has already occurred before or during the migration process.
[0027] 4. Read counts often occur continuously within a specified storage area, lacking testing consideration for discrete parts of the entire disk. In real-world scenarios, RDAs are triggered over relatively dispersed storage areas, and do not occur consecutively within a single small or large storage area.
[0028] In view of this, embodiments of this application provide a read interference testing method that flexibly and accurately performs a real number of data read operations on the target physical block to evaluate and obtain performance data of the storage device under read interference scenarios, accurately assess the performance of the storage device, and improve the reliability and comprehensiveness of read interference testing.
[0029] Please refer to the following: Figure 1 as well as Figure 2 , Figure 1 This application illustrates a schematic diagram of an application scenario for target storage device read interference testing in some embodiments of this application. Figure 2 A schematic diagram of the structure of a target storage device provided in some embodiments of this application is shown.
[0030] In this embodiment, the target storage device 100 includes a storage controller 110 and multiple (M) super physical blocks 120, with the storage controller 110 communicatively connected to each super physical block 120. M is an integer greater than or equal to 2, and the target storage device 100 may be, but is not limited to, a solid-state drive, a hard disk drive, or any other suitable type of storage device.
[0031] The super physical block 120 refers to a logical storage unit formed by combining and uniformly managing multiple physical blocks of different dies / planes according to a specific mapping relationship. The super physical block 120 is used to store data. The storage controller 110 is configured to perform the read interference test method provided below to implement read interference testing of the storage device.
[0032] The storage controller 110 may be, but is not limited to, a microcontroller, an FPGA chip, or any other suitable type of device or component.
[0033] For example, embodiments of this application perform the following read interference test operations to implement the read interference test method.
[0034] First, determine the initial quantity. The initial quantity is the number of logical block addresses corresponding to a super physical block in the target storage device; Next, based on the first quantity and the second quantity, the target physical block is determined. The second quantity is the number of logical block addresses in the target storage device, and the target physical block is the super physical block in the target storage device where read interference occurs, and the target physical block stores data.
[0035] Then, based on the target physical block, a read command sequence corresponding to the target physical block is generated.
[0036] Next, based on the read command sequence and preset trigger and observation thresholds, a reference number of data read operations are performed on the target physical block. The reference number is the difference between the trigger and observation thresholds.
[0037] Furthermore, a specified number of data read operations are performed on each of the super physical blocks, and the transmission bandwidth and latency of the target storage device are collected during the specified number of data read operations.
[0038] Finally, the performance of the target storage device is evaluated based on the transmission bandwidth and latency.
[0039] The above methods enable us to evaluate and obtain performance data of storage devices under read interference scenarios, accurately assess the performance of storage devices, and improve the reliability and comprehensiveness of read interference testing.
[0040] It should be understood that Figure 1 and Figure 2 The embodiments described herein are merely illustrative of one scenario involving the execution of a target storage device read interference test in some embodiments of this application, and do not limit the structure, type, or number of target storage devices or storage controllers in other embodiments. For example, in some other embodiments, the target storage device may further include... Figure 2 The structure shown has more or fewer components, or has the same Figure 2 The diagram shows different configurations of the structure.
[0041] Please see Figure 3 , Figure 3 The schematic diagram illustrates the structure of a storage controller provided in some embodiments of this application.
[0042] like Figure 3 As shown, the storage controller 110 includes at least one processor 111 and at least one memory 112 connected in communication. Figure 3 Taking a bus system 113, a processor 111, and a memory 112 as an example. The various components of the memory controller 110 are coupled together via the bus system 113, which is used to achieve communication between the components. It is easy to understand that the bus system 113 may include a power bus, control bus, and status signal bus, in addition to the data bus; however, for clarity and brevity, these will not be discussed further. Figure 3 In this designation, all buses are labeled as Bus System 113. This is understandable. Figure 3 The structures shown in the embodiments are merely illustrative and do not limit the structure of the memory controller described above. For example, the memory controller may also include components that are more... Figure 3 The structure shown has more or fewer components, or has the same Figure 3 The diagram shows different configurations of the structure.
[0043] Specifically, processor 111 is configured to provide computational and control capabilities to support storage controller 110 in executing corresponding business logic and functions. For example, it supports storage controller 110 in executing the read interference testing method provided in this application embodiment, or in executing the steps of any possible implementation of the read interference testing method provided in this application embodiment. It should be understood that processor 111 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), or other processors. It can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0044] The memory 112, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs, instructions, and modules, such as the program, instructions, and modules corresponding to the read interference testing method in the embodiments of this application. In some embodiments, the memory 112 may include a program storage area and a data storage area. The program storage area may store an operating system, an application program required for at least one function, and the data storage area may store data created according to the use of the processor 111. The processor 111 executes various functional applications and data processing of the storage controller 110 by running the non-transitory software programs, instructions, and modules stored in the memory 112, thereby implementing the read interference testing method provided in the embodiments of this application, or executing the steps in any possible implementation of the read interference testing method provided in the embodiments of this application. In some embodiments, the memory 112 may include high-speed random access memory and may also include non-transitory memory. For example, at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 112 may also include memory remotely located relative to the processor 111, and these remotely located memories may be connected to the processor 111 through a communication network. It is understood that examples of the aforementioned communication networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0045] As can be understood from the above, the entity implementing the read interference testing method provided in this application embodiment can be any suitable type of storage controller with certain computing and control capabilities, such as the storage controller 110 described above. In some implementations, the read interference testing method provided in this application embodiment is implemented by the processor executing program instructions stored in the memory.
[0046] The read interference testing method provided in this application will be described in detail below with reference to exemplary applications and implementations of the storage controller provided in the embodiments of this application.
[0047] For details, please refer to Figure 4 As shown, the read interference testing method provided in this application includes steps S41 to S46 to achieve the test of read interference of storage device.
[0048] Step S41: Determine the first quantity.
[0049] The first quantity is the number of logical block addresses corresponding to a super physical block in the target storage device.
[0050] For example, the storage organization structure parameters and logical address mapping information of the target storage device are obtained. The storage organization structure parameters include at least the composition information of the Super Physical Block (Sblk), the composition information of the physical blocks, and the addressing granularity of the Logical Block Address (LBA). It should be understood that a Super Physical Block is formed by combining multiple physical blocks according to a preset organizational relationship.
[0051] Based on the capacity of the target storage device and the capacity of a single logical block, the range of logical block addresses corresponding to the target storage device is determined, and the total number of logical block addresses contained in the target storage device is determined. The total number of logical block addresses serves as the basis for subsequently determining the distribution of super physical block addresses.
[0052] For example, based on the composition information of the super physical block, the number of physical blocks contained in a super physical block is determined; based on the storage capacity corresponding to each physical block and the capacity of a single logical block, the logical storage capacity corresponding to a super physical block is determined.
[0053] For example, the logical storage capacity corresponding to a super physical block is converted according to the capacity of a single logical block to obtain the number of logical block addresses corresponding to the super physical block. Specifically, if the logical storage capacity of a super physical block is divisible by the capacity of a single logical block, the ratio of the logical storage capacity of the super physical block to the capacity of a single logical block is determined as the first quantity; if the logical storage capacity of a super physical block is not divisible by the capacity of a single logical block, the boundary region is processed according to the address mapping rules of the target storage device to determine the actual number of logical block addresses that can be mapped to the super physical block.
[0054] Obtain the logical block address mapping results corresponding to at least one super physical block, count the number of logical block addresses mapped to each super physical block, and determine whether the number of logical block addresses corresponding to each super physical block meets a preset consistency condition. If the consistency condition is met, the count of logical block addresses corresponding to a super physical block is determined as the first quantity; if the consistency condition is not met, the number of logical block addresses corresponding to each super physical block is determined according to the actual address mapping relationship of the target storage device.
[0055] Using the above method, the number of logical block addresses corresponding to a super physical block can be accurately determined based on the actual storage organization structure and logical address mapping relationship of the target storage device, so as to provide address granularity basis for subsequently determining the target physical block that has read interference based on the first number and the second number.
[0056] Step S42: Determine the target physical block based on the first quantity and the second quantity.
[0057] The second quantity refers to the number of logical block addresses in the target storage device. The target physical block is the super physical block in the target storage device where read interference occurs, and the target physical block stores data to facilitate subsequent read interference testing.
[0058] For example, a second quantity is obtained, which is the total number of logical block addresses contained in the target storage device. The number of super physical blocks in the target storage device is determined based on the ratio of the second quantity to the first quantity. Specifically, the second quantity is divided according to the first quantity, so that each group of consecutive logical block addresses of the first quantity corresponds to one super physical block; for the remaining logical block addresses that cannot form a complete group, the corresponding super physical block is determined according to the address mapping rules of the target storage device.
[0059] Following the sequential arrangement of logical block addresses, the second number of logical block addresses are grouped, with each group containing the first number of logical block addresses. Each group of logical block addresses is then mapped to a corresponding super physical block, resulting in multiple logical block address ranges corresponding to super physical blocks. Therefore, the corresponding super physical block can be determined based on the range to which any logical block address belongs.
[0060] For example, candidate physical blocks are determined from multiple super physical blocks according to preset read interference test rules. For instance, the super physical blocks are traversed according to their arrangement order in the target storage device, and super physical blocks that meet the preset test location conditions are determined as candidate physical blocks; or candidate physical blocks are determined according to the logical block address range corresponding to the super physical blocks, so that the candidate physical blocks have a continuous or preset interval address distribution.
[0061] For example, the target physical block for performing the read interference test is determined based on the physical block composition relationship of the candidate physical blocks. Specifically, the target physical block is selected from multiple candidate physical blocks according to the arrangement of each physical block within the super physical block, the corresponding logical block address range, and the preset read interference position rules.
[0062] By using the above method, the logical address granularity of the super physical block is determined by the first quantity, and the address distribution of the super physical block in the entire target storage device is determined by the second quantity, thereby identifying the target physical block where read interference occurs, and providing a basis for generating a read command sequence with a clear address range.
[0063] Step S43: Generate the read command sequence corresponding to the target physical block based on the target physical block.
[0064] For example, obtain the physical address information and logical address mapping information corresponding to the target physical block, determine the starting logical block address, ending logical block address and the number of accessible logical block addresses corresponding to the target physical block, and determine the data storage location corresponding to each logical block address according to the address mapping relationship.
[0065] Based on the read operation protocol of the target storage device and preset test parameters, the number of logical block addresses corresponding to a single read command is determined as the target read length. Optionally, the target read length of a single read command can be set to a preset fixed value, thereby ensuring that the read command sequences generated from different target physical blocks have a uniform read granularity.
[0066] For example, based on the target read length, the logical block addresses corresponding to the target physical block are continuously divided into multiple logical address ranges. Each logical address range corresponds to a read command. If the number of logical block addresses corresponding to the target physical block is not divisible by the target read length, the remaining logical block addresses are determined as the read range of the last logical address range. The last logical address range also corresponds to a read command, and the number of logical block addresses corresponding to this read command is less than the target read length.
[0067] For each logical address range, the starting logical block address and read length of that range are determined, and the read command is encapsulated according to the read command format of the target storage device to obtain the corresponding read command. The generated read commands are then sorted in ascending order of logical block addresses, ensuring that the read commands are executed in a sequentially increasing manner according to the logical addresses corresponding to the target physical blocks; alternatively, the read commands can be arranged according to a preset address traversal rule to form a complete read command sequence.
[0068] The system verifies whether the read command sequence covers all logical block addresses corresponding to the target physical block, and checks whether the logical addresses between adjacent read commands are consecutive, whether the read length of each read command meets the preset read granularity, and whether each read command points to the corresponding target physical block. After passing the verification, the multiple read commands are combined in the order they are arranged to obtain the read command sequence corresponding to the target physical block.
[0069] By using the above method, a complete read command sequence covering the target physical block is generated based on the actual address range of the target physical block, so that subsequent data reading operations can perform continuous and repeatable read access to the target physical block, thereby facilitating the stable triggering of the read interference effect corresponding to the target physical block.
[0070] Step S44: Based on the read command sequence and the preset trigger number threshold and observation number threshold, perform a data read operation on the target physical block for the reference number of times.
[0071] The reference count is a value determined based on the initial read count of the target physical block, the trigger count threshold, and the observation count threshold.
[0072] The system retrieves preset trigger and observation thresholds, and uses the VU command to query the current count value of the target physical block. This current count value is then used as the initial read count value for the target physical block. The trigger threshold represents the number of data reads required for the target physical block to reach the expected level of read interference, while the observation threshold represents the number of data reads used to observe the performance of the target storage device before triggering read interference.
[0073] In this process, engineers custom-set the trigger count threshold based on the physical characteristics of NAND flash memory and the limits of ECC code error correction capabilities. Under the condition that the trigger count threshold is not greater than the difference between the trigger count threshold and the initial read count of the target physical block, engineers custom-set the observation count threshold according to read interference testing requirements. The reference count is equal to the difference between the trigger count threshold and the sum of the counts, and the sum of the counts is the sum of the observation count threshold and the initial read count.
[0074] For example, if the trigger threshold is 500 times and the initial read count is 20 times, then the difference between the trigger threshold and the initial read count is 500 - 20 = 480 times. Therefore, the observation threshold is no greater than (i.e., less than or equal to) 480 times. For example, if the observation threshold is set to 100 times, then the reference number is equal to the difference between the trigger threshold (i.e., 500 times) and the sum of the number of observations (i.e., the sum of the observation threshold and the initial read count, 100 + 20 = 120 times), which is 500 - 120 = 380 times.
[0075] For example, the first read command in the read command sequence is determined as the current read command, and the read address, read length and read order corresponding to the target physical block are configured so that subsequent read operations are performed according to the read command sequence.
[0076] Execute the current read command to read the data stored in the target physical block. After completing the data reading corresponding to the current read command, determine the next read command according to the order of read commands in the read command sequence, and continue to execute the next read command to read data.
[0077] In this process, once all read commands in the read command sequence have been executed, the current read count of the target physical block is updated (i.e., the current read count of the target physical block is incremented by 1), and the next round of data reading begins again from the beginning of the read command sequence. This process is repeated, allowing the target physical block to be accessed cyclically by multiple read commands. By cyclically executing the complete read command sequence, the data storage units in the target physical block are continuously accessed by read commands.
[0078] After each round of read command sequence, the system checks whether the current read count for the target physical block has been reached. The loop count is the difference between the trigger count threshold and the observation count threshold. If the current read count is less than the loop count, the system continues to execute data read operations for the target physical block according to the read command sequence; if the current read count equals the loop count, the system stops executing data read operations for the target physical block.
[0079] For example, please see Figure 5The number of target physical blocks is Q, meaning that read interference tests are performed on Q target physical blocks. The read command sequence corresponding to target physical block 1 is ReadSeq_1, the read command sequence corresponding to target physical block 2 is ReadSeq_2, ..., and the read command sequence corresponding to target physical block Q is ReadSeq_Q. Q is an integer greater than or equal to 2.
[0080] For example, the read command sequence ReadSeq_1 includes N1 read commands, where the first read command is [Read,Slba_1_1,LbaLen_1_1], the second read command is [Read,Slba_1_2,LbaLen_1_2], the third read command is [Read,Slba_1_3,LbaLen_1_3], and so on. The first read command is [Read,Slba_1_N1-1,LbaLen_1_N1-1], the second... The read command is [Read, Slba_1_N1, LbaLen_1_N1]. Here, Read indicates the command type, signifying that it is a read command; Slba_1_1, Slba_1_2, Slba_1_3, ..., Slba_1_N1-1, Slba_1_N1 represent the first, second, third, ... ... Individual read commands and the first The starting logical block address (i.e., the starting logical block address) corresponding to each read command; LbaLen_1_1, LbaLen_1_2, LbaLen_1_3, ..., LbaLen_1_N1-1, LbaLen_1_N1 represent the first read command, the second read command, the third read command, ..., the ...th read command, respectively. Individual read commands and the first The read length corresponding to each read command (i.e., the number of logical block addresses read).
[0081] It is understandable that the format and meaning of each read command in the read command sequence ReadSeq_2, ..., read command sequence ReadSeq_Q are similar to the format and meaning of each read command in the read command sequence ReadSeq_1, and will not be elaborated here.
[0082] For target physical block 1, after executing all read commands in the read command sequence ReadSeq_1, one round of data reading is completed, and the current read count value of target physical block 1 is incremented by 1; all read commands in the read command sequence ReadSeq_1 are executed repeatedly to perform multiple rounds of data reading until the current read count value of target physical block 1 is determined to have reached the loop count, and then the data reading operation for target physical block 1 is stopped.
[0083] For target physical block 2, ..., target physical block Q, the data reading operation process is similar to that of target physical block 1. For details, please refer to the data reading operation process of target physical block 1, which will not be elaborated here.
[0084] During the data read operation of the reference number of times, the execution status of each read command is recorded, and it is determined whether there are read command execution failures, address out-of-bounds errors, or read exceptions. When an exception is found, the corresponding read command is re-executed or the exception status is recorded according to the preset exception handling rules.
[0085] By using the above method, before formally collecting performance data, the complete read command sequence corresponding to the target physical block is executed in a loop, so that the target physical block accumulates the number of reads between the trigger number threshold and the observation number threshold. This provides stable and consistent initial conditions for subsequent performance data acquisition and improves the comparability of performance test results between different super physical blocks.
[0086] Step S45: Perform a specified number of data read operations on each of the super physical blocks, and collect the transmission bandwidth and latency of the target storage device during the specified number of data read operations.
[0087] Among them, the specified number of times is greater than the threshold of the number of observations.
[0088] For example, the specified number of times is set to a number greater than the observation number threshold, so that each super physics block can complete the preset read interference triggering process and continue to perform data reading operations, thereby obtaining observation data for performance evaluation.
[0089] Retrieve all super physical blocks in the target storage device, and sequentially identify one super physical block as the current super physical block to be tested according to a preset traversal order. Determine the read command sequence corresponding to the current super physical block to be tested based on the logical block address range corresponding to the current super physical block to be tested.
[0090] For the current super physical block to be tested, if the current super physical block to be tested is the target physical block (i.e., the current super physical block to be tested has performed the reference number of data read operations), the current read count value of the current super physical block to be tested is determined as the loop count; if the current super physical block to be tested is not the target physical block (i.e., the current super physical block to be tested has not performed the reference number of data read operations), the current read count value of the current super physical block to be tested is determined as the initial read count value.
[0091] For example, the read command sequence corresponding to the currently tested super physical block is executed repeatedly to read data from the super physical block. After each complete read command sequence is executed, the current read count for the current super physical block is incremented by 1, until the read command sequence corresponding to the current super physical block is executed a specified number of times. During the data reading operation, parameters such as the sending time, response time, read start time, read completion time, and the actual amount of data read for each read command are recorded.
[0092] Based on the total amount of data read during a specified number of data read operations and the corresponding data transmission time, the transmission bandwidth corresponding to the super physical block under test is determined. To reduce the impact of fluctuations in a single read operation, the instantaneous transmission bandwidth is determined based on multiple read operations, and the average of these instantaneous transmission bandwidths is determined as the target transmission bandwidth for the super physical block under test.
[0093] In some embodiments, FIO (Flexible I / O Tester) can be used to perform a specified number of data read operations on all super physical blocks to evaluate the performance stability of the target storage device under critical high voltage that is about to trigger read interference and to observe the impact of read interference on the performance of the target storage device.
[0094] Based on the time difference between the sending time and the reading completion time of each read command, the reading latency corresponding to each read command is determined, and the target latency of the super physical block to be tested is determined based on multiple reading latency durations. For example, the average value of multiple reading latency durations or the latency corresponding to a preset quantile is determined as the target latency duration.
[0095] Determine whether all data read operations for all super physical blocks have been completed; if not, switch to the next super physical block and repeat the above steps; if completed, obtain the target transmission bandwidth and target latency of each super physical block, determine the average of the target transmission bandwidth of all super physical blocks as the transmission bandwidth of the target storage device, and determine the average of the target latency of all super physical blocks as the latency of the target storage device.
[0096] By employing the above methods and using uniform read counts and rules, all super physical blocks are tested, and data transmission capabilities and access response capabilities are collected synchronously. This yields transmission bandwidth and latency under consistent testing conditions, providing a data foundation for accurately evaluating the performance of the target storage device under read interference conditions.
[0097] Step S46: Evaluate the performance of the target storage device based on the transmission bandwidth and latency.
[0098] For example, the target transmission bandwidth of each super physical block is compared with the reference transmission bandwidth (i.e., the transmission bandwidth of the target storage device) to determine the bandwidth deviation of each super physical block; the target latency of each super physical block is compared with the reference latency (i.e., the latency of the target storage device) to determine the latency deviation of each super physical block; based on the bandwidth deviation and latency deviation, the performance fluctuation of the target storage device on each super physical block is determined.
[0099] The reference transmission bandwidth and reference delay are normalized, and then fused according to preset weights to obtain a comprehensive performance index. A higher reference transmission bandwidth indicates stronger data transmission capability; a lower reference delay indicates stronger data access response capability.
[0100] For example, the overall performance index is compared with a preset performance threshold; when the overall performance index meets the first preset condition, the target storage device is determined to be in a high-performance state; when the overall performance index meets the second preset condition, the target storage device is determined to be in a normal performance state; when the overall performance index meets the third preset condition, the target storage device is determined to be in a performance degradation state.
[0101] For example, based on the bandwidth and latency deviations of each super physical block, the degree of performance fluctuation generated by the target storage device during the data read operation is determined, and the impact of read interference on the performance of the target storage device is evaluated based on the degree of performance fluctuation, so as to obtain the performance evaluation results of the target storage device under read interference test conditions.
[0102] By using the above method, the data transmission capability and access response capability of the target storage device are represented by transmission bandwidth and latency, respectively. The performance fluctuations between different super physical blocks are combined for comprehensive evaluation, thereby improving the accuracy and comprehensiveness of storage device performance evaluation in read interference test scenarios.
[0103] This application embodiment determines the target physical block where read interference occurs based on the number of logical block addresses corresponding to the super physical block, generates a read command sequence for the target physical block, and performs data reading based on the trigger number threshold and the observation number threshold. In this way, the actual number of data reading operations are performed on the target physical block, and the specified number of data reading operations are performed on all super physical blocks. The transmission bandwidth and latency are collected, and the performance data of the storage device under the read interference scenario is evaluated based on the transmission bandwidth and latency. This accurately evaluates the performance of the storage device and improves the reliability and comprehensiveness of the read interference test.
[0104] In some implementations, the present application embodiments determine the first quantity through steps S411 to S412.
[0105] Step S411: Calculate the number of bytes corresponding to a super physical block based on the composition method of the super physical block.
[0106] Step S412: Calculate the first quantity based on the number of bytes and the preset logical sector size.
[0107] The composition method is used to represent one or more of the following: bare die, plane, block, word line, and page. The size of the logical sector is set by engineers based on device characteristics and actual needs; this application embodiment does not impose any limitations on this.
[0108] For example, a super physical block is composed as follows: a super physical block consists of A dies, each die consists of B planes, each plane consists of C blocks (i.e., physical blocks), each block consists of D wordlines, and each wordline consists of E pages, each page being a size of Page_Size bytes. Thus, the number of bytes corresponding to a super physical block is calculated as follows: Byte.
[0109] For example, the preset logical sector size is obtained, where the logical sector size is: Sector_Size bytes. According to the formula: Calculate the first quantity (i.e., the number of logical block addresses corresponding to one super physical block). In the formula, As the first quantity, This refers to the number of bytes corresponding to a super physical block. This represents the logical sector size.
[0110] For example, the logical sector size is A super physical block consists of 4 planes, each plane contains 1 block, and each block contains 2430 pages. A page is 16384 bytes (16KB) in size. The calculated number of bytes corresponding to a super physical block is: The first quantity is calculated to be The number of logical block addresses corresponding to one super physical block is 311,040.
[0111] In some implementations, the embodiments of this application determine the target physical block based on the first quantity and the second quantity through steps S421 to S424.
[0112] Step S421: Based on the first quantity and the second quantity, divide the addresses of all logical blocks in the target storage device into... A super physics block.
[0113] In this embodiment, the first super physics block to the... The number of logical block addresses corresponding to each super physical block is the first number, the number of... The number of logical block addresses corresponding to each super physical block is less than or equal to the first number.
[0114] Based on the first and second quantities, and according to the logical block address arrangement order, all logical block addresses in the target storage device are divided into... There are several super physical blocks. A first number of consecutive logical block addresses are grouped together to form a super physical block. When the number of remaining logical block addresses is less than or equal to the first number, the remaining logical block addresses are then allocated to the next super physical block. The last (last) super physics block. Thus, from the first super physics block to the... The number of logical block addresses corresponding to each super physical block is the first number (i.e., the logical block addresses corresponding to the first number), and the first... The number of logical block addresses corresponding to each super physical block is less than or equal to the first number (i.e., the corresponding logical block addresses are less than or equal to the first number).
[0115] Step S422: Determine the starting block address of all super physical blocks according to the composition method.
[0116] For example, based on the composition of the super physical blocks, the starting block address corresponding to each super physical block is determined. Specifically, the address of the logical block that appears first in the sorting of each super physical block is determined as the starting block address of the corresponding super physical block, so that each super physical block has a unique starting block address, and all starting block addresses are formed into a starting block address sequence according to the sorting order of the super physical blocks.
[0117] Step S423: In response to the preset test quantity of one, select a super physical block as the target physical block according to the starting block address of each super physical block and the first quantity.
[0118] For example, when the preset test quantity is one, the first physical block that meets the preset selection conditions is determined based on the starting block address of each super physical block. The number of logical block addresses corresponding to the first physical block is verified based on the first quantity. When the number of logical block addresses corresponding to the first physical block is equal to the first quantity, the first physical block is determined as the target physical block, ensuring that a single target physical block corresponds to the first quantity of logical block addresses, that is, the number of logical block addresses corresponding to the target physical block is the first quantity.
[0119] Step S424: In response to the fact that there are multiple test quantities, select multiple super physical blocks as target physical blocks according to the starting block address of each super physical block.
[0120] Among them, the number of logical block addresses corresponding to each target physical block is less than or equal to the first number.
[0121] For example, when there are multiple preset test quantities, multiple second physical blocks that meet preset selection conditions are determined based on the starting block address of each super physical block. Then, multiple super physical blocks corresponding to the test quantity are selected from the multiple second physical blocks as target physical blocks according to preset test rules. For example, in some embodiments, selection is based on the order, interval, or preset address range of the starting block addresses, so that multiple target physical blocks are distributed in different storage areas of the target storage device.
[0122] When the selected target physical block includes the first When the first super physics block is reached, according to the first... The effective read range is determined by the number of logical block addresses actually contained in each super physical block, without supplementing non-existent logical block addresses, so that the number of logical block addresses corresponding to each target physical block does not exceed the first number, ensuring that the generated read command will not access addresses outside the effective address range of the target storage device.
[0123] In the above manner, the first quantity is used to determine the address granularity of the standard super physical block, the second quantity is used to determine the total number of super physical blocks, and the starting block address of each super physical block is used to locate and select the target physical block. In this way, it is possible to take into account both the selection of complete super physical blocks and the selection of incomplete super physical blocks at the end.
[0124] In some implementations, the embodiments of this application achieve the generation of a read command sequence corresponding to the target physical block based on the target physical block through steps S431 to S432.
[0125] Step S431: Calculate the reference quantity based on the maximum data transfer size of the target storage device and the preset logical sector size.
[0126] The reference quantity is the maximum number of logical block addresses that a single read command can read, representing the maximum number of logical block addresses that a single read command can read while satisfying the maximum data transfer capacity of the target storage device.
[0127] For example, in this embodiment of the application, the maximum data transfer size of the target storage device is obtained, for instance, by acquiring the underlying physical parameters of the target storage device through NVMe standard commands and vendor-extended commands. These underlying physical parameters include the maximum data transfer size and the logical sector size, among others. The maximum data transfer size characterizes the maximum amount of data allowed in a single data transfer by the target storage device. The logical sector size characterizes the data capacity corresponding to a single logical sector.
[0128] In some implementations, step S431 includes step S4311: determining the ratio of the maximum data transfer size to the logical sector size as a reference quantity.
[0129] For example, according to the following formula: Calculate the reference quantity. Among them, For reference quantity, Maximum data transfer size, This represents the logical sector size.
[0130] For example, logical sector size Maximum data transfer size The reference quantity was calculated. Thus, the maximum number of logical block addresses that a single read command can read is 256.
[0131] Step S432: Generate a read command sequence based on the number of logical block addresses corresponding to the target physical block and the number of references.
[0132] The read command sequence includes multiple read commands, and each read command corresponds to multiple logical block addresses.
[0133] For example, obtain the number of logical block addresses corresponding to the target physical block, and determine the starting logical block address (starting block address) corresponding to the target physical block. Based on the starting logical block address and the number of logical block addresses, determine the range of consecutive logical block addresses corresponding to the target physical block.
[0134] Based on the reference quantity, the logical block addresses corresponding to the target physical block are divided. Each time, multiple consecutive logical block addresses, not exceeding the reference quantity, are selected from the logical block addresses that have not yet been assigned to a read command, to form a logical address range, and one logical address range is assigned to one read command.
[0135] For each logical address range, a read command is generated based on the starting logical block address and the corresponding number of logical block addresses within that range. Each read command is used to read data within the corresponding logical address range. Except for the last read command, the number of logical block addresses corresponding to each of the other read commands is a reference number. When the number of logical block addresses corresponding to the target physical block is not divisible by the reference number, the number of logical block addresses corresponding to the last read command is less than the reference number.
[0136] For example, multiple read commands are arranged according to the order of the logical block addresses corresponding to each read command, so that the logical block addresses corresponding to adjacent read commands are arranged consecutively, and the arranged multiple read commands are combined to obtain the read command sequence corresponding to the target physical block.
[0137] The system verifies whether the logical block addresses corresponding to the read command sequence completely cover all logical block addresses corresponding to the target physical block, and verifies that the number of logical block addresses corresponding to each read command is less than or equal to the reference number. After passing the verification, the generated read command sequence is used to perform cyclic read operations on the target physical block.
[0138] By using the above method, the maximum read granularity of a single read command is determined based on the actual maximum data transfer capacity allowed by the target storage device, and the logical block address corresponding to the target physical block is divided into multiple read commands. This ensures that a single read command does not exceed the maximum data transfer size while achieving a complete read of the target physical block.
[0139] In some embodiments, this application embodiment generates a read command sequence based on the number of logical block addresses corresponding to the target physical block and the number of references through steps S4321 to S4323.
[0140] Step S4321: Determine the reference block address based on the preset number of skipped reads.
[0141] In this step, the skipped read count refers to the number of logical block addresses among the logical block addresses corresponding to the target physical block that are skipped during reading. Engineers can pre-configure the skipped read count according to read interference testing requirements to ensure that some logical block addresses of the target physical block do not participate in data reading operations. The reference block address is the first logical block address read from the logical block addresses corresponding to the target physical block.
[0142] For example, based on the starting logical block address and the number of logical block addresses corresponding to the target physical block, all logical block addresses corresponding to the target physical block are determined, and all logical block addresses are arranged in ascending order to obtain a logical block address sequence.
[0143] Obtain the preset number of skipped reads, and then read the logical block address sequence from the first logical block address to the second logical block address. The logical block address is determined as the logical block address where no data read operation is performed. To skip the number of reads, i.e., the first few reads in the logical block address sequence. No data read operation is performed on the logical block address.
[0144] In the logical block address corresponding to the target physical block, skip the preceding... After determining the logical block addresses of the remaining logical blocks, the first logical block address among the remaining logical block addresses is designated as the reference block address. Therefore, the reference block address represents the logical block address from which the read interference test actually begins.
[0145] Step S4322: Generate multiple read commands based on the reference block address and the reference quantity.
[0146] Step S4323: Combine all read commands in sequence to obtain a read command sequence.
[0147] In this case, the number of logical block addresses read by each read command is less than or equal to the reference number.
[0148] For example, a reference block address is used as the starting logical block address of the first read command, and the read quantity corresponding to the first read command is determined based on the reference quantity. When the number of remaining logical block addresses starting from the reference block address is greater than or equal to the reference quantity, the reference quantity is determined as the read quantity of the first read command; when the number of remaining logical block addresses starting from the reference block address is less than the reference quantity, the number of remaining logical block addresses is determined as the read quantity of the first read command, ensuring that the read quantity of a single read command does not exceed the reference quantity.
[0149] For example, based on the starting logical block address and read quantity corresponding to the previous read command, the address of the next logical block to be read is determined, and this address is used as the starting logical block address of subsequent read commands. The read quantity corresponding to subsequent read commands is determined in the same way, so that the number of logical block addresses corresponding to each read command is less than or equal to the reference quantity.
[0150] For example, read commands are continuously generated until the logical block address corresponding to the target physical block, starting from the reference block address, is overwritten. Specifically, when the number of remaining logical block addresses for which no read command has been generated is less than the reference number, all remaining logical block addresses are used as the read range for the last read command, thus preventing the last read command from reading logical block addresses outside the target physical block range.
[0151] The generated read commands are arranged and combined in ascending order of the starting logical block address corresponding to each read command to obtain the read command sequence corresponding to the target physical block.
[0152] Verify whether the read command sequence covers all logical block addresses in the target physical block except for those logical block addresses that are skipped from the read, and whether the number of reads for each read command does not exceed the reference number; after the verification is passed, the read command sequence is used for subsequent loop read operations.
[0153] For example, if the target physical block contains consecutive logical block addresses, and a preset skip read count is used to skip several logical block addresses at the beginning, then the reference block address is the first logical block address after the skipped part. Then, using the reference count as the maximum read count for a single read command, the remaining logical block addresses are divided into multiple read intervals in sequence, and multiple read commands are generated accordingly. The multiple read commands are combined according to the address order of the read intervals to obtain a read command sequence.
[0154] For example, if a target physical block corresponds to 311,040 logical block addresses, and each read command reads a maximum of 256 logical block addresses (i.e., the reference count), then without skipping any logical block addresses, the corresponding generated... A read command is generated; if the set number of logical block addresses to skip (e.g., 644) is to be skipped, then logical block addresses 1 to 644 are skipped, and the 645th logical block address becomes the reference block address. Thus, read commands are generated starting from the 645th logical block address, ultimately generating... A standard read command to read 256 logical block addresses and a read command... Read command at the end of a logical block address. This refers to The calculation result is rounded down.
[0155] In some embodiments, the read interference testing method provided in this application further includes steps S51 to S53.
[0156] Step S51: Multiple read command sequences corresponding to the previous storage device are reused as the first read command sequence corresponding to the current storage device, and a second read command sequence corresponding to the newly determined target physical block is generated according to the newly determined target physical block in the current storage device.
[0157] Step S52: Combine the first read command sequence and the second read command sequence in sequence to obtain the current read command sequence corresponding to the current storage device.
[0158] Step S53: Perform a data read operation on the target physical block in the current storage device for a reference number of times based on the current read command sequence, the trigger count threshold, and the observation count threshold.
[0159] The test involves multiple target storage devices, meaning multiple target storage devices are used for read interference testing. The previous storage device and the current storage device are any two adjacent target storage devices among the multiple target storage devices ordered in the test sequence.
[0160] Multiple target storage devices are acquired and sorted according to a preset test order to obtain a sequence of storage devices arranged in order of testing. Two adjacent target storage devices after sorting are designated as the preceding storage device and the current storage device, respectively. The current storage device is the storage device that will be tested after the preceding storage device.
[0161] Obtain multiple read command sequences corresponding to the previous storage device. Since the previous storage device and the current storage device have the same or compatible storage address organization method, logical block address addressing rules and preset read granularity, the multiple read command sequences corresponding to the previous storage device can be directly reused, and the reused multiple read command sequences are determined as the first read command sequence corresponding to the current storage device.
[0162] Based on the current storage organization structure of the storage device and the current testing requirements, the target physical block in the current storage device is redefined. The logical block address range corresponding to the newly determined target physical block is obtained, and the reference block address and read range of the current target physical block are determined according to preset test parameters such as the number of skip reads and the number of reference reads.
[0163] A second read command sequence is generated based on the logical block address and reference number corresponding to the newly determined target physical block in the current storage device. Specifically, the logical block address corresponding to the current target physical block is divided into multiple read intervals, each read interval corresponds to one read command, and the number of logical block addresses corresponding to each read command is less than or equal to the reference number; multiple read commands are combined according to the logical block address order corresponding to each read interval to obtain the second read command sequence.
[0164] According to the preset command execution order, the first read command sequence and the second read command sequence are combined sequentially to obtain the current read command sequence corresponding to the current storage device. The first read command sequence is used to perform a read access on the current storage device corresponding to the previous storage device, and the second read command sequence is used to perform a read access on a newly identified target physical block in the current storage device.
[0165] The data reading operation is executed cyclically according to the current read command sequence. Each execution of the current read command sequence is counted as one read count. The current read command sequence is executed cyclically until the read count value of the target physical block reaches the number of cycles (i.e., the difference between the trigger count threshold and the observation count threshold).
[0166] During execution, the actual number of reads (i.e., read count) of the target physical block on the current storage device is acquired and recorded, and it is determined whether the actual read count has reached the loop count. When the actual read count is less than the loop count, the current read command sequence continues to be executed; when the actual read count reaches the loop count, the execution of the current read command sequence is stopped to halt the data read operation in the current stage, and the target physical block on the current storage device is marked as having completed the read interference trigger test state for subsequent performance observation.
[0167] For example, please see Figure 6 The number of target storage devices is P, meaning that read interference testing is performed simultaneously using P target storage devices. For the first target storage device SSD_1 and the second target storage device SSD_2, the second target storage device SSD_2 reuses multiple read command sequences corresponding to the first target storage device SSD_1. For example, it reuses the read command sequence corresponding to the super physical block Sblk_1 in the target storage device SSD_1 (i.e., the first read command sequence); it also reuses the newly generated read command sequence corresponding to the target physical block Sblk_2 in the second target storage device SSD_2 (i.e., the first read command sequence); then, it sequentially combines the read command sequence corresponding to the super physical block Sblk_1 and the read command sequence corresponding to the target physical block Sblk_2 to obtain the current read command sequence corresponding to the second target storage device SSD_2.
[0168] For the other two adjacent target storage devices, the process of multiplexing the read command sequence, generating the read command sequence, and executing the data read operation is similar to that in the process of multiplexing the read command sequence, generating the read command sequence, and executing the data read operation between the first target storage device SSD_1 and the second target storage device SSD_2. For details, please refer to the process of multiplexing the read command sequence, generating the read command sequence, and executing the data read operation between the first target storage device SSD_1 and the second target storage device SSD_2; it will not be elaborated here. P is an integer greater than or equal to 2.
[0169] By using the above method, for multiple storage devices, the read command sequence already generated by the previous storage device is reused, and a new second read command sequence is generated for the newly determined target physical block in the current storage device, thus forming the complete read command sequence of the current storage device. This reduces the processing overhead of repeatedly generating read command sequences, and at the same time enables multiple storage devices to perform read interference tests according to consistent test logic, improving the comparability of test results between different storage devices.
[0170] In some embodiments, the read interference testing method provided in this application further includes step S61.
[0171] Step S61: Read the data in all super physical blocks and determine the integrity of the read data.
[0172] After performing a specified number of data read operations on each super physical block, the logical block address range corresponding to all super physical blocks in the target storage device is obtained. Then, according to the order of the super physical blocks, the data to be read in each super physical block is determined sequentially. The data to be read covers all valid logical block addresses corresponding to each super physical block.
[0173] For each super physical block, a data read command is generated based on the logical block address range corresponding to that super physical block, and the data read operation is executed according to the order of the logical block addresses to obtain the data in that super physical block. The above data read operation is executed for each super physical block until the data of all super physical blocks has been read.
[0174] Before performing the read interference test, reference data written to each super physical block is obtained. The data read from each super physical block is compared with the reference data of each super physical block, logically block by logical block address, to determine the data differences between the read data and the reference data. If the read data matches the reference data, the data of that super physical block is determined to be complete; if there is data inconsistency, missing data, or read failure, the data of that super physical block is determined to have an integrity abnormality, and the logical block address where the abnormality occurred is recorded.
[0175] Based on the data integrity determination results of each super physical block, the number of super physical blocks with complete data, the number of super physical blocks with integrity abnormalities, and the number of logical block addresses with data abnormalities are statistically analyzed, and the overall data integrity of the target storage device is further determined.
[0176] The data integrity determination result is compared with the preset integrity conditions. When the data in all super physical blocks meets the preset integrity conditions, the target storage device is determined to have passed the data integrity check; when at least one super physical block has a data integrity anomaly, the target storage device is determined to have failed the data integrity check, and the corresponding super physical block and logical block address are identified as the data anomaly location.
[0177] By using the above method, after all super physical blocks have completed a specified number of data reads, the integrity of the data in all super physical blocks is then checked to determine whether repeated read operations have caused errors, loss, changes or damage to the stored data, thereby determining the impact of read interference on data reliability.
[0178] In some embodiments, the read interference testing method provided in this application further includes step S71.
[0179] Step S71: Format all data in the target storage device and write the preset data to the target storage device until the storage space of the target storage device is full.
[0180] Before performing a reference number of data read operations on the target physical block according to the read command sequence and preset trigger and observation thresholds, all data in the target storage device is formatted and cleared, and the address management information of the storage space is re-established according to the storage organization structure of the target storage device, so that the target storage device is in the preset initial storage state.
[0181] Obtain the effective storage capacity and logical block address range of the target storage device, and determine the storage space to be written based on the order of the logical block addresses. Divide the effective storage space of the target storage device into multiple consecutive data write intervals, each corresponding to one or more logical block addresses.
[0182] The system acquires preset data and organizes it according to the logical block size of the target storage device, ensuring that the preset data is written to the corresponding logical block address according to the data write granularity of the target storage device. The preset data can be data with preset content, such as images, text, or audio.
[0183] According to the order of logical block addresses, the preset data is written to each data writing interval sequentially. After the data writing of each data writing interval is completed, the amount of data written is updated, the address of the next logical block to be written is determined, and the preset data is written to the next data writing interval.
[0184] During the data writing process, the amount of data written is continuously compared with the effective storage capacity of the target storage device. When the amount of data written is less than the effective storage capacity, it means that the storage space of the target storage device has not been filled, and the data writing operation continues; when the amount of data written reaches the effective storage capacity, it means that the storage space of the target storage device has been filled, and the data writing operation stops, thus pre-setting the data to cover the entire effective storage space of the target storage device.
[0185] After the data writing is completed, the logical block address range of the target storage device is checked to confirm that the preset data has covered all the valid storage space, and to confirm that there are no write failures, address out-of-bounds errors, or failure to write logical block addresses during the data writing process. The target storage device is then determined to be in a state where the test data initialization has been completed.
[0186] By formatting the target storage device before performing the read interference test and filling all the effective storage space with uniform preset data, each super physical block can be in a storage state with definite data content. This avoids the impact of inconsistent original data distribution on the read interference triggering effect and the subsequent judgment of data integrity, and significantly improves the consistency of read interference test conditions and the reliability of test results.
[0187] In summary, the embodiments of this application have at least the following beneficial effects.
[0188] 1. This approach eliminates the need for long-running tests and high read counts using FIO tools. Instead, it generates a read command sequence: Logical block address ranges are divided based on the number of target physical blocks, and read commands are generated based on the Maximum Data Transfer Size (MDTS). Multiple read commands are then combined to form a sequence. Data is read by repeatedly executing read operations on the target physical blocks, precisely controlling the read count. Once the read count reaches the required number of iterations, data reading operations cease, and performance testing is then conducted.
[0189] 2. Reduce the time overhead of redundancy and ambiguity of target storage devices in test scenarios with different data volumes. Use multiple target storage devices of the same specifications to perform read interference tests in parallel, and test each logical block address discretely within the entire logical block address range of each target storage device. Quantify the impact on the performance of the target storage device when one or more target physical blocks trigger the read interference avoidance mechanism within the entire logical block address range, improve test efficiency, and enhance the comparability of anti-interference consistency among different target storage devices.
[0190] 3. Enhanced performance and data integrity dual verification: Before the read interference avoidance mechanism is triggered, data read operations are stopped, and data read operations are continuously executed a specified number of times to reach the trigger condition. At this point, the performance can be compared with the standard performance SPEC (Specification). After executing the specified number of data read operations, all data of the super physical blocks are read in full and compared with the original reference data to verify data integrity.
[0191] 4. By utilizing multiple target storage devices to perform read interference tests in a multi-concurrency and multi-granularity manner, the comparability of test results between different storage devices is improved, the test cycle is shortened, and the test efficiency is increased.
[0192] This application provides a computer-readable storage medium storing processor-executable program instructions. When executed by the processor, the program instructions cause the processor to perform the read interference testing method provided in this application, or to perform the steps in any possible implementation of the read interference testing method provided in this application.
[0193] In some embodiments, the storage medium may be a flash memory, a hard disk, an optical disk, a register, a magnetic surface memory, a removable disk, a CD-ROM, a random access memory (RAM), a read-only memory (ROM), an electrically programmable ROM, and an electrically erasable programmable ROM, or any other form of storage medium known in the art, or various devices including one or any combination of the above storage media.
[0194] In some embodiments, program instructions may take the form of programs, software, software modules, scripts, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as stand-alone programs or as modules, components, subroutines, or other units suitable for use in a computing environment.
[0195] As an example, program instructions may, but do not necessarily, correspond to files in the file system. They may be stored as part of a file that holds other programs or data, for example, in one or more scripts in a Hyper Text Markup Language (HTML) document, or in a single file dedicated to the program in question, or in multiple collaborative files (such as files that store one or more modules, subroutines, or code sections).
[0196] As an example, program instructions can be deployed to execute on a computing device (including devices such as smart terminals and servers), or on multiple computing devices located in one location, or on multiple computing devices distributed across multiple locations and interconnected via a communication network. It is understood that all or part of the steps of the methods described in the embodiments provided in this application can be implemented directly using electronic hardware or processor-executable program instructions, or a combination of both.
[0197] Those skilled in the art will understand that the embodiments provided in this application are merely illustrative. The order in which the steps in the methods of the embodiments are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The order can be adjusted, merged, and deleted according to actual needs. Modules or sub-modules, units or sub-units in the apparatus or system of the embodiments can be merged, divided, and deleted according to actual needs. For example, the division of units is only a logical functional division, and there may be other division methods in actual implementation. For another example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed.
[0198] Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented using software plus a general-purpose hardware platform, and of course, it can also be implemented using hardware. Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This computer program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. It should be understood that the storage medium can be flash memory, hard disk, optical disk, register, magnetic surface memory, removable disk, CD-ROM, random access memory (RAM), read-only memory (ROM), electrically programmable ROM, and electrically erasable programmable ROM, etc.
[0199] It should be noted that the above embodiments are for illustrating the technical concept and features of this application, and are intended to enable those skilled in the art to understand the content of this application and implement it accordingly. They should not be construed as limiting the scope of protection of this application. Those skilled in the art can understand that all or part of the processes of the above embodiments can be implemented, modified according to the technical solutions described in the embodiments of this application, or equivalent substitutions can be made to some of the technical features. It is understood that these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application, and should be considered as equivalent changes and modifications made based on the embodiments of this application, all of which should fall within the scope of the claims of this application.
Claims
1. A method for testing read interference, characterized in that, Applied to a storage controller, the method includes: Determine a first quantity, wherein the first quantity is the number of logical block addresses corresponding to a super physical block in the target storage device; Based on the first quantity and the second quantity, a target physical block is determined, wherein the second quantity is the number of logical block addresses in the target storage device, the target physical block is the super physical block in the target storage device that is experiencing read interference, and the target physical block stores data; Based on the target physical block, generate a read command sequence corresponding to the target physical block; Based on the read command sequence and the preset trigger count threshold and observation count threshold, a reference number of data read operations are performed on the target physical block; Perform a specified number of data read operations on all the super physical blocks, and collect the transmission bandwidth and latency of the target storage device during the specified number of data read operations, wherein the specified number of operations is greater than the observation number threshold; The performance of the target storage device is evaluated based on the transmission bandwidth and the latency.
2. The method according to claim 1, characterized in that, Determining the first quantity includes: Based on the composition method of the super physical block, the number of bytes corresponding to one super physical block is calculated. The composition method is used to represent one or more of the following: a bare die, a plane, a block, a word line, and a page of the super physical block. The first quantity is calculated based on the number of bytes and the preset logical sector size.
3. The method according to claim 2, characterized in that, Determining the target physical block based on the first quantity and the second quantity includes: Based on the first quantity and the second quantity, the addresses of all logical blocks in the target storage device are divided into There are 10 super physics blocks, from the first super physics block to the 10th super physics block. The number of logical block addresses corresponding to each super physical block is the first number, and the number of... The number of logical block addresses corresponding to each super physical block is less than or equal to the first number; Based on the aforementioned composition method, determine the starting block address of all the super physical blocks; In response to the preset test quantity of one, a super physical block is selected as a target physical block according to the starting block address of each super physical block and the first quantity, and the number of logical block addresses corresponding to the target physical block is the first quantity; In response to the fact that there are multiple test quantities, multiple super physical blocks are selected as target physical blocks according to the starting block address of each super physical block, wherein the number of logical block addresses corresponding to each target physical block is less than or equal to the first quantity.
4. The method according to any one of claims 1-3, characterized in that, The step of generating a read command sequence corresponding to the target physical block includes: Based on the maximum data transfer size of the target storage device and the preset logical sector size, a reference number is calculated, where the reference number is the maximum number of logical block addresses that can be read by a single read command. Based on the number of logical block addresses corresponding to the target physical block and the number of references, a read command sequence is generated. The read command sequence includes multiple read commands, and each read command corresponds to multiple logical block addresses.
5. The method according to claim 4, characterized in that, The step of calculating the reference quantity based on the maximum data transfer size of the target storage device and the preset logical sector size includes: The ratio of the maximum data transfer size to the logical sector size is determined as the reference number.
6. The method according to claim 4, characterized in that, The step of generating a read command sequence based on the number of logical block addresses corresponding to the target physical block and the reference number includes: Based on a preset skip read count, a reference block address is determined. The skip read count is the number of logical block addresses that are skipped from the logical block addresses corresponding to the target physical block. The reference block address is the first logical block address read from the logical block addresses corresponding to the target physical block. Based on the reference block address and the reference quantity, multiple read commands are generated, wherein the number of logical block addresses read by each read command is less than or equal to the reference quantity; Combine all the read commands in sequence to obtain a read command sequence.
7. The method according to claim 4, characterized in that, The number of target storage devices is multiple, and the reference count is a value determined based on the initial read count value of the target physical block, the trigger count threshold, and the observation count threshold. The method further includes: Multiple read command sequences corresponding to the previous storage device are reused as the first read command sequence corresponding to the current storage device, and a second read command sequence corresponding to the newly determined target physical block is generated according to the newly determined target physical block in the current storage device. The previous storage device and the current storage device are any two adjacent target storage devices among multiple target storage devices sorted according to the test order. The first read command sequence and the second read command sequence are combined sequentially to obtain the current read command sequence corresponding to the current storage device; The reference number of data read operations are performed on the target physical block in the current storage device according to the current read command sequence, the trigger count threshold, and the observation count threshold.
8. The method according to claim 1, characterized in that, After performing a specified number of data read operations on each of the super physical blocks, the method further includes: Read the data from all the super physical blocks and determine the integrity of the read data.
9. The method according to claim 1, characterized in that, Before performing a reference number of data read operations on the target physical block based on the read command sequence and preset trigger number thresholds and observation number thresholds, the method further includes: All data in the target storage device is formatted, and preset data is written to the target storage device until the storage space of the target storage device is full.
10. A storage controller, characterized in that, The device includes a processor and a memory, the processor being communicatively connected to the memory, the memory storing program instructions executable by the processor, the program instructions being executed by the processor to cause the memory controller to perform the read interference test method as described in any one of claims 1-9.
11. A target storage device, characterized in that, It includes multiple super physical blocks and a storage controller as described in claim 10, wherein the storage controller is communicatively connected to each of the super physical blocks.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores processor-executable program instructions, which, when executed by the processor, cause the processor to perform the read interference test method as described in any one of claims 1-9.
