Method and device for testing performance of solid state disk
By dividing and performing sequential and random write operations in the storage space of the solid-state drive, and controlling the storage time at the target temperature, the problem of too long data movement intervals in the existing technology is solved, and a more accurate and efficient solid-state drive is achieved. Reliability testing.
Patent Information
- Application Number
- CN202410543486.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-30
- Publication Date
- 2024-08-27
AI Technical Summary
The existing solid-state drive reliability testing method cannot effectively conduct testing in real scenarios in a short time due to the long data movement interval. Moreover, the method of modifying the threshold can only test at the code level and cannot predict the performance in real testing scenarios. Condition.
By dividing the first storage space and the second storage space in the storage space of the solid-state drive, sequential writing and random writing operations are performed respectively, and the storage time of the solid-state drive is controlled under the target temperature state, simulating real storage scenarios and shortening the data storage time. Move interval time to improve test accuracy.
It is possible to significantly shorten the data movement interval required for solid-state drive reliability testing on the basis of simulating real storage scenarios, improving the accuracy and authenticity of the test.
Smart Images

Figure CN118550802A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of solid state hard disks, and in particular to a performance testing method and device for a solid state hard disk. Background Art
[0002] Solid State Drive (SSD) is a data storage device that uses flash memory chips as non-volatile storage media. Compared with traditional mechanical hard disk drives (HDD), SSD provides faster read and write speeds, lower power consumption, lighter weight, smaller size, and higher shock resistance, which makes SSD widely used in personal computers, servers, data centers and other fields. With the development of storage technology, existing SSD products already support NVMe1.4 or NVMe2.0 protocols, and are equipped with high-performance NAND and controllers, providing different capacity options (such as 0.96T, 1.60T, 3.2T, etc.) to meet the needs of storage density and scalability.
[0003] As the core component of SSD, the working principle of NAND Flash determines the characteristics of SSD data storage, including the key data retention problem. Data retention is an important characteristic of non-volatile memory (such as SSD and USB flash drive). It represents the ability of storage devices to keep data from being lost after power failure. In related technologies, rewriting data that is about to fail is an effective way to extend SSD data retention. That is, by scanning the data stored in NAND in the background, when it is found that the data error rate is close to the ability of LDPC hard decoding, this part of the data will be moved, written to a new address and the original storage space will be released to extend the data retention time after the SSD power failure. Therefore, reliability testing to detect the integrity of data after data migration is particularly important.
[0004] In the reliability testing method of the related technology, since the data migration time interval is too long (data migration is performed once every three months at room temperature of 40°C), if you want to effectively perform reliability testing on data migration in a short time, you usually adopt the method of modifying the threshold, that is, modifying the trigger condition of data migration through serial port commands, so that the data can be moved in a shorter time, thereby achieving the purpose of testing data reliability. However, this method has certain drawbacks. The modified threshold is not triggered by a real scenario, and can only test the process at the code level. It cannot achieve the purpose of real testing and cannot anticipate various situations in real test scenarios. Summary of the invention
[0005] In view of the above problems, a method and device for testing the performance of a solid state drive is proposed to overcome the above problems or at least partially solve the above problems, including:
[0006] A performance testing method for a solid state hard disk, wherein the storage space of the solid state hard disk includes at least a first storage space and a second storage space, and the method comprises:
[0007] Performing a sequential write operation on the first storage space according to a first write number, and performing a random write operation on the second storage space according to a second write number;
[0008] Recording the data contents written by the sequential write operation and the random write operation;
[0009] Powering off the solid state hard disk and controlling the solid state hard disk to be in a target temperature state;
[0010] Determining a target duration according to a temperature value of the target temperature state, and powering on the solid state hard disk after controlling the solid state hard disk to be in the target temperature state for the target duration;
[0011] Data verification is performed on the first storage space and the second storage space according to the data contents written by the sequential write operation and the random write operation.
[0012] Optionally, determining the target duration according to the temperature value of the target temperature state includes:
[0013] Obtaining a standard storage temperature value of the solid state hard disk, and determining a time acceleration coefficient according to the standard storage temperature value and a temperature value of the target temperature state;
[0014] Determining the target duration according to the time acceleration coefficient and the standard storage time corresponding to the standard storage temperature value;
[0015] The time acceleration coefficient is calculated using the following time acceleration coefficient formula:
[0016] Af=exp(-EA / k×(1 / (TC+T1)-1 / (TC+T2)))
[0017] Wherein, Af is the time acceleration coefficient, EA is the activation energy of the solid state drive storage particles, k is the Boltzmann constant, TC is the Celsius-Kelvin conversion constant value, T1 is the temperature value of the target temperature state, and T2 is the standard storage temperature value;
[0018] The target duration is calculated using the following target duration formula:
[0019] H1=H2 / Af
[0020] Wherein, H1 is the target duration, Af is the time acceleration factor, and H2 is the standard storage time;
[0021] The step of determining the target duration according to the time acceleration coefficient and the standard storage time corresponding to the standard storage temperature value includes:
[0022] The target duration is determined according to the time acceleration coefficient, the standard storage time and the target duration formula.
[0023] Optionally, the sequentially writing operation to the first storage space according to the first writing number includes:
[0024] The first storage space is sequentially written using buffers of different byte sizes according to the first write times.
[0025] Optionally, performing a random write operation on the second storage space according to a second write number includes:
[0026] A random write operation is performed on the second storage space using buffers of different byte sizes according to the second write number.
[0027] Optionally, before performing a sequential write operation on the first storage space according to a first write number of times and performing a random write operation on the second storage space according to a second write number of times, the method further includes:
[0028] Obtain and record health status information of the solid state drive.
[0029] Optionally, after performing data verification on the first storage space and the second storage space according to the data contents written by the sequential write operation and the random write operation, the method further includes:
[0030] Perform a health status check on the solid state hard disk according to the health status information of the solid state hard disk.
[0031] Optionally, performing data verification on the first storage space and the second storage space according to the data content written by the sequential write operation and the random write operation includes:
[0032] A preset data verification time interval and a preset data verification number are obtained, and data verification is performed on the first storage space and the second storage space according to the data content written by the sequential write operation and the random write operation, the preset data verification time interval and the preset data verification number.
[0033] A performance test device for a solid state hard disk, wherein the storage space of the solid state hard disk includes at least a first storage space and a second storage space, and the device comprises:
[0034] a write operation execution module, configured to perform a sequential write operation on the first storage space according to a first write number of times, and to perform a random write operation on the second storage space according to a second write number of times;
[0035] A written data content recording module, used to record the data content written by the sequential write operation and the random write operation;
[0036] A target temperature state control module, used to power off the solid state hard disk and control the solid state hard disk to be in a target temperature state;
[0037] A target temperature state maintaining module, used to determine a target duration according to a temperature value of the target temperature state, and to power on the solid state hard disk after controlling the solid state hard disk to be in the target temperature state for the target duration;
[0038] The data checking module is used to perform data checking on the first storage space and the second storage space according to the data content written by the sequential writing operation and the random writing operation.
[0039] An electronic device comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the above-mentioned solid state hard disk performance testing method when executed by the processor.
[0040] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the solid-state hard disk performance test method described above is implemented.
[0041] The embodiments of the present invention have the following advantages:
[0042] In an embodiment of the present invention, a performance test method for a solid-state hard disk is proposed, wherein the storage space of the solid-state hard disk includes at least a first storage space and a second storage space, and a sequential write operation is performed on the first storage space according to a first write number, and then a random write operation is performed on the second storage space according to a second write number; and the data content written by the sequential write operation and the random write operation is recorded; then the solid-state hard disk is powered off, and the solid-state hard disk is controlled to be in a target temperature state; then, according to the temperature value of the target temperature state, a target duration is determined, and after the solid-state hard disk is controlled to be in the target temperature state for a target duration, the solid-state hard disk is powered on; thereby, according to the sequential write operation and the random write operation, the solid-state hard disk is powered on. The data content written by the write operation is used to perform data verification on the first storage space and the second storage space, thereby achieving the same data change effect as long-term storage of the solid-state hard disk under normal temperature conditions by controlling the storage time of the solid-state hard disk under experimental temperature conditions. This greatly shortens the data movement interval required for the solid-state hard disk reliability test while simulating the actual storage scenario effect. In addition, by dividing the storage space of the solid-state hard disk into a first storage space and a second storage space and performing sequential write and random write operations respectively, the read and write scenarios of the solid-state hard disk in actual use can be truly simulated on the basis of simulating the actual storage scenario effect, thereby further improving the accuracy of the solid-state hard disk reliability test. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0044] Figure 1 is a flowchart of the steps of a performance testing method for a solid state drive provided by some embodiments of the present invention;
[0045] Figure 2 It is a schematic diagram of the principle of data loss of a solid state drive in the related art provided by some embodiments of the present invention;
[0046] Figure 3 is a diagram of time acceleration coefficient and its calculation-related parameters provided by some embodiments of the present invention;
[0047] Figure 4 is a flowchart of the steps of another method for testing the performance of a solid state drive provided by some embodiments of the present invention;
[0048] Figure 5 is a general execution flow chart of the present invention provided by some embodiments of the present invention;
[0049] Figure 6 is a schematic diagram of the internal structure of the ASIC processing system of the present invention provided by some embodiments of the present invention;
[0050] Figure 7 It is a structural schematic diagram of a performance testing device for a solid state hard disk provided in some embodiments of the present invention. DETAILED DESCRIPTION
[0051] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] Solid-state drive is a data storage device that uses flash memory chips as non-volatile storage media. Compared with traditional mechanical hard disks, SSDs provide faster read and write speeds, lower power consumption, lighter weight, smaller size, and higher shock resistance, which makes SSDs widely used in personal computers, servers, data centers, and other fields. With the development of storage technology, existing SSD products already support NVMe1.4 or NVMe2.0 protocols, and are equipped with high-performance NAND and controllers, providing different capacity options (such as 0.96T, 1.60T, 3.2T, etc.) to meet the needs of storage density and scalability.
[0053] As the core component of SSD, the working principle of NAND Flash determines the characteristics of SSD data storage, including the key data retention problem; data retention is an important characteristic of non-volatile memory, which represents the ability of storage devices to keep data from being lost after power failure. In related technologies, rewriting data that is about to fail is an effective way to extend SSD data retention. That is, by scanning the data stored in NAND in the background, when it is found that the data error rate is close to the ability of LDPC hard decoding, this part of the data will be moved, written to a new address and the original storage space will be released to extend the data retention time after the SSD is powered off. Therefore, reliability testing to detect the integrity of data after data migration is particularly important.
[0054] In the reliability testing method of the related technology, since the data migration time interval is too long (data migration is performed once every three months at room temperature of 40°C), if you want to effectively perform reliability testing on data migration in a short time, you usually adopt the method of modifying the threshold, that is, modifying the trigger condition of data migration through serial port commands, so that the data can be moved in a shorter time, thereby achieving the purpose of testing data reliability. However, this method has certain drawbacks. The modified threshold is not triggered by a real scenario, and can only test the process at the code level. It cannot achieve the purpose of real testing and cannot anticipate various situations in real test scenarios.
[0055] In the embodiment of the present invention, based on the core technical concept of controlling the storage time of the solid state drive under the experimental temperature conditions to achieve the same data change effect as that of the solid state drive stored for a long time under normal temperature conditions, the performance test method of the solid state drive in the related art is improved. The present invention will be described in detail below with reference to the accompanying drawings:
[0056] Reference Figure 1 , shows a flowchart of a method for testing the performance of a solid state drive provided by some embodiments of the present invention, wherein the storage space of the solid state drive includes at least a first storage space and a second storage space, and specifically may include the following steps:
[0057] Step 101, performing a sequential write operation on the first storage space according to a first write number, and performing a random write operation on the second storage space according to a second write number;
[0058] In order to facilitate understanding of the specific implementation of the technical solution provided by the present invention, some nouns involved in the content of the present invention are now explained:
[0059] Data retention: Data retention refers to the ability of non-volatile memory to retain the data stored in it. In fact, whether it is SSD or USB flash drive, they are both the most commonly used "non-volatile memory (NVM). It can be understood that non-volatile memory does not mean that data will never be lost, but it is not easy to lose. According to the working principle of NAND Flash itself, if the storage unit on it does not perform read and write operations for a long time, the charge stored in the floating gate level will gradually leak, causing the originally stored data to change, such as Figure 2 As shown, the "0" on the left side of the diagram may become the "1" on the right side of the diagram, that is, when the data errors reach a certain number and exceed the error correction capability of the SSD, the data will be completely damaged.
[0060] For NAND Flash-based SSDs, the operating temperature when writing data and the storage temperature when powered off are important factors affecting "data retention". The industry standards (JEDEC) are as follows:
[0061] Consumer-grade SSDs should be able to maintain data for at least one year when written at 40°C and stored at 30°C without power.
[0062] Enterprise-level SSDs should be able to maintain data for at least three months when written at 55°C and stored without power at 40°C.
[0063] In fact, as the temperature rises, the electron activity increases, and the writing effect of NAND Flash will be better; however, the leakage rate of the charge stored in the floating gate will also accelerate, causing a decrease in data retention; taking enterprise-level SSDs as an example, with a writing temperature of 55°C and a power-off storage temperature of 25°C, its data retention should reach 101 weeks, which is about 2 years; when the storage temperature is increased to 40°C, the data retention will drop to 13 weeks (about 3 months), and the difference between the two is very obvious.
[0064] Namespace: Namespace refers to a part of the named space in the NVMe hard disk, which can be understood as dividing the disk into multiple areas. Depending on the disk, the number of Namespaces that can be created for each disk is also different, such as 32 or 128. Unless otherwise specified, one disk generally creates one Namespace, that is, the Namespace occupies all the capacity of the disk.
[0065] Fio: A flexible I / O (Input / Output) testing tool that can perform multi-threaded / process I / O load mode according to the I / O type specified by the user. Fio is the most commonly used SSD testing tool and can simulate the actual writing of various types and status data to the disk as required.
[0066] BS: In the FIO library, the BS (Buffer Size) parameter represents the buffer size, that is, the amount of data that the buffer can store during each read and write operation. The BS parameter is an important configuration parameter that directly affects the efficiency of file operations.
[0067] fdisk: fdisk is a tool for partitioning a hard disk, which is essentially a tool for formatting a hard disk.
[0068] parted: parted is a tool that can partition hard disks.
[0069] Smart-log: Smart-log is a public (that is, everyone can view) log information that shows the health status of the NVME hard disk, including the disk composite temperature, the current status of the disk (whether there is an abnormality), the amount of read and written data, power-on time, abnormal power-off times, abnormal log information, etc.
[0070] vendor-log: (Manufacturer log) vendor-log is a private (i.e. for internal personnel of the manufacturer to view) log information showing the health status of the NVME hard disk. It can display all the information in smart-log in detail by area, including the highest temperature, the lowest temperature, the maximum and minimum pe (Program / Erase), the maximum and minimum power-on time, and the detailed log information of each module.
[0071] LBA: Logical Block Address, system logical address.
[0072] Ncm: nand control manager, Nand control (backend).
[0073] Wlm: wearlving manager, dynamic wear leveling.
[0074] BE_scan_unc_count: The number of times the BER (bit error rate) exceeds the threshold during scrub inspection
[0075] force_gc_count: The number of active garbage collections, for example, after a read error.
[0076] XFS file system: XFS is a high-performance, advanced journaling file system that excels at handling large files while providing smooth data transfer capabilities.
[0077] Media Error: refers to the hard disk encountering an uncorrectable sector during a read operation and being unable to return accurate data to the host. The occurrence of a Media Error means that even if the hard disk has exhausted all fault tolerance measures (such as LDPC decoding, retry, etc.), the data in the sector (LBA) cannot be read correctly.
[0078] Md5: Md5 refers to the fifth version of the message digest algorithm, which is a type of hash algorithm. Md5 in the present invention refers to an encryption form of data verification, that is, an algorithm for data verification.
[0079] Constant temperature box (i.e., incubator): The constant temperature box is the SSD solid state hard disk test equipment required by the present invention, which is used to test and determine whether the parameters and performance of electrical, electronic and other products and materials after the temperature environment changes during high temperature testing can still meet the predetermined requirements, so as to provide for product design, identification and factory inspection. The incubator can be adjusted to the required temperature according to user needs and keep the temperature constant within the set time.
[0080] Based on the above content, in the specific implementation, you can first create a Namespace in the SSD, and use the fdisk or parted tool to divide the Namespace into partition A (i.e. the first storage space) and partition B (i.e. the second storage space) without creating a file system; you can also record the health status information of the SSD disk, such as the smart-log and vendor-log, to facilitate subsequent health status verification of the SSD.
[0081] Further, a sequential write operation may be performed on partition A according to the first write count. In one example, the fio tool may be used to perform a single write operation on partition A in a sequential write manner (i.e., the first write count is set to 1). The BS parameters used may be:
[0082] 512 / 4:1024 / 1:1536 / 1:2048 / 1:2560 / 1:3072 / 1:3584 / 1:4k / 67:8k / 10:16k / 7:32k / 3:64k / 3, the data verification method can be in the form of Md5 (the above Bs is in the form of bs=512 accounting for 4%, bs=1024 accounting for 1%, bs=1536 accounting for 1%......, bs=4k accounting for 67%, bs=8k accounting for 10%, bs=16k accounting for 7%, bs=32k accounting for 3%, bs=64k accounting for 3%), taking bs=512 accounting for 4% as an example, it means that the buffer is a write operation of 512 bytes in size, and the proportion of this write operation accounts for 4% of the total write operations.
[0083] Furthermore, a random write operation may be performed on partition B according to the second write number. In one example, the fio tool is used to perform 10 write operations on partition B in a random write manner (that is, the second write number is set to 10). The BS parameters used may be:
[0084] 512 / 4:1024 / 1:1536 / 1:2048 / 1:2560 / 1:3072 / 1:3584 / 1:4k / 67:8k / 10:16k / 7:32k / 3:64k / 3, the data verification method can also use the Md5 form. (The above Bs form is bs=512 accounting for 4%, bs=1024 accounting for 1%, bs=1536 accounting for 1%......, bs=4k accounting for 67%, bs=8k accounting for 10%, bs=16k accounting for 7%, bs=32k accounting for 3%, bs=64k accounting for 3%), taking bs=512 accounting for 4% as an example, it means that the buffer is a write operation of 512 bytes in size, and the proportion of this write operation accounts for 4% of the total write operations.
[0085] In some embodiments of the present invention, the sequentially writing operation to the first storage space according to the first writing number includes:
[0086] The first storage space is sequentially written using buffers of different byte sizes according to the first write times.
[0087] In practical applications, the partition A may be sequentially written using buffers of different byte sizes according to the first write count. In one example, the partition A may be sequentially written using the fio tool (i.e., the first write count is set to 1) once. The BS parameters of the buffers of different byte sizes may be:
[0088] 512 / 4:1024 / 1:1536 / 1:2048 / 1:2560 / 1:3072 / 1:3584 / 1:4k / 67:8k / 10:16k / 7:32k / 3:64k / 3, the data verification method can be in the form of Md5 (the above Bs is in the form of bs=512 bytes accounting for 4%, bs=1024 bytes accounting for 1%, bs=1536 bytes accounting for 1%......, bs=4k bytes accounting for 67%, bs=8k bytes accounting for 10%, bs=16k bytes accounting for 7%, bs=32k bytes accounting for 3%, bs=64k bytes accounting for 3%), taking bs=512 bytes accounting for 4% as an example, it means that the buffer is a write operation with a size of 512 bytes, and the proportion of this write operation accounts for 4% of the total write operations; by using buffers of different byte sizes for write operations, various actual usage scenarios can be simulated, thereby more comprehensively evaluating the performance of the solid-state drive.
[0089] In some embodiments of the present invention, performing a random write operation on the second storage space according to the second write number includes:
[0090] A random write operation is performed on the second storage space using buffers of different byte sizes according to the second write number.
[0091] In practical applications, the partition B may be randomly written using buffers of different byte sizes according to the second write times. In one example, the fio tool may be used to perform 10 write operations on the partition B in a random write manner (i.e., the second write times are set to 10). The BS parameters of the buffers of different byte sizes may be:
[0092] 512 / 4:1024 / 1:1536 / 1:2048 / 1:2560 / 1:3072 / 1:3584 / 1:4k / 67:8k / 10:16k / 7:32k / 3:64k / 3, the data verification method can also use the Md5 format, (the above Bs format is bs = 512 bytes accounting for 4%, bs = 1024 bytes accounting for 1%, bs = 1536 bytes accounting for 1%......, bs = 4k bytes accounting for 67%, bs = 8k bytes For example, bs=512 bytes accounts for 4%, which means that the buffer is a write operation with a size of 512 bytes, and the proportion of this write operation accounts for 4% of the total write operations. Similar to the aforementioned sequential write steps, using different buffer sizes can make random write operations closer to the I / O process of applications in real scenarios, which helps to more realistically evaluate the performance and reliability of SSDs.
[0093] In some embodiments of the present invention, before performing a sequential write operation on the first storage space according to a first write number of times and performing a random write operation on the second storage space according to a second write number of times, the method further includes:
[0094] Obtain and record health status information of the solid state drive.
[0095] In actual applications, it is also possible to obtain and record health status information such as the smart-log and vendor-log of the SSD disk to facilitate subsequent health status verification of the solid-state drive.
[0096] Step 102, recording the data contents written by the sequential write operation and the random write operation;
[0097] In a specific implementation, the data contents written by the sequential write operation and the random write operation may be recorded so as to facilitate data content verification in subsequent work to confirm the performance status of the solid state drive.
[0098] Step 103, powering off the solid state drive and controlling the solid state drive to be in a target temperature state;
[0099] In actual applications, the SSD can be powered off by hot-plugging it, so that the SSD is in an offline state, and then the SSD can be placed in an incubator to control the SSD to be in a target temperature state by adjusting the incubator temperature.
[0100] Step 104, determining a target duration according to the temperature value of the target temperature state, and powering on the solid state hard disk after controlling the solid state hard disk to be in the target temperature state for the target duration;
[0101] In a specific implementation, the corresponding target duration can be calculated according to the temperature value of the preset target temperature state, and after the solid-state hard disk is controlled to be in the target temperature state for the target duration, the solid-state hard disk is taken out from the temperature box, and then the hot-plug power-on operation is performed on the solid-state hard disk;
[0102] In practical applications, the standard storage temperature value of the solid state drive can be obtained, and a time acceleration coefficient Af can be determined according to the standard storage temperature value and the temperature value of the target temperature state; and then the target duration can be determined according to the time acceleration coefficient and the standard storage time corresponding to the standard storage temperature value; Figure 3 The following are the relevant parameters required to determine the time acceleration factor Af when the temperature value of the target temperature state is 80°C as an example;
[0103] Among them, the time acceleration factor can be based on Figure 3 The following time acceleration coefficient formula is used for calculation:
[0104] Af=exp(-EA / k×(1 / (TC+T1)-1 / (TC+T2)))
[0105] Wherein, Af is the time acceleration coefficient, EA is the activation energy of the solid state drive storage particles, k is the Boltzmann constant, TC is the Celsius-Kelvin conversion constant value, T1 is the temperature value of the target temperature state, and T2 is the standard storage temperature value;
[0106] As shown in Table 1, the activation energy EA of the solid state drive storage particles will have different values depending on the particles, and the corresponding EA value can be used for relevant calculations in practical applications;
[0107] Table 1: Activation energy of different storage particles
[0108] Ea bics3 1.1 bics4 1 bics5 1 x1-9050 1.1 x2-9060 1.1
[0109] Furthermore, the target duration can be calculated using the following target duration formula:
[0110] H1=H2 / Af
[0111] Wherein, H1 is the target duration, Af is the time acceleration factor, and H2 is the standard storage time;
[0112] Therefore, the time acceleration factor and standard storage time can be substituted into the target duration formula to calculate the target duration. The application of the above formula can not only more accurately simulate the data retention state under long-term storage conditions, but also be more conducive to quickly evaluating the life and health status change trends of the solid-state drive under various usage conditions.
[0113] In one example, taking the temperature value of the target temperature state as 80°C, the standard storage temperature value as 40°C, the standard storage time corresponding to the standard storage temperature value as 90 days (2160 hours), and the activation energy EA as 1.1 as an example, the corresponding Af value can be calculated to be approximately 101 through the time acceleration coefficient formula, so that the standard storage time H2=2160, Af=101 can be substituted into the target duration formula. The calculation results are shown in Table 2, and it can be concluded that when the temperature value of the target temperature state is 80°C, the corresponding target duration is 21.34h.
[0114] Table 2: Target duration calculation results
[0115] 90 days 2160 temperature Corresponding acceleration time (h) 80 21.34143363
[0116] In some embodiments of the present invention, determining the target duration according to the temperature value of the target temperature state includes:
[0117] Obtaining a standard storage temperature value of the solid state hard disk, and determining a time acceleration coefficient according to the standard storage temperature value and a temperature value of the target temperature state;
[0118] Determining the target duration according to the time acceleration coefficient and the standard storage time corresponding to the standard storage temperature value;
[0119] The time acceleration coefficient is calculated using the following time acceleration coefficient formula:
[0120] Af=exp(-EA / k×(1 / (TC+T1)-1 / (TC+T2)))
[0121] Wherein, Af is the time acceleration coefficient, EA is the activation energy of the solid state drive storage particles, k is the Boltzmann constant, TC is the Celsius-Kelvin conversion constant value, T1 is the temperature value of the target temperature state, and T2 is the standard storage temperature value;
[0122] The target duration is calculated using the following target duration formula:
[0123] H1=H2 / Af
[0124] Wherein, H1 is the target duration, Af is the time acceleration factor, and H2 is the standard storage time;
[0125] The step of determining the target duration according to the time acceleration coefficient and the standard storage time corresponding to the standard storage temperature value includes:
[0126] The target duration is determined according to the time acceleration coefficient, the standard storage time and the target duration formula.
[0127] In practical applications, the standard storage temperature value of the solid state drive can be obtained, and a time acceleration coefficient Af can be determined through a time acceleration coefficient formula according to the standard storage temperature value and the temperature value of the target temperature state; then the time acceleration coefficient and the standard storage time are substituted into the target duration formula to calculate the target duration; in an example, taking the temperature value of the target temperature state as 80°C, the standard storage temperature value as 40°C, the standard storage time corresponding to the standard storage temperature value as 90 days (2160 hours), and the activation energy EA as 1.1 as an example, the corresponding Af value can be calculated to be approximately 101 through the time acceleration coefficient formula, so that the standard storage time H2=2160 and Af=101 can be substituted into the target duration formula, and it can be concluded that when the temperature value of the target temperature state is 80°C, the corresponding target duration is 21.34h. Through the application of relevant formulas, this embodiment can more accurately simulate the data retention state under long-term storage conditions, which is conducive to quickly evaluating the life span and health status change trend of the solid state drive under various usage conditions.
[0128] Step 105 , performing data verification on the first storage space and the second storage space according to the data contents written by the sequential write operation and the random write operation.
[0129] In actual applications, the fio tool can be used to verify the data of partition A and partition B every 2 hours based on the data content written by the previous sequential write operation and random write operation. The smart-log and vendor-log commands can also be issued every 2 hours to check the media_error information, thereby checking the health status of the SSD. After a total of 6 checks, it can be considered that the performance test process of the SSD has been completed.
[0130] In some embodiments of the present invention, after performing data verification on the first storage space and the second storage space according to the data contents written by the sequential write operation and the random write operation, the method further includes:
[0131] Perform a health status check on the solid state hard disk according to the health status information of the solid state hard disk.
[0132] In a specific implementation, the health status of the SSD can be checked by sending smart-log and vendor-log commands every 2 hours to check the media_error information based on the previously recorded health status information of the SSD. This can monitor other related issues besides data, such as hardware failures or abnormal wear, and conduct a comprehensive test of the overall reliability and stability of the product.
[0133] In some embodiments of the present invention, the performing data verification on the first storage space and the second storage space according to the data content written by the sequential write operation and the random write operation includes:
[0134] A preset data verification time interval and a preset data verification number are obtained, and data verification is performed on the first storage space and the second storage space according to the data content written by the sequential write operation and the random write operation, the preset data verification time interval and the preset data verification number.
[0135] In actual applications, the preset data verification time interval and the preset data verification number set by the user can be obtained, and data verification can be performed on partition A and partition B according to the preset data verification time interval and the preset data verification number. In an example, according to the data content written by the previous sequential write operation and random write operation, the fio tool can be used to perform data verification on partition A and partition B respectively every 2 hours (that is, the preset data verification time interval), and the smart-log and vendor-log commands can be issued every 2 hours to check the media_error information, so as to perform a health check on the solid-state drive. After a total of 6 checks (that is, the preset data verification number), it can be considered that the performance test process of the solid-state drive has been completed. By performing multiple scheduled data checks at specified time intervals and verification numbers, the integrity of the data can be repeatedly verified, thereby improving the accuracy and credibility of the solid-state drive performance test results;
[0136] It should be emphasized that the data verification time interval of two hours and the preset data verification number of six times in this example are only examples. In actual applications, they can be adjusted according to specific test requirements, and the present invention does not limit this.
[0137] Reference Figure 4, shows a flowchart of another method for testing the performance of a solid state drive provided by some embodiments of the present invention, wherein the storage space of the solid state drive includes at least a first storage space and a second storage space, and specifically may include the following steps:
[0138] Step 401, performing a sequential write operation on the first storage space using buffers of different byte sizes according to a first write number, and performing a random write operation on the second storage space using buffers of different byte sizes according to a second write number;
[0139] In the specific implementation, you can first create a Namespace in the SSD, and use the fdisk or parted tool to divide the Namespace into partition A (i.e. the first storage space) and partition B (i.e. the second storage space) without creating a file system; you can also record the health status information of the SSD disk, such as the smart-log and vendor-log, to facilitate subsequent health status verification of the SSD.
[0140] Further, a sequential write operation may be performed on partition A according to the first write count. In one example, the fio tool may be used to perform a single write operation on partition A in a sequential write manner (i.e., the first write count is set to 1). The BS parameters used may be:
[0141] 512 / 4:1024 / 1:1536 / 1:2048 / 1:2560 / 1:3072 / 1:3584 / 1:4k / 67:8k / 10:16k / 7:32k / 3:64k / 3, the data verification method can be in the form of Md5 (the above Bs is in the form of bs=512 accounting for 4%, bs=1024 accounting for 1%, bs=1536 accounting for 1%......, bs=4k accounting for 67%, bs=8k accounting for 10%, bs=16k accounting for 7%, bs=32k accounting for 3%, bs=64k accounting for 3%), taking bs=512 accounting for 4% as an example, it means that the buffer is a write operation of 512 bytes in size, and the proportion of this write operation accounts for 4% of the total write operations.
[0142] Furthermore, a random write operation may be performed on partition B according to the second write number. In one example, the fio tool is used to perform 10 write operations on partition B in a random write manner (that is, the second write number is set to 10). The BS parameters used may be:
[0143] 512 / 4:1024 / 1:1536 / 1:2048 / 1:2560 / 1:3072 / 1:3584 / 1:4k / 67:8k / 10:16k / 7:32k / 3:64k / 3, the data verification method can also use the Md5 form. (The above Bs form is bs=512 accounting for 4%, bs=1024 accounting for 1%, bs=1536 accounting for 1%......, bs=4k accounting for 67%, bs=8k accounting for 10%, bs=16k accounting for 7%, bs=32k accounting for 3%, bs=64k accounting for 3%), taking bs=512 accounting for 4% as an example, it means that the buffer is a write operation of 512 bytes in size, and the proportion of this write operation accounts for 4% of the total write operations.
[0144] Step 402, recording the data content written by the sequential write operation and the random write operation;
[0145] In a specific implementation, the data contents written by the sequential write operation and the random write operation may be recorded so as to facilitate data content verification in subsequent work to confirm the performance status of the solid state drive.
[0146] Step 403, powering off the solid state drive and controlling the solid state drive to be in a target temperature state;
[0147] In actual applications, the SSD can be powered off by hot-plugging it, so that it is in an offline state, and then the SSD can be placed in an incubator to control the SSD to be in a target temperature state by adjusting the incubator temperature.
[0148] Step 404, determining a target duration according to the temperature value of the target temperature state, and powering on the solid state hard disk after controlling the solid state hard disk to be in the target temperature state for the target duration;
[0149] In a specific implementation, the corresponding target duration can be calculated according to the temperature value of the preset target temperature state, and after the solid-state hard disk is controlled to be in the target temperature state for the target duration, the solid-state hard disk is taken out from the temperature box, and then the hot-plug power-on operation is performed on the solid-state hard disk;
[0150] In practical applications, the standard storage temperature value of the solid state drive can be obtained, and a time acceleration coefficient Af can be determined according to the standard storage temperature value and the temperature value of the target temperature state; and then the target duration can be determined according to the time acceleration coefficient and the standard storage time corresponding to the standard storage temperature value;
[0151] Furthermore, the time acceleration coefficient and standard storage time can be substituted into the target duration formula to calculate the target duration. The application of the above formula can not only more accurately simulate the data retention state under long-term storage conditions, but also be more conducive to quickly evaluating the life and health status change trends of the solid-state drive under various usage conditions.
[0152] In one example, taking the temperature value of the target temperature state as 80°C, the standard storage temperature value as 40°C, the standard storage time corresponding to the standard storage temperature value as 90 days (2160 hours), and the activation energy EA as 1.1 as an example, the corresponding Af value can be calculated to be approximately 101 through the time acceleration coefficient formula, so that the standard storage time H2=2160, Af=101 can be substituted into the target duration formula. The calculation results are shown in Table 2, and it can be concluded that when the temperature value of the target temperature state is 80°C, the corresponding target duration is 21.34h.
[0153] Step 405 , performing data verification on the first storage space and the second storage space according to the data contents written by the sequential write operation and the random write operation.
[0154] In actual applications, the fio tool can be used to verify the data of partition A and partition B every 2 hours based on the data content written by the previous sequential write operation and random write operation. The smart-log and vendor-log commands can also be issued every 2 hours to check the media_error information, thereby checking the health status of the SSD. After a total of 6 checks, it can be considered that the performance test process of the SSD has been completed.
[0155] The following combination Figure 5 The embodiments of the present invention are exemplarily described as follows:
[0156] Depend on Figure 5 It can be seen from the content that the overall execution process of the performance test method of the solid state drive provided by the present invention is as follows:
[0157] First, create a Namespace and divide it into two areas, namely, partition A and partition B, and record the smart-log / vendor-log information of the current Namespace; then, write to partition A sequentially once through FIO, and write to partition B randomly through FIO 10 times, and after writing is completed, the SSD is offline, and then the SSD is placed in an incubator and left to stand for X (i.e., target duration) hours. After standing, the SSD is taken out of the incubator and powered on. Finally, data verification is performed on partition A / partition B every 2 hours, for a total of 6 verifications, and the smart-log / vendor-log command is issued every 2 hours to check the health status of the SSD, thus ending the process.
[0158] Further, such as Figure 6 As shown, the performance testing method of the solid-state drive provided by the present invention can be specifically applied based on the ASIC (Application-Specific Integrated Circuit) processing system of the SSD device. The ASIC processing system may include: a PCIe system, a CPU processor system, a Flash subsystem, a controller off-chip peripheral system and a memory processing system, and are interconnected through an IPC internal message interaction network.
[0159] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0160] Reference Figure 7 , shows a schematic diagram of the structure of a performance test device for a solid state hard disk provided by some embodiments of the present invention, wherein the storage space of the solid state hard disk includes at least a first storage space and a second storage space, and specifically may include the following modules:
[0161] A write operation execution module 701, configured to perform a sequential write operation on the first storage space according to a first write number, and perform a random write operation on the second storage space according to a second write number;
[0162] A written data content recording module 702, used to record the data content written by the sequential write operation and the random write operation;
[0163] The target temperature state control module 703 is used to power off the solid state drive and control the solid state drive to be in a target temperature state;
[0164] The target temperature state maintaining module 704 is used to determine a target duration according to the temperature value of the target temperature state, and to power on the solid state hard disk after controlling the solid state hard disk to be in the target temperature state for the target duration;
[0165] The data verification module 705 is used to perform data verification on the first storage space and the second storage space according to the data content written by the sequential write operation and the random write operation.
[0166] In some embodiments of the present invention, the target temperature state maintaining module 704 includes:
[0167] A time acceleration coefficient determination submodule, used to obtain a standard storage temperature value of the solid state hard disk, and determine a time acceleration coefficient according to the standard storage temperature value and a temperature value of the target temperature state;
[0168] A target duration determination submodule, used to determine the target duration according to the time acceleration coefficient and the standard storage time corresponding to the standard storage temperature value;
[0169] The time acceleration coefficient is calculated using the following time acceleration coefficient formula:
[0170] Af=exp(-EA / k×(1 / (TC+T1)-1 / (TC+T2)))
[0171] Wherein, Af is the time acceleration coefficient, EA is the activation energy of the solid state drive storage particles, k is the Boltzmann constant, TC is the Celsius-Kelvin conversion constant value, T1 is the temperature value of the target temperature state, and T2 is the standard storage temperature value;
[0172] The target duration is calculated using the following target duration formula:
[0173] H1=H2 / Af
[0174] Wherein, H1 is the target duration, Af is the time acceleration factor, and H2 is the standard storage time;
[0175] The target duration determination submodule includes:
[0176] The target duration determination unit is used to determine the target duration according to the time acceleration coefficient, the standard storage time and the target duration formula.
[0177] In some embodiments of the present invention, the write operation execution module 701 includes:
[0178] A sequential write operation execution submodule is used to perform a sequential write operation on the first storage space using buffers of different byte sizes according to the first write times.
[0179] In some embodiments of the present invention, the write operation execution module 701 includes:
[0180] The random write operation execution submodule is used to perform a random write operation on the second storage space using buffers of different byte sizes according to the second write number.
[0181] In some embodiments of the present invention, the device further comprises:
[0182] The health status information recording module is used to obtain and record the health status information of the solid state drive.
[0183] In some embodiments of the present invention, the device further comprises:
[0184] The health status check module is used to perform a health status check on the solid state hard disk according to the health status information of the solid state hard disk.
[0185] In some embodiments of the present invention, the data checking module 705 includes:
[0186] The data verification submodule is used to obtain a preset data verification time interval and a preset data verification number, and perform data verification on the first storage space and the second storage space according to the data content written by the sequential write operation and the random write operation, the preset data verification time interval and the preset data verification number.
[0187] Some embodiments of the present invention also provide an electronic device, which may include a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when the computer program is executed by the processor, the performance testing method of the solid state drive as described above is implemented.
[0188] Some embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned solid-state hard disk performance testing method is implemented.
[0189] Some embodiments of the present invention further provide a computer program product, including a computer program, which implements the above solid state hard disk performance testing method when executed by a processor.
[0190] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0191] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0192] Those skilled in the art will appreciate that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0193] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0194] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0195] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0196] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0197] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the above elements.
[0198] The above is a detailed introduction to a performance testing method and device for a solid-state hard disk. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for a person skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for testing the performance of a solid state drive, characterized in that: The storage space of the solid state drive includes at least a first storage space and a second storage space, and the method includes: Performing a sequential write operation on the first storage space according to a first write number, and performing a random write operation on the second storage space according to a second write number; Recording the data contents written by the sequential write operation and the random write operation; Powering off the solid state hard disk and controlling the solid state hard disk to be in a target temperature state; Determining a target duration according to a temperature value of the target temperature state, and powering on the solid state hard disk after controlling the solid state hard disk to be in the target temperature state for the target duration; Data verification is performed on the first storage space and the second storage space according to the data contents written by the sequential write operation and the random write operation.
2. The performance testing method of a solid state drive according to claim 1, characterized in that: The step of determining a target duration according to the temperature value of the target temperature state includes: Obtaining a standard storage temperature value of the solid state hard disk, and determining a time acceleration coefficient according to the standard storage temperature value and a temperature value of the target temperature state; Determining the target duration according to the time acceleration coefficient and the standard storage time corresponding to the standard storage temperature value; The time acceleration coefficient is calculated using the following time acceleration coefficient formula: Af=exp(-EA / k×(1 / (TC+T1)-1 / (TC+T2))) Wherein, Af is the time acceleration coefficient, EA is the activation energy of the solid state drive storage particles, k is the Boltzmann constant, TC is the Celsius-Kelvin conversion constant value, T1 is the temperature value of the target temperature state, and T2 is the standard storage temperature value; The target duration is calculated using the following target duration formula: H1=H2 / Af Wherein, H1 is the target duration, Af is the time acceleration factor, and H2 is the standard storage time; The step of determining the target duration according to the time acceleration coefficient and the standard storage time corresponding to the standard storage temperature value includes: The target duration is determined according to the time acceleration coefficient, the standard storage time and the target duration formula.
3. The performance testing method for a solid state drive according to claim 1 or 2, characterized in that: The sequentially writing operation to the first storage space according to the first writing number includes: The first storage space is sequentially written using buffers of different byte sizes according to the first write times.
4. The performance testing method for a solid state drive according to claim 1 or 2, characterized in that: The performing a random write operation on the second storage space according to the second write number includes: A random write operation is performed on the second storage space using buffers of different byte sizes according to the second write number.
5. The performance testing method for a solid state drive according to claim 1 or 2, characterized in that: Before performing a sequential write operation on the first storage space according to the first write number of times and performing a random write operation on the second storage space according to the second write number of times, the method further includes: Obtain and record health status information of the solid state drive.
6. The performance testing method of a solid state drive according to claim 5, characterized in that: After performing data verification on the first storage space and the second storage space according to the data contents written by the sequential write operation and the random write operation, the method further includes: Perform a health status check on the solid state hard disk according to the health status information of the solid state hard disk.
7. The performance testing method for a solid state drive according to claim 1 or 2, characterized in that: The performing data verification on the first storage space and the second storage space according to the data contents written by the sequential write operation and the random write operation includes: A preset data verification time interval and a preset data verification number are obtained, and data verification is performed on the first storage space and the second storage space according to the data content written by the sequential write operation and the random write operation, the preset data verification time interval and the preset data verification number.
8. A performance testing device for a solid state hard disk, characterized in that: The storage space of the solid state hard disk includes at least a first storage space and a second storage space, and the device includes: a write operation execution module, configured to perform a sequential write operation on the first storage space according to a first write number of times, and to perform a random write operation on the second storage space according to a second write number of times; A written data content recording module, used to record the data content written by the sequential write operation and the random write operation; A target temperature state control module, used to power off the solid state hard disk and control the solid state hard disk to be in a target temperature state; A target temperature state maintaining module, used to determine a target duration according to a temperature value of the target temperature state, and to power on the solid state hard disk after controlling the solid state hard disk to be in the target temperature state for the target duration; The data checking module is used to perform data checking on the first storage space and the second storage space according to the data content written by the sequential writing operation and the random writing operation.
9. An electronic device, characterized in that: The method comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the method for testing the performance of a solid state drive as claimed in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the performance testing method for a solid-state hard disk according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
System and method for testing wide-temperature reliability of solid state disk
CN121215013A
Memory management method and memory controller
CN121233053A
