A read-interference-based SSD hard disk performance testing method, system, device and medium

By setting a read interference threshold for SSDs and simulating a read interference mechanism, the problem that existing testing methods cannot reflect the impact of read interference is solved, providing accurate read and write test data and improving the performance testing and user experience of SSDs.

CN114566206BActive Publication Date: 2026-05-08SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
Filing Date
2022-02-26
Publication Date
2026-05-08

AI Technical Summary

Technical Problem

Existing SSD testing methods cannot accurately reflect the impact of read interference on hard drive read and write speeds, resulting in a lack of guiding test data for SSD manufacturing and affecting the user experience and business robustness of SSD products.

Method used

By obtaining the read interference threshold of the SSD hard drive, setting the read data count value of the data block to exceed the threshold, simulating the read interference mechanism, calculating the data reading speed, and providing accurate read and write test data.

Benefits of technology

It enables accurate testing of SSD read and write performance in different application scenarios, helping developers to formulate reasonable read interference handling mechanisms, prevent read interference storms, and improve user experience and competitiveness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114566206B_ABST
    Figure CN114566206B_ABST
Patent Text Reader

Abstract

The application provides a read interference-based SSD hard disk performance test method, which comprises the following steps: obtaining a read interference threshold of an SSD hard disk, and setting a read data count value of a data block of data in the SSD hard disk to be greater than the read interference threshold; reading data from the SSD hard disk, and calculating and analyzing the read speed of the read data. The application also provides a read interference-based SSD hard disk performance test system, a computer device and a computer readable storage medium. Through the read interference-based SSD hard disk performance test method and system, the read data count value of the data in the SSD hard disk is set to the read interference threshold of the SSD hard disk, and then read test is performed to accurately obtain the read / write speed of the SSD hard disk under the read interference condition. An accurate SSD hard disk read / write test data is provided for SSD designers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of computer storage, and specifically relates to a method, system, device, and readable storage medium for SSD hard drive performance testing based on read interference. Background Technology

[0002] In the field of computer storage, NAND (Not AND, referring to the storage mechanism of computer flash drives, commonly known as flash memory) flash memory is increasingly becoming an essential choice for both enterprise and consumer applications due to advancements in manufacturing processes and reductions in production costs. Especially with today's ever-increasing network speeds and massive amounts of network traffic, NAND-based SSDs (Solid State Disks) are currently the only storage solution capable of meeting the explosive growth in data storage services.

[0003] However, NAND flash memory has many problems, such as write / erase cycles. Increased write / erase cycles wear down the oxide layer isolating the floating gate electrons, reducing insulation performance and ultimately leading to data errors. There are also data retention issues; data stored in the flash memory disappears over time because electrons escape from the floating gate. Finally, there's the read disturb problem, which, as the name suggests, affects data reads. Excessive reads can compromise data integrity. Therefore, before the data is substantially affected (the number of reads on a block reaches a threshold A), the data in the NAND flash memory needs to be moved to a new block, re-erase, and then stored for later use—a process known as forced garbage collection.

[0004] NAND flash memory's write cycles and data retention are often considered important SSD metrics, affecting their lifespan. Read interference, triggered during data reads, causes data to migrate to other storage blocks, ultimately impacting the SSD's read / write speed for real-world applications. This affects the user experience and the robustness of customer businesses. Traditional implementations typically move data to other blocks when a block is approaching its read threshold. However, this concentrated processing within a short period (storm problem) can significantly impact front-end performance. Furthermore, existing SSD testing methods fail to reflect the impact of read interference on read / write speeds and do not provide guiding test data for SSD manufacturing.

[0005] Therefore, there is an urgent need for a hard drive testing method based on read interference to accurately demonstrate the impact of SSD read interference mechanisms on hard drive data read and write, so as to guide SSD developers in formulating reasonable read interference handling mechanisms. Summary of the Invention

[0006] To address the above problems, this invention proposes a method for SSD hard drive performance testing based on read interference, comprising:

[0007] Obtain the read interference threshold of the SSD hard drive, and set the read data count value of the data block in the SSD hard drive to exceed the read interference threshold;

[0008] Data is read from the SSD hard drive, and the read speed of the data is calculated and analyzed.

[0009] In some embodiments of the present invention, obtaining the read interference threshold of the SSD hard disk and setting the read data count value of the data block in the SSD hard disk to exceed the read interference threshold includes:

[0010] Obtain the read data count values ​​of all data blocks of the SSD hard disk, and use the read data count value of the data block with the lowest read data count value as the read interference threshold of the SSD hard disk.

[0011] In some embodiments of the present invention, obtaining the read interference threshold of the SSD hard disk and setting the read data count value of the data block in the SSD hard disk to exceed the read interference threshold further includes:

[0012] Obtain the read data count values ​​of all data blocks of the SSD hard disk, and set the read data count values ​​of some or all data blocks in the SSD hard disk as the read interference threshold of the SSD hard disk.

[0013] In some embodiments of the present invention, setting the read data count value of some or all data blocks in the SSD hard disk as the read interference threshold of the SSD hard disk includes:

[0014] Set the read data count value of a predetermined number of consecutive data blocks in the SSD hard drive as the read interference threshold of the SSD hard drive; or

[0015] The read data count value of a predetermined proportion of data blocks in the SSD is randomly set as the read interference threshold of the SSD.

[0016] In some embodiments of the present invention, setting the read data count value of some or all data blocks in the SSD hard disk as the read interference threshold of the SSD hard disk further includes:

[0017] Based on the directory structure in the SSD, the read data count value of a predetermined proportion of data blocks in the data blocks corresponding to files under one or more directories is set as the read interference threshold of the SSD.

[0018] In some embodiments of the present invention, obtaining the read interference threshold of the SSD hard disk and setting the read data count value of the data block in the SSD hard disk to exceed the read interference threshold further includes:

[0019] By writing a relational database into the SSD, the read data count value of the data block corresponding to the relational database is modified, and the disk performance of the hard drive under read interference is tested through data read and write of the relational database.

[0020] In some embodiments of the present invention, testing the disk performance of the hard disk under read interference conditions through data read / write operations of the relational database includes:

[0021] The same relational database is stored in multiple SSD hard drives, and the read data count value of the database corresponding to the data of the relational database in some of the SSD hard drives is set as the read interference threshold of the SSD hard drive.

[0022] Data is read from the relational databases in multiple SSD hard drives one by one in a database access manner, and the speed of reading the databases from the multiple SSD hard drives is statistically analyzed and compared.

[0023] Another aspect of the present invention proposes an SSD hard drive performance testing system based on read interference, comprising:

[0024] The configuration module is configured to obtain the read interference threshold of the SSD hard disk and set the read data count value of the data block in the SSD hard disk to exceed the read interference threshold;

[0025] A testing module is configured to read data from the SSD hard drive and calculate and analyze the read speed of the data.

[0026] Another aspect of the present invention provides a computer device comprising:

[0027] At least one processor; and

[0028] A memory storing computer instructions executable on the processor, which, when executed by the processor, implement the steps of any of the methods described in the above embodiments.

[0029] Another aspect of the present invention provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of any of the methods described in the above embodiments.

[0030] The present invention proposes an SSD performance testing method based on read interference. By setting the read data count value of the data in the SSD as the read interference threshold of the SSD, and then performing read tests, the read and write speeds of the SSD under read interference conditions can be accurately obtained, providing SSD designers with accurate SSD read and write test data. Attached Figure Description

[0031] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0032] Figure 1 This is a flowchart of an SSD hard drive performance testing method based on read interference proposed in an embodiment of the present invention;

[0033] Figure 2 A schematic diagram of the structure of an SSD hard drive performance testing system based on read interference provided in an embodiment of the present invention;

[0034] Figure 3 A schematic diagram of the structure of a computer device provided in an embodiment of the present invention;

[0035] Figure 4 This is a schematic diagram of the structure of a computer-readable storage medium provided in an embodiment of the present invention. Detailed Implementation

[0036] To make the objectives, technical solutions, and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below with reference to specific examples and the accompanying drawings.

[0037] like Figure 1 As shown, this invention proposes a method for testing SSD hard drive performance based on read interference, including:

[0038] Step S1: Obtain the read interference threshold of the SSD hard disk, and set the read data count value of the data block in the SSD hard disk to exceed the read interference threshold;

[0039] Step S2: Read data from the SSD hard drive, and calculate and analyze the data reading speed.

[0040] In an embodiment of the present invention, in step S1, the read interference threshold set by the SSD hard drive is obtained. The read interference threshold is a threshold set by the SSD hard drive to handle read interference issues. Specifically, after a data block in the SSD hard drive reaches the threshold, the content of the corresponding data block is migrated to a new data block for storage, for example, after 1000 reads. When a data block reaches 1000 reads, the content of that data block is migrated to a new data block. To satisfy or trigger the SSD hard drive's read interference mechanism, during testing, the count value of the data blocks in the SSD hard drive is set to be the same as the hard drive's read interference threshold. When this data is read, the read interference mechanism can be triggered to migrate the data.

[0041] In step S2, after setting the read data count value of the corresponding data block, data is read from the SSD hard drive, and the data read speed is calculated as the result of the SSD hard drive performance test.

[0042] In some embodiments of the present invention, for an empty SSD hard drive, a step of writing data to the SSD hard drive is also required, that is, writing a certain amount of data to the test SSD hard drive or writing the entire disk.

[0043] In some embodiments of the present invention, obtaining the read interference threshold of the SSD hard disk and setting the read data count value of the data block in the SSD hard disk to exceed the read interference threshold further includes:

[0044] Obtain the read data count values ​​of all data blocks of the SSD hard disk, and use the read data count value of the data block with the lowest read data count value as the read interference threshold of the SSD hard disk.

[0045] In this embodiment, when setting the relationship between the read data count value of a data block and the read interference threshold of the SSD, the read interference threshold of the SSD is directly set to the value of the data block with the smallest read data count value among all data blocks in the SSD. That is, it is not necessary to modify the metadata of all data blocks simultaneously; only the read interference threshold in the control logic of the SSD's controller needs to be modified. In other words, a full-disk read interference test is performed on the SSD. Since the read data count value of each data block is equal to the read interference threshold, when reading data from a data block on the SSD, the read interference mechanism is triggered, migrating the data in the data block to a new data block and simultaneously deleting and clearing the contents of the old data block.

[0046] In some embodiments of the present invention, obtaining the read interference threshold of the SSD hard disk and setting the read data count value of the data block in the SSD hard disk to exceed the read interference threshold includes:

[0047] Obtain the read data count values ​​of all data blocks of the SSD hard disk, and set the read data count values ​​of some or all data blocks in the SSD hard disk as the read interference threshold of the SSD hard disk.

[0048] In this embodiment, to fully reflect the real-world usage environment of the SSD, when modifying the read data count value of data blocks in the SSD, only the read data count value of a portion of the data blocks is modified to the read interference threshold, while the read data count value of other data blocks is the actual number of reads. Under these circumstances, during read data testing, some data blocks will trigger data migration, while others will not.

[0049] In some embodiments of the present invention, the read data count values ​​of a portion of data blocks are modified to the read interference threshold of the SSD hard drive in a physically continuous manner, and read and write tests are performed to detect the disk read and write performance of the SSD hard drive under continuous read interference data block migration.

[0050] In some embodiments of the present invention, based on the capacity of the SSD hard drive (the number of data blocks used to store data), a certain number of data block read count values ​​are set as the read interference threshold of the SSD hard drive using a random algorithm.

[0051] Specifically, the number and sorting of data blocks used for data storage after partitioning the SSD are determined. A certain number of data blocks are then selected using a random algorithm, and their read count values ​​are set as the read interference threshold. These modified data blocks may be contiguous or scattered. Data read tests are then performed on the SSD to verify its disk read performance under a non-contiguous read interference mechanism.

[0052] In some embodiments of the present invention, the above-mentioned method of selecting a certain number of data blocks by a random algorithm to modify the read data count value can also be combined with a random read / write test. That is, the address of the data block to be accessed in the random read test is determined by the random read / write test method, and then a portion of the read data count value of the data block to be accessed in the random read test is set as the read interference threshold of the SSD hard drive by a random algorithm, and then the random read test is performed.

[0053] Specifically, this test assumes that data is randomly read from 100 data blocks on an SSD. These 100 data blocks are not contiguous but scattered. Then, 10 data blocks are selected from these 100 as data blocks for read interference testing, and the read data count value in these 10 data blocks is set to 1000. Finally, a random read test is performed, and the read speed is calculated.

[0054] In some embodiments of the present invention, setting the read data count value of some or all data blocks in the SSD hard disk as the read interference threshold of the SSD hard disk includes:

[0055] Set the read data count value of a predetermined number of consecutive data blocks in the SSD hard drive as the read interference threshold of the SSD hard drive; or

[0056] The read data count value of a predetermined proportion of data blocks in the SSD is randomly set as the read interference threshold of the SSD.

[0057] In this embodiment, when setting the read data count value as the read interference threshold for the SSD hard drive, a periodic and continuous setting method can be adopted. That is, every certain number of data blocks, the read data count value of a certain number of data blocks is set as the read interference threshold for the SSD hard drive. For example, every 1000 data blocks, the read data count value of data blocks 0-999 is set to 1000, while the read data count value of data blocks 1000-1999 remains at the actual number of reads. This is to test the impact of the scheduling or triggering method of the SSD hard drive's read interference mechanism on the SSD hard drive's read speed.

[0058] In some embodiments of the present invention, a predetermined proportion of the read data count value of a portion of the data blocks can be set as a read interference threshold. The proportion can be varied in steps, such as 10%, 20%, 30%, up to 100%.

[0059] In some embodiments of the present invention, when setting the read data count value of data blocks at a predetermined ratio, the predetermined ratio of data blocks can be determined by continuous allocation or random allocation. For example, when setting the read data count value of 10% of data blocks as the read interference threshold, the read data count value of the first 10% of data blocks on the hard drive can be set to 1000 according to the order of the data blocks. The impact of the read interference mechanism on the read and write performance of the SSD hard drive under different remaining space conditions during use is evaluated by setting different ratios of data blocks for read interference testing.

[0060] In some embodiments of the present invention, a predetermined proportion of data blocks can be distributed among the data blocks of the SSD hard drive using a random algorithm before data read tests are performed. This simulates the different number of data reads required by the SSD hard drive in real-world scenarios due to variations in business data.

[0061] In some embodiments of the present invention, setting the read data count value of some or all data blocks in the SSD hard disk as the read interference threshold of the SSD hard disk further includes:

[0062] Based on the directory structure in the SSD, the read data count value of a predetermined proportion of data blocks in the data blocks corresponding to files under one or more directories is set as the read interference threshold of the SSD.

[0063] In this embodiment, based on the structure of the directory files in the SSD, the read data count value of the data blocks corresponding to the files in a certain folder can be set as the read interference threshold. Then, the files are read and the read speed of the SSD is calculated to simulate the impact of read interference on application loading when popular applications are loading.

[0064] In some embodiments of the present invention, obtaining the read interference threshold of the SSD hard disk and setting the read data count value of the data block in the SSD hard disk to exceed the read interference threshold further includes:

[0065] By writing a relational database into the SSD, the read data count value of the data block corresponding to the relational database is modified, and the disk performance of the hard drive under read interference is tested through data read and write of the relational database.

[0066] In this embodiment, the data used for the read interference test on the SSD can be in the form of a relational database. One or more database files are written to the SSD. Based on the logical addresses in the database files, the read data count values ​​of the data blocks corresponding to all database files are set as the read interference threshold. Then, using database commands, all records in the database on the SSD are read through database access methods. The ratio of the time consumed to read a complete data block to the number of records read is calculated to obtain the database IO rate under the SSD read interference mechanism. Simultaneously, the hard disk read speed during the database file reading process is also calculated.

[0067] In some embodiments of the present invention, testing the disk performance of the hard disk under read interference conditions through data read / write operations of the relational database includes:

[0068] The same relational database is stored in multiple SSD hard drives, and the read data count value of the database corresponding to the data of the relational database in some of the SSD hard drives is set as the read interference threshold of the SSD hard drive.

[0069] Data is read from the relational databases in multiple SSD hard drives one by one in a database access manner, and the speed of reading the databases from the multiple SSD hard drives is statistically analyzed and compared.

[0070] In this embodiment, a comparative test method using multiple SSDs is employed. This involves writing a database of the same size to multiple SSDs, and setting the read data count value of the corresponding data blocks of half or a certain proportion of the database file on each SSD as a read interference threshold. Read data tests are then performed on each of the multiple SSDs using a database migration method, and the database I / O rate of the database on each SSD and the read speed of the SSDs are calculated for each.

[0071] Specifically, assume that database files of the same size and structure, named A1 to A6, are written to six SSDs. The read count values ​​of the corresponding data blocks on SSDs A1 to A3 are set to the read interference threshold. The read count values ​​of the corresponding data blocks on SSDs A4 to A6 are set to normal values ​​(below the read interference threshold). Finally, A1 to A6 are synchronized to the six identical SSDs B1 to B6 using a database synchronization mechanism, and the synchronization log is output and saved (the migration time is recorded and saved for each migrated data block). The read speed of these six SSDs (A1 to A6) is calculated. Using the database synchronization logs and the database migration logs, the migration completion time of the same database records on different SSDs is compared; that is, the migration time for each database record in A1 to A3 is compared with the migration time for each data block in A4 to A6, and the impact of the read interference mechanism on database data access speed is analyzed. Simultaneously, based on the calculated read speeds of the corresponding SSDs A1 to A6, the impact of the SSD read interference mechanism on SSD read performance is tested.

[0072] In some embodiments of this invention, three SSDs are used to perform cyclic synchronous read / write speed tests on the data in the three hard drives based on a database data synchronization mechanism. Specifically, data blocks with the same structure but different data records are written to the three SSDs A1 to A3 respectively. The database records of A1 are written to A2, the database records of A2 are written to A3, and the database records of A3 are written to A1. At the same time, the read data count values ​​of the data blocks corresponding to the database records of A1 to A3 are all set to a read interference threshold, for example, 1000. Then, the read / write tests with read interference are performed on the three SSDs while the data of the three hard drives is read and written simultaneously through the database synchronization command. Since the three SSDs read and write data to each other in a cyclic manner, each hard drive simultaneously reads data and sends it to other hard drives (in the form of database synchronization data), and also obtains data from other SSDs and writes it to its own storage space. In addition, the data read by each hard drive also contains databases with read interference. The read / write performance of the SSDs under the read interference mechanism can be measured.

[0073] This invention proposes a performance testing method for SSDs based on read interference. By simulating read interference tests triggered by SSDs in different application scenarios, it achieves accurate testing of SSD read and write performance under various conditions. SSD developers or manufacturers can use the test results to formulate detailed strategies for corresponding read interference mechanisms, preventing read interference storms that could cause users to experience data write or read speeds below the advertised limits. This is particularly important in the enterprise SSD field, where the daily read and write volumes are very high, easily triggering read interference mechanisms. Therefore, the testing method provided by this invention can accurately measure read interference mechanisms triggered by NAND flash memory limitations in different scenarios. Developers can then develop reasonable read interference mechanisms based on the test results to prevent read interference storms, which could negatively impact user experience and enhance product competitiveness.

[0074] like Figure 2 As shown, another aspect of the present invention proposes an SSD hard drive performance testing system based on read interference, comprising:

[0075] Configuration module 1 is configured to obtain the read interference threshold of the SSD hard disk and set the read data count value of the data block in the SSD hard disk to exceed the read interference threshold;

[0076] Test module 2 is configured to read data from the SSD hard drive, calculate and analyze the read speed of the data.

[0077] like Figure 3 As shown, another aspect of the present invention also provides a computer device comprising:

[0078] At least one processor 21; and

[0079] Memory 22, storing computer instructions 23 executable by the processor, wherein the instructions 23, when executed by the processor 21, implement a method for SSD hard drive performance testing based on read interference, including:

[0080] Obtain the read interference threshold of the SSD hard drive, and set the read data count value of the data block in the SSD hard drive to exceed the read interference threshold;

[0081] Data is read from the SSD hard drive, and the read speed of the data is calculated and analyzed.

[0082] In some embodiments of the present invention, obtaining the read interference threshold of the SSD hard disk and setting the read data count value of the data block in the SSD hard disk to exceed the read interference threshold further includes:

[0083] Obtain the read data count values ​​of all data blocks of the SSD hard disk, and use the read data count value of the data block with the lowest read data count value as the read interference threshold of the SSD hard disk.

[0084] In some embodiments of the present invention, obtaining the read interference threshold of the SSD hard disk and setting the read data count value of the data block in the SSD hard disk to exceed the read interference threshold includes:

[0085] Obtain the read data count values ​​of all data blocks of the SSD hard disk, and set the read data count values ​​of some or all data blocks in the SSD hard disk as the read interference threshold of the SSD hard disk.

[0086] In some embodiments of the present invention, setting the read data count value of some or all data blocks in the SSD hard disk as the read interference threshold of the SSD hard disk includes:

[0087] Set the read data count value of a predetermined number of consecutive data blocks in the SSD hard drive as the read interference threshold of the SSD hard drive; or

[0088] The read data count value of a predetermined proportion of data blocks in the SSD is randomly set as the read interference threshold of the SSD.

[0089] In some embodiments of the present invention, setting the read data count value of some or all data blocks in the SSD hard disk as the read interference threshold of the SSD hard disk further includes:

[0090] Based on the directory structure in the SSD, the read data count value of a predetermined proportion of data blocks in the data blocks corresponding to files under one or more directories is set as the read interference threshold of the SSD.

[0091] In some embodiments of the present invention, obtaining the read interference threshold of the SSD hard disk and setting the read data count value of the data block in the SSD hard disk to exceed the read interference threshold further includes:

[0092] By writing a relational database into the SSD, the read data count value of the data block corresponding to the relational database is modified, and the disk performance of the hard drive under read interference is tested through data read and write of the relational database.

[0093] In some embodiments of the present invention, testing the disk performance of the hard disk under read interference conditions through data read / write operations of the relational database includes:

[0094] The same relational database is stored in multiple SSD hard drives, and the read data count value of the database corresponding to the data of the relational database in some of the SSD hard drives is set as the read interference threshold of the SSD hard drive.

[0095] Data is read from the relational databases in multiple SSD hard drives one by one in a database access manner, and the speed of reading the databases from the multiple SSD hard drives is statistically analyzed and compared.

[0096] like Figure 4 As shown, another aspect of the present invention provides a computer-readable storage medium 401, which stores a computer program 402. When executed by a processor, the computer program 402 implements a method for SSD hard drive performance testing based on read interference, including:

[0097] Obtain the read interference threshold of the SSD hard drive, and set the read data count value of the data block in the SSD hard drive to exceed the read interference threshold;

[0098] Data is read from the SSD hard drive, and the read speed of the data is calculated and analyzed.

[0099] In some embodiments of the present invention, obtaining the read interference threshold of the SSD hard disk and setting the read data count value of the data block in the SSD hard disk to exceed the read interference threshold further includes:

[0100] Obtain the read data count values ​​of all data blocks of the SSD hard disk, and use the read data count value of the data block with the lowest read data count value as the read interference threshold of the SSD hard disk.

[0101] In some embodiments of the present invention, obtaining the read interference threshold of the SSD hard disk and setting the read data count value of the data block in the SSD hard disk to exceed the read interference threshold includes:

[0102] Obtain the read data count values ​​of all data blocks of the SSD hard disk, and set the read data count values ​​of some or all data blocks in the SSD hard disk as the read interference threshold of the SSD hard disk.

[0103] In some embodiments of the present invention, setting the read data count value of some or all data blocks in the SSD hard disk as the read interference threshold of the SSD hard disk includes:

[0104] Set the read data count value of a predetermined number of consecutive data blocks in the SSD hard drive as the read interference threshold of the SSD hard drive; or

[0105] The read data count value of a predetermined proportion of data blocks in the SSD is randomly set as the read interference threshold of the SSD.

[0106] In some embodiments of the present invention, setting the read data count value of some or all data blocks in the SSD hard disk as the read interference threshold of the SSD hard disk further includes:

[0107] Based on the directory structure in the SSD, the read data count value of a predetermined proportion of data blocks in the data blocks corresponding to files under one or more directories is set as the read interference threshold of the SSD.

[0108] In some embodiments of the present invention, obtaining the read interference threshold of the SSD hard disk and setting the read data count value of the data block in the SSD hard disk to exceed the read interference threshold further includes:

[0109] By writing a relational database into the SSD, the read data count value of the data block corresponding to the relational database is modified, and the disk performance of the hard drive under read interference is tested through data read and write of the relational database.

[0110] In some embodiments of the present invention, testing the disk performance of the hard disk under read interference conditions through data read / write operations of the relational database includes:

[0111] The same relational database is stored in multiple SSD hard drives, and the read data count value of the database corresponding to the data of the relational database in some of the SSD hard drives is set as the read interference threshold of the SSD hard drive.

[0112] Data is read from the relational databases in multiple SSD hard drives one by one in a database access manner, and the speed of reading the databases from the multiple SSD hard drives is statistically analyzed and compared.

[0113] The above are exemplary embodiments disclosed in this invention. However, it should be noted that various changes and modifications can be made without departing from the scope of the embodiments of this invention as defined by the claims. The functions, steps, and / or actions of the methods according to the disclosed embodiments described herein do not need to be performed in any particular order. Furthermore, although the elements disclosed in the embodiments of this invention may be described or claimed individually, they may be understood as multiple unless explicitly limited to a singular number.

[0114] It should be understood that, as used herein, the singular form “a” is intended to include the plural form as well, unless the context clearly supports an exception. It should also be understood that, as used herein, “and / or” refers to any and all possible combinations of one or more of the associated listed items.

[0115] The embodiment numbers disclosed in the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0116] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.

[0117] Those skilled in the art should understand that the discussion of any of the above embodiments is merely exemplary and is not intended to imply that the scope of the invention (including the claims) is limited to these examples. Within the framework of the invention, technical features of the above embodiments or different embodiments can be combined, and many other variations of the different aspects of the invention as described above exist, which are not provided in the details for the sake of brevity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the invention should be included within the protection scope of the invention.

Claims

1. A method for testing SSD hard drive performance based on read interference, characterized in that, include: Obtain the read interference threshold of the SSD hard drive, and set the read data count value of the data block in the SSD hard drive to exceed the read interference threshold; Read data from the SSD hard drive, calculate and analyze the data read speed; The step of obtaining the read interference threshold of the SSD hard drive and setting the read data count value of the data block in the SSD hard drive to exceed the read interference threshold includes: The read data count values ​​of all data blocks of the SSD are obtained, and the read data count value of the data block with the lowest read data count value is used as the read interference threshold of the SSD, thereby performing a full-disk read interference test on the SSD. The step of obtaining the read interference threshold of the SSD hard drive and setting the read data count value of the data block in the SSD hard drive to exceed the read interference threshold further includes: The read data count values ​​of all data blocks of the SSD are obtained, and the read data count values ​​of some or all data blocks in the SSD are set as the read interference threshold of the SSD, thereby reflecting the real usage environment of the SSD.

2. The method according to claim 1, characterized in that, Setting the read data count value of some or all of the data in the SSD hard disk as the read interference threshold of the SSD hard disk includes: Set the read data count value of a predetermined number of consecutive data blocks in the SSD hard drive as the read interference threshold of the SSD hard drive; or The read data count value of a predetermined proportion of data blocks in the SSD is randomly set as the read interference threshold of the SSD.

3. The method according to claim 1, characterized in that, The step of setting the read data count value of some or all of the data in the SSD hard disk as the read interference threshold of the SSD hard disk further includes: Based on the directory structure in the SSD, the read data count value of a predetermined proportion of data blocks in the data blocks corresponding to files under one or more directories is set as the read interference threshold of the SSD.

4. The method according to claim 1, characterized in that, The step of obtaining the read interference threshold of the SSD hard drive and setting the read data count value of the data block in the SSD hard drive to exceed the read interference threshold further includes: By writing a relational database into the SSD, the read data count value of the data block corresponding to the relational database is modified, and the disk performance of the hard drive under read interference is tested through data read and write of the relational database.

5. The method according to claim 4, characterized in that, The disk performance test conducted via data read / write operations using the relational database under read interference conditions includes: The same relational database is stored in multiple SSD hard drives, and the read data count value of the database corresponding to the data of the relational database in some of the SSD hard drives is set as the read interference threshold of the SSD hard drive. Data is read from the relational databases in multiple SSD hard drives one by one in a database access manner, and the speed of reading the databases from the multiple SSD hard drives is statistically analyzed and compared.

6. A performance testing system for SSD hard drives based on read interference, characterized in that, include: The configuration module is configured to obtain the read interference threshold of the SSD hard drive and set the read data count value of the data blocks in the SSD hard drive to exceed the read interference threshold. Obtaining the read interference threshold of the SSD hard drive and setting the read data count value of the data blocks in the SSD hard drive to exceed the read interference threshold includes: obtaining the read data count value of all data blocks of the SSD hard drive, and using the read data count value of the data block with the lowest read data count value as the read interference threshold of the SSD hard drive, thereby performing a full-disk read interference test on the SSD hard drive; obtaining the read interference threshold of the SSD hard drive and setting the read data count value of the data blocks in the SSD hard drive to exceed the read interference threshold also includes: obtaining the read data count value of all data blocks of the SSD hard drive, and setting the read data count value of some or all data blocks in the SSD hard drive as the read interference threshold of the SSD hard drive, thereby reflecting the real-world usage environment of the SSD hard drive. A testing module is configured to read data from the SSD hard drive and calculate and analyze the read speed of the data.

7. A computer device, characterized in that, include: At least one processor; as well as A memory storing computer instructions executable on the processor, which, when executed by the processor, implement the steps of the method according to any one of claims 1-5.

8. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1-5.

Citation Information

Patent Citations

  • Read disturb detection

    CN105097044A

  • Method and device for testing log recording function of BMC (Baseboard Management Controller)

    CN105955858A