CN-114566206-B - SSD hard disk performance test method, system, equipment and medium based on read interference
Abstract
The invention provides an SSD hard disk performance test method based on read interference, which comprises the steps of obtaining a read interference threshold of an SSD hard disk, setting a read data count value of a data block of data in the SSD hard disk to exceed the read interference threshold, reading the data from the SSD hard disk, and calculating and analyzing the read speed of the read data. The invention also provides an SSD hard disk performance test system based on read interference, a computer device and a computer readable storage medium. According to the SSD hard disk performance test method and system based on the read interference, the read count value of data in the SSD hard disk is set as the read interference threshold of the SSD hard disk, and then the read test is performed to accurately obtain the read and write speed of the SSD hard disk under the condition of the read interference. And providing an accurate SSD hard disk read-write test data for SSD designers.
Inventors
- LUAN YUXUE
Assignees
- 山东云海国创云计算装备产业创新中心有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20220226
Claims (8)
- 1. The SSD hard disk performance test method based on read interference is characterized by comprising the following steps: acquiring a read interference threshold of the SSD hard disk, and setting a read data count value of a data block of data in the SSD hard disk to exceed the read interference threshold; reading data from the SSD hard disk, and calculating and analyzing the reading speed of the read data; the obtaining the read interference threshold of the SSD hard disk, and setting the read data count value of the data block of the data in the SSD hard disk to exceed the read interference threshold includes: Acquiring read data count values of all data blocks of the SSD hard disk, and taking the read data count value of the data block with the lowest read data count value as a read interference threshold of the SSD hard disk according to the read data count value of the data block, so that a full-disk read interference test is carried out on the SSD hard disk; The obtaining the read interference threshold of the SSD hard disk, and setting the read data count value of the data block of the data in the SSD hard disk to exceed the read interference threshold further includes: And acquiring the read data count values of all the data blocks of the SSD hard disk, and setting the read data count values of the data blocks of part or all of the data in the SSD hard disk as the read interference threshold of the SSD hard disk, so that the real use environment of the SSD hard disk is embodied.
- 2. The method of claim 1, wherein the setting of the read data count value of the data blocks of some or all of the data in the SSD hard disk to the read disturb threshold of the SSD hard disk comprises: setting a read data count value of a predetermined number of consecutive data blocks in the SSD hard disk as the read disturb threshold of the SSD hard disk, or And randomly setting the read data count value of a preset proportion of data blocks in the SSD hard disk as the read interference threshold value of the SSD hard disk.
- 3. The method of claim 1, wherein setting the read data count value of the data blocks of some or all of the data in the SSD hard disk to the read disturb threshold of the SSD hard disk further comprises: and setting the read data count value of a preset proportion of data blocks in the data blocks corresponding to the files under one or more directories as the read interference threshold of the SSD hard disk according to the directory structure in the SSD hard disk.
- 4. The method of claim 1, wherein the obtaining a read disturb threshold for the SSD hard disk and setting a read data count value for a data block of data in the SSD hard disk to exceed the read disturb threshold further comprises: and modifying the read data count value of the data block corresponding to the relational database by writing the relational database into the SSD hard disk, and testing the disk performance of the hard disk under the condition of read interference by reading and writing the data of the relational database.
- 5. The method of claim 4, wherein the testing the disk performance of the hard disk in the case of read disturbances by data read-write of the relational database comprises: Storing the same relational databases into a plurality of SSD hard disks, and setting the read data count value of a database corresponding to the data of the relational databases in part of the SSD hard disks as the read interference threshold of the SSD hard disks; And respectively reading the data in the relational databases from the SSD hard disks one by one in a database access mode, and simultaneously counting and comparing the speed of reading the databases from the SSD hard disks.
- 6. An SSD hard disk performance test system based on read disturb, comprising: The configuration module is configured to acquire a read interference threshold value of the SSD hard disk and set a read data count value of a data block of data in the SSD hard disk to exceed the read interference threshold value, wherein acquiring the read interference threshold value of the SSD hard disk and set the read data count value of the data block of data in the SSD hard disk to exceed the read interference threshold value comprises acquiring read data count values of all the data blocks of the SSD hard disk and taking the read data count value of the lowest data block of the read data count values as the read interference threshold value of the SSD hard disk so as to perform a full-disk read interference test on the SSD hard disk; and the test module is configured to read data from the SSD hard disk, calculate and analyze the reading speed of the read data.
- 7. A computer device, comprising: At least one processor, and A memory storing computer instructions executable on the processor, which when executed by the processor, perform the steps of the method of any one of claims 1-5.
- 8. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method of any one of claims 1-5.
Description
SSD hard disk performance test method, system, equipment and medium based on read interference Technical Field The invention belongs to the field of computer storage, and particularly relates to an SSD hard disk performance test method, system, equipment and readable storage medium based on read interference. Background In the field of computer storage, NAND (Not AND, meaning "NAND" refers to a storage mechanism of a computer flash disk, chinese is called flash memory) flash memory becomes a necessary choice for enterprise level AND civil level with the improvement of manufacturing process AND the reduction of manufacturing cost. Particularly, when the network speed is faster and faster, the data volume of network traffic data is more and more huge, and an SSD (Solid STATE DISK ) hard disk based on NAND is currently the only memory capable of meeting the explosive growth of data storage services. However, NAND has many problems such as erasing times, increased flash erasing times, abrasion of an oxide layer isolating floating gate electrons, poor insulation performance, and finally data errors, and data storage problems, namely, data stored in the flash memory disappear as time passes, because electrons in the floating gate come out. And read disturbs, as the name implies, when reading the flash memory, it affects the data, and when the number of times that it is read is excessive, it can cause the data correctness to be affected. Therefore, before the data is substantially affected (the read count of a block reaches the threshold a), the NAND data needs to be moved to a new block, erased again, and then ready for use, i.e., force gc (forced garbage collection). The erasing times and data storage of the NAND are often used as important indexes of an SSD hard disk, the service life of the SSD hard disk is influenced, and the problem of read interference is that the read-write speed of the actual service of the SSD is finally influenced due to the fact that the data is migrated to other storage blocks when the read interference mechanism is triggered during data reading, so that the use experience of SSD products and the robustness of the service of a client are influenced. Conventional implementations typically move data to other data blocks based on the memory block reaching the read threshold quickly, but this process is focused in a short time (storm problem) with significant impact on the front-end performance. In the existing method for testing the SSD hard disk, the influence of the read interference of the SSD hard disk on the read-write speed of the hard disk cannot be reflected, and instructive test data cannot be provided for manufacturing the SSD hard disk. Therefore, a hard disk testing method based on read interference is needed to accurately show the influence of the read interference mechanism of the SSD hard disk on the read and write of the hard disk data, so as to guide SSD developers to formulate a reasonable read interference processing mechanism. Disclosure of Invention In order to solve the above problems, the present invention provides a method for testing performance of an SSD hard disk based on read interference, including: acquiring a read interference threshold of the SSD hard disk, and setting a read data count value of a data block of data in the SSD hard disk to exceed the read interference threshold; And reading data from the SSD hard disk, and calculating and analyzing the reading speed of the read data. In some embodiments of the present invention, obtaining a read disturb threshold of the SSD hard disk, and setting a read data count value of a data block of data in the SSD hard disk to exceed the read disturb threshold includes: And acquiring the read data count values of all the data blocks of the SSD hard disk, and taking 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. In some embodiments of the present invention, obtaining a read disturb threshold of the SSD hard disk, and setting a read data count value of a data block of data in the SSD hard disk to exceed the read disturb threshold further includes: and acquiring the read data count values of all the data blocks of the SSD hard disk, and setting the read data count values of the data blocks of part or all of the data in the SSD hard disk as the read interference threshold of the SSD hard disk. In some embodiments of the present invention, setting the read data count value of the data block of some or all of the data in the SSD hard disk to the read disturb threshold of the SSD hard disk includes: setting a read data count value of a predetermined number of consecutive data blocks in the SSD hard disk as the read disturb threshold of the SSD hard disk, or And randomly setting the read data count value of a preset proportion of data blocks in the SSD hard disk as the read interference threshold value of the SSD hard disk. In some e