Solid state disk testing method, device and equipment and computer readable storage medium

By setting the compression ratio and sector size parameters of the transparent compression SSD, the accuracy problem of transparent compression SSD testing is solved, achieving efficient and accurate performance evaluation.

CN119025355APending Publication Date: 2024-11-26INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411162711.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-22
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

How to accurately test the performance of a transparently compressed solid-state drive and obtain accurate test results.

Method used

By obtaining the compression ratio and sector size of the transparent compression SSD, and setting the parameters of the testing tool, including the compression I/O buffer percentage and the I/O buffer size of the compression thread, the performance test is performed using the testing tool.

Benefits of technology

To ensure that test results accurately reflect the performance of transparent compression SSDs, improve the accuracy of test data, guarantee high storage efficiency, avoid unnecessary compression overhead, and reduce I/O operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119025355A_ABST
    Figure CN119025355A_ABST
Patent Text Reader

Abstract

The invention discloses a solid state disk testing method, device and equipment and a computer readable storage medium, and relates to the technical field of solid state disks, and the method comprises the following steps: obtaining a compression ratio of a to-be-tested solid state disk; the solid state disk to be tested is a solid state disk adopting a transparent compression technology; obtaining the hard disk sector size of the solid state disk to be tested; according to the compression proportion and the hard disk sector size of the solid state disk to be tested, first target parameters of a test tool are set, and the first target parameters comprise the compression I / O buffer area percentage and the compression thread I / O buffer area size; and testing the to-be-tested solid state disk based on the first target parameter by using the test tool to obtain a performance index of the to-be-tested solid state disk. According to the method, the transparent compressed solid state disk can be accurately tested, and an accurate test result is obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of solid state hard disks, and in particular to a solid state hard disk testing method, device, equipment and computer-readable storage medium. Background Art

[0002] Transparent compression technology refers to combining storage and compression functions together to complete compression on the storage path without the user's awareness. SSDs that use transparent compression technology are called transparent compression SSDs. Transparent compression SSDs compress data when writing data and decompress data when reading data. These operations are all completed inside the transparent compression SSD, and the host does not need to perform any operations. The performance evaluation of transparent compression SSDs is somewhat complex. How to accurately test transparent compression SSDs and obtain accurate test results has become a technical problem that needs to be solved urgently by technicians in this field. Summary of the invention

[0003] The purpose of the present invention is to provide a solid state drive testing method, device, equipment and computer-readable storage medium, which can accurately test a transparent compressed solid state drive and obtain accurate test results.

[0004] In order to solve the above technical problems, the present invention provides a solid state hard disk testing method, comprising:

[0005] Obtaining a compression ratio of a solid-state hard disk to be tested; the solid-state hard disk to be tested is a solid-state hard disk using a transparent compression technology;

[0006] Obtaining the hard disk sector size of the solid state drive to be tested;

[0007] According to the compression ratio and hard disk sector size of the solid state drive to be tested, setting the first target parameter of the test tool, wherein the first target parameter includes the compression I / O buffer percentage and the I / O buffer size of the compression thread;

[0008] The test tool is used to test the solid state drive to be tested based on the first target parameter to obtain a performance indicator of the solid state drive to be tested.

[0009] In some embodiments, obtaining the compression ratio of the solid state drive to be tested includes:

[0010] Querying the physical capacity of the solid state drive to be tested;

[0011] Querying the logical capacity of the solid state drive to be tested;

[0012] The physical capacity is divided by the logical capacity to obtain a compression ratio of the solid state drive to be tested.

[0013] In some embodiments, according to the compression ratio and hard disk sector size of the solid state drive to be tested, setting the first target parameter of the test tool includes:

[0014] The product of multiplying the compression ratio of the solid state drive to be tested by the first preset coefficient is used as the compression I / O buffer percentage;

[0015] The product obtained by multiplying the hard disk sector size by the second preset coefficient is used as the I / O buffer size of the compression thread.

[0016] In some embodiments, using the test tool to test the solid state drive to be tested based on the first target parameter includes:

[0017] Using the test tool to generate test data of different block sizes, different types, and different compression rates;

[0018] Using the test tool to write the test data into the solid state drive to be tested;

[0019] Using the test tool to record various first performance indicators during the test data writing process;

[0020] Using the test tool to read data from the solid state drive to be tested;

[0021] Verify the integrity and correctness of the read data using the test tool;

[0022] The test tool is used to record various second performance indicators in the process of reading data from the solid state drive to be tested.

[0023] In some embodiments, before using the test tool to test the solid state drive to be tested based on the first target parameter, the method further includes:

[0024] Initializing the solid state drive to be tested;

[0025] Continue to write data to the solid state drive to be tested until the solid state drive to be tested reaches a steady state.

[0026] In some embodiments, it also includes:

[0027] Collect and organize various performance indicators and generate test reports.

[0028] In some embodiments, it also includes:

[0029] Setting the second target parameters of the test tool; the second target parameters include I / O engine type, unbuffered I / O, number of threads, number of concurrent tasks, I / O queue depth, operation type, block size of a single I / O operation, data volume of the I / O operation, output log interval, and recording bandwidth interval;

[0030] Among them, set the I / O engine type to asynchronous I / O library;

[0031] Set unbuffered I / O to use;

[0032] Set the number of threads to one;

[0033] Set the number of concurrent tasks to the preset number of concurrent tasks and overwrite them in sequence;

[0034] Set the I / O queue depth to the preset I / O queue depths in sequence;

[0035] Set the I / O operation type to write and read in sequence;

[0036] Set the block size of a single I / O operation to be the block size of several single I / O operations overwritten in sequence;

[0037] Set the data volume of I / O operations to 100%;

[0038] Set the output log interval to the first value;

[0039] Set the recording bandwidth interval to the second value.

[0040] In order to solve the above technical problems, the present invention also provides a solid state hard disk testing device, comprising:

[0041] A first acquisition module is used to acquire a compression ratio of a solid state drive to be tested; the solid state drive to be tested is a solid state drive using a transparent compression technology;

[0042] A second acquisition module is used to acquire the hard disk sector size of the solid state drive to be tested;

[0043] A parameter setting module, used to set a first target parameter according to the compression ratio of the solid state drive to be tested and the hard disk sector size, wherein the first target parameter includes a compression I / O buffer percentage and an I / O buffer size of a compression thread;

[0044] The testing module is used to use the testing tool to test the solid-state drive to be tested based on the first target parameter to obtain the performance index of the solid-state drive to be tested.

[0045] In order to solve the above technical problems, the present invention also provides a solid state hard disk testing device, comprising:

[0046] Memory for storing computer programs;

[0047] The processor is used to implement the steps of the solid state drive testing method as described above when executing the computer program.

[0048] In order to solve the above technical problems, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the solid-state hard disk testing method described above are implemented.

[0049] In order to solve the above technical problem, the present invention also provides a computer program product, including a computer program / instruction, which implements the steps of the solid state drive testing method described above when executed by a processor.

[0050] The solid-state hard disk test method provided by the present invention includes: obtaining the compression ratio of the solid-state hard disk to be tested; the solid-state hard disk to be tested is a solid-state hard disk using transparent compression technology; obtaining the hard disk sector size of the solid-state hard disk to be tested; according to the compression ratio and hard disk sector size of the solid-state hard disk to be tested, setting the first target parameter of the test tool, the first target parameter including the compression I / O buffer percentage and the I / O buffer size of the compression thread; using the test tool to test the solid-state hard disk to be tested based on the first target parameter to obtain the performance index of the solid-state hard disk to be tested.

[0051] It can be seen that the solid-state hard disk testing method provided by the present invention sets the parameters of the testing tool according to the compression ratio of the solid-state hard disk to be tested and the hard disk sector size, including setting the compression I / O buffer percentage and the I / O buffer size of the compression thread. In this way, the parameter setting of the testing tool can be better adapted to the compression ratio and hard disk sector size of the solid-state hard disk to be tested, ensuring that the test results can accurately reflect the performance of the transparent compression solid-state hard disk, improve the accuracy of the tested performance data, and at the same time ensure efficient storage efficiency, avoid unnecessary compression overhead, and consume the least memory to reduce the number of I / O times.

[0052] The solid state drive testing device, equipment and computer-readable storage medium provided by the present invention all have the above-mentioned technical effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the prior art and the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0054] Figure 1 A schematic diagram of a flow chart of a solid state drive testing method provided by an embodiment of the present invention;

[0055] Figure 2 A schematic diagram of a solid state drive testing device provided by an embodiment of the present invention;

[0056] Figure 3 A schematic diagram of a solid state drive testing device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0057] The core of the present invention is to provide a solid-state hard disk testing method, device, equipment and computer-readable storage medium, which can accurately test the transparent compressed solid-state hard disk and obtain accurate test results.

[0058] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of 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.

[0059] Please refer to Figure 1 , Figure 1 A flow chart of a solid state drive testing method provided by an embodiment of the present invention, referring to Figure 1 As shown, the method includes:

[0060] S101: Obtaining a compression ratio of a solid state drive to be tested; the solid state drive to be tested is a solid state drive that uses a transparent compression technology.

[0061] This embodiment is intended to perform a performance test on a transparent compression solid state drive. A transparent compression solid state drive is a solid state drive that uses transparent compression technology. Step S101 is intended to obtain the compression ratio of the transparent compression solid state drive to be tested.

[0062] In some embodiments, obtaining the compression ratio of the solid state drive to be tested includes:

[0063] Querying the physical capacity of the solid state drive to be tested;

[0064] Querying the logical capacity of the solid state drive to be tested;

[0065] The physical capacity is divided by the logical capacity to obtain a compression ratio of the solid state drive to be tested.

[0066] You can query the namespace of the transparent compression SSD to be tested. The namespace is a logical partition defined in the NVME (Non-Volatile Memory Express) protocol, which is mapped to one or more physical areas on the SSD. The size of the namespace is usually the logical capacity, that is, the storage capacity available to users. The physical capacity of the SSD refers to the total capacity of the SSD, including the user-invisible parts such as firmware and error correction code. You can query the physical capacity of the transparent compression SSD to be tested: ncap, and the logical capacity of the transparent compression SSD to be tested: nsze through the nvme id-ns / dev / nvme*n1 command. Then calculate the compression ratio = ncap / nsze.

[0067] For example, if the ratio of logical capacity to physical capacity is 80%, the compression ratio is 1:1.25.

[0068] S102: Obtain the hard disk sector size of the solid state drive to be tested.

[0069] The hard disk sector is a circular metal disk inside the hard disk divided into several sector-shaped areas by the track to store data. The hard disk sector size is the basic unit of hard disk storage data. You can query the hard disk sector size Format through the nvme list command.

[0070] S103: According to the compression ratio of the solid state drive to be tested and the hard disk sector size, a first target parameter of the test tool is set, wherein the first target parameter includes a compression I / O (Input / Output) buffer percentage and an I / O buffer size of a compression thread.

[0071] The compression I / O buffer percentage refers to the percentage of data that will be compressed before writing during a write operation. The compression I / O buffer percentage can be adjusted based on the compression capabilities and performance requirements of the SSD. A higher compression I / O buffer percentage means that more data will be compressed, which may improve storage efficiency but also increase the overhead of compression operations. The I / O buffer size of each compression thread determines the amount of data that a single compression thread can handle during compression and decompression operations. A larger I / O buffer size for a compression thread can reduce the number of disk I / Os, but it also consumes more memory.

[0072] In order to set a suitable compression I / O buffer percentage and compression thread I / O buffer size and improve the accuracy of the test results, this embodiment sets the compression I / O buffer percentage and compression thread I / O buffer size according to the compression ratio and hard disk sector size of the transparent compression solid state drive to be tested. The test tool may be FIO.

[0073] In some embodiments, according to the compression ratio and hard disk sector size of the solid state drive to be tested, setting the first target parameter of the test tool includes:

[0074] The product of multiplying the compression ratio of the solid state drive to be tested by the first preset coefficient is used as the compression I / O buffer percentage;

[0075] The product obtained by multiplying the hard disk sector size by the second preset coefficient is used as the I / O buffer size of the compression thread.

[0076] The first preset coefficient may be 100, the second preset coefficient may be 8, and the compression I / O buffer percentage and the I / O buffer size of the compression thread may be expressed as follows:

[0077] buffer_compress_percentage=compression ratio*100;

[0078] buffer_compress_chunk=Format*8.

[0079] Among them, buffer_compress_percentage indicates the percentage of compressed I / O buffer, and buffer_compress_chunk indicates the percentage of I / O buffer of compression thread.

[0080] S104: Using the test tool to test the solid state drive to be tested based on the first target parameter to obtain a performance indicator of the solid state drive to be tested.

[0081] After the setting of the test tool is completed, the transparent compressed solid-state hard disk to be tested is tested using the test tool based on the set parameters to obtain the performance index of the transparent compressed solid-state hard disk to be tested.

[0082] In some embodiments, using the test tool to test the solid state drive to be tested based on the first target parameter includes:

[0083] Using the test tool to generate test data of different block sizes, different types, and different compression rates;

[0084] Using the test tool to write the test data into the solid state drive to be tested;

[0085] Using the test tool to record various first performance indicators during the test data writing process;

[0086] Using the test tool to read data from the solid state drive to be tested;

[0087] Verify the integrity and correctness of the read data using the test tool;

[0088] The test tool is used to record various second performance indicators in the process of reading data from the solid state drive to be tested.

[0089] The first performance indicator refers to the performance indicator recorded during the process of writing test data into the transparent compressed solid-state hard disk to be tested, and the second performance indicator refers to the performance indicator recorded during the process of reading data from the transparent compressed solid-state hard disk to be tested. The test tool generates test data with different characteristics, including test data of different block sizes, different types, and different compression rates. The test tool writes the test data into the transparent compressed solid-state hard disk to be tested, and records various performance indicators during the test data writing process, such as writing speed, compression ratio, etc. The test tool reads the written data from the transparent compressed solid-state hard disk to be tested, and verifies the integrity and correctness of the read data. Various performance indicators are recorded during the data reading process, such as reading speed, data integrity, etc.

[0090] This embodiment not only focuses on the performance of the solid-state drive to be tested when writing data, but also focuses on the performance of the solid-state drive to be tested when reading data, thereby realizing performance evaluation of the solid-state drive to be tested in different scenarios (writing data, reading data, and mixed reading and writing), and obtaining more comprehensive and accurate test results.

[0091] In some embodiments, before using the test tool to test the solid state drive to be tested based on the first target parameter, the method further includes:

[0092] Initializing the solid state drive to be tested;

[0093] Continue to write data to the solid state drive to be tested until the solid state drive to be tested reaches a steady state.

[0094] The purpose of initializing the transparent compressed SSD to be tested is to ensure that the transparent compressed SSD to be tested is in a consistent initial state, including formatting the transparent compressed SSD to be tested, clearing all data in it, and configuring an appropriate file system. Steady state refers to the state in which the performance indicators (such as write speed, number of input and output operations per second, etc.) of the SSD tend to be stable after continuous data writing.

[0095] In some embodiments, it also includes:

[0096] Collect and organize various performance indicators and generate test reports.

[0097] After completing the test, collect and organize the test data and generate a detailed test report, which includes the specific values ​​of various performance indicators.

[0098] In some embodiments, it also includes:

[0099] Dynamically modify the first target parameter;

[0100] Comprehensively analyze the performance indicators of the solid-state drive to be tested by using the test tool after each modification of the first target parameter.

[0101] In order to improve the accuracy of the test results, the first target parameter can be modified multiple times. After each modification of the first target parameter, the solid-state drive to be tested is tested using the test tool based on the modified first target parameter. The performance indicators obtained by using the test tool to test the solid-state drive to be tested after modifying the first target parameter multiple times are comprehensively analyzed to obtain the final test results. Among them, the comprehensive analysis method can be to remove the maximum and minimum values ​​from the performance indicators obtained by using the test tool to test the solid-state drive to be tested after modifying the first target parameter multiple times, and take the average as the final test result. It can also be to select the mode or median from the performance indicators obtained by using the test tool to test the solid-state drive to be tested after modifying the first target parameter multiple times as the final test result.

[0102] In some embodiments, it also includes:

[0103] Setting the second target parameters of the test tool; the second target parameters include I / O engine type, unbuffered I / O, number of threads, number of concurrent tasks, I / O queue depth, operation type, block size of a single I / O operation, data volume of the I / O operation, output log interval, and recording bandwidth interval;

[0104] Among them, set the I / O engine type to asynchronous I / O library;

[0105] Set unbuffered I / O to use;

[0106] Set the number of threads to one;

[0107] Set the number of concurrent tasks to the preset number of concurrent tasks and overwrite them in sequence;

[0108] Set the I / O queue depth to the preset I / O queue depths in sequence;

[0109] Set the I / O operation type to write and read in sequence;

[0110] Set the block size of a single I / O operation to be the block size of several single I / O operations overwritten in sequence;

[0111] Set the data volume of I / O operations to 100%;

[0112] Set the output log interval to the first value;

[0113] Set the recording bandwidth interval to the second value.

[0114] By setting the second target parameter of the test tool as above, the performance of the transparent compression solid state drive can be evaluated more accurately.

[0115] Among them, you can set the I / O engine type to asynchronous I / O library;

[0116] Set unbuffered I / O to use;

[0117] Set the number of threads to one;

[0118] Set the number of concurrent tasks to 1 and 4 in turn;

[0119] Set the I / O queue depth to 1, 2, 4, 8, 16, 32, 64, 128 in sequence;

[0120] Set the I / O operation type to write and read in sequence;

[0121] Set the block size of a single I / O operation to 1024k, 512k, 256k, 128k, 64k, 32k, 16k, 8k, and 4k in sequence;

[0122] Set the data volume of I / O operations to 100%;

[0123] Set the output log interval to 1000;

[0124] Set the recording bandwidth interval to 1000.

[0125] The specific expressions are as follows:

[0126] ioengine=libaio

[0127] direct=1

[0128] thread=1

[0129] numjobs=1 4 overwrite in sequence

[0130] iodepth=1 2 4 8 16 32 64 128 overwrite in sequence

[0131] rw=write read rw overwrites in sequence

[0132] bs= 1024k 512k 256k 128k 64k 32k 16k 8k 4k overwrite in sequence

[0133] size=100%

[0134] log_avg_msec=1000

[0135] bwavgtime=1000.

[0136] In addition, the write amplification factor of the transparent compression solid-state drive may also be determined. The write amplification factor refers to the ratio of the actual amount of data written to the transparent compression solid-state drive to the theoretical amount of data written. For the transparent compression solid-state drive, the compression operation reduces the amount of data actually written, so the write amplification factor may be reduced. The write amplification factor may be determined by a variety of methods, including experimental measurement, theoretical calculation, etc. In the experimental measurement, the write amplification factor may be calculated by comparing the amount of data written and the amount of data actually increased on the transparent compression solid-state drive. On the basis of determining the write amplification factor of the transparent compression solid-state drive, the write amplification factor of the transparent compression solid-state drive may be used as a factor in evaluating the performance of the transparent compression solid-state drive.

[0137] In summary, the solid-state hard disk testing method provided by the present invention sets the parameters of the testing tool according to the compression ratio of the solid-state hard disk to be tested and the hard disk sector size, including setting the compression I / O buffer percentage and the I / O buffer size of the compression thread. In this way, the parameter setting of the testing tool can be better adapted to the compression ratio and hard disk sector size of the solid-state hard disk to be tested, ensuring that the test results can accurately reflect the performance of the transparent compression solid-state hard disk, improve the accuracy of the tested performance data, and at the same time ensure efficient storage efficiency, avoid unnecessary compression overhead, and consume the least memory to reduce the I / O times.

[0138] The present invention also provides a solid state hard disk testing device, and the device described below can be referred to in correspondence with the method described above. Figure 2 , Figure 2 A schematic diagram of a solid state drive testing device provided by an embodiment of the present invention, combined with Figure 2 As shown, the device comprises:

[0139] The first acquisition module 10 is used to acquire the compression ratio of the solid state hard disk to be tested; the solid state hard disk to be tested is a solid state hard disk using transparent compression technology;

[0140] A second acquisition module 20 is used to acquire the hard disk sector size of the solid state drive to be tested;

[0141] A parameter setting module 30, configured to set a first target parameter according to the compression ratio of the solid state drive to be tested and the hard disk sector size, wherein the first target parameter includes a compression I / O buffer percentage and an I / O buffer size of a compression thread;

[0142] The testing module 40 is used to test the solid state drive to be tested based on the first target parameter by using the testing tool to obtain the performance index of the solid state drive to be tested.

[0143] Based on the above embodiment, as a specific implementation, the first acquisition module 10 includes:

[0144] A first query unit, used for querying the physical capacity of the solid state drive to be tested;

[0145] A second query unit, used for querying the logical capacity of the solid state drive to be tested;

[0146] The calculation unit is used to divide the physical capacity by the logical capacity to obtain the compression ratio of the solid state drive to be tested.

[0147] Based on the above embodiment, as a specific implementation, the parameter setting module 30 includes:

[0148] A first setting unit, configured to use a product obtained by multiplying the compression ratio of the solid state drive to be tested by a first preset coefficient as the compression I / O buffer percentage;

[0149] The second setting unit is used to use the product obtained by multiplying the hard disk sector size by a second preset coefficient as the I / O buffer size of the compression thread.

[0150] Based on the above embodiment, as a specific implementation, the test module 40 is specifically used for:

[0151] Using the test tool to generate test data of different block sizes, different types, and different compression rates;

[0152] Using the test tool to write the test data into the solid state drive to be tested;

[0153] Using the test tool to record various first performance indicators during the test data writing process;

[0154] Using the test tool to read data from the solid state drive to be tested;

[0155] Verify the integrity and correctness of the read data using the test tool;

[0156] The test tool is used to record various second performance indicators in the process of reading data from the solid state drive to be tested.

[0157] Based on the above embodiment, as a specific implementation method, it also includes:

[0158] An initialization module, used for performing initialization processing on the solid state drive to be tested before using the test tool to test the solid state drive to be tested based on the first target parameter;

[0159] The steady-state processing module is used to continuously write data to the solid-state hard disk to be tested until the solid-state hard disk to be tested reaches a steady state before using the test tool to test the solid-state hard disk based on the first target parameter.

[0160] In some embodiments, it also includes:

[0161] The report generation module is used to collect various performance indicators and generate test reports.

[0162] In some embodiments, it also includes:

[0163] A second setting module is used to set the second target parameters of the test tool; the second target parameters include I / O engine type, unbuffered I / O, number of threads, number of concurrent tasks, I / O queue depth, operation type, block size of a single I / O operation, data volume of I / O operation, output log interval and recording bandwidth interval;

[0164] Among them, set the I / O engine type to asynchronous I / O library;

[0165] Set unbuffered I / O to use;

[0166] Set the number of threads to one;

[0167] Set the number of concurrent tasks to the preset number of concurrent tasks and overwrite them in sequence;

[0168] Set the I / O queue depth to the preset I / O queue depths in sequence;

[0169] Set the I / O operation type to write and read in sequence;

[0170] Set the block size of a single I / O operation to be the block size of several single I / O operations overwritten in sequence;

[0171] Set the data volume of I / O operations to 100%;

[0172] Set the output log interval to the first value;

[0173] Set the recording bandwidth interval to the second value.

[0174] The solid-state hard disk testing device provided by the present invention sets the parameters of the testing tool according to the compression ratio of the solid-state hard disk to be tested and the hard disk sector size, including setting the compression I / O buffer percentage and the I / O buffer size of the compression thread, so that the parameter setting of the testing tool can be better adapted to the compression ratio and the hard disk sector size of the solid-state hard disk to be tested, ensuring that the test results can accurately reflect the performance of the transparent compression solid-state hard disk, improving the accuracy of the tested performance data, and at the same time ensuring efficient storage efficiency, avoiding unnecessary compression overhead, and consuming the least amount of memory to reduce the number of I / O times.

[0175] The present invention also provides a solid state hard disk test device, referring to Figure 3 As shown, the device includes a memory 1 and a processor 2 .

[0176] Memory 1, used for storing computer programs;

[0177] Processor 2 is used to execute the computer program to implement the following steps:

[0178] Obtaining a compression ratio of a solid-state hard disk to be tested; the solid-state hard disk to be tested is a solid-state hard disk using a transparent compression technology;

[0179] Obtaining the hard disk sector size of the solid state drive to be tested;

[0180] According to the compression ratio and hard disk sector size of the solid state drive to be tested, setting the first target parameter of the test tool, wherein the first target parameter includes the compression I / O buffer percentage and the I / O buffer size of the compression thread;

[0181] The test tool is used to test the solid state drive to be tested based on the first target parameter to obtain a performance indicator of the solid state drive to be tested.

[0182] For an introduction to the device provided by the present invention, please refer to the above method embodiment, and the present invention will not be elaborated here.

[0183] The solid-state hard disk test device provided by the present invention sets the parameters of the test tool according to the compression ratio of the solid-state hard disk to be tested and the hard disk sector size, including setting the compression I / O buffer percentage and the I / O buffer size of the compression thread, so that the parameter setting of the test tool can be better adapted to the compression ratio and the hard disk sector size of the solid-state hard disk to be tested, ensuring that the test results can accurately reflect the performance of the transparent compression solid-state hard disk, improving the accuracy of the tested performance data, and at the same time ensuring efficient storage efficiency, avoiding unnecessary compression overhead, and consuming the least amount of memory to reduce the number of I / O times.

[0184] The present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps can be implemented:

[0185] Obtaining a compression ratio of a solid-state hard disk to be tested; the solid-state hard disk to be tested is a solid-state hard disk using a transparent compression technology;

[0186] Obtaining the hard disk sector size of the solid state drive to be tested;

[0187] According to the compression ratio and hard disk sector size of the solid state drive to be tested, setting the first target parameter of the test tool, wherein the first target parameter includes the compression I / O buffer percentage and the I / O buffer size of the compression thread;

[0188] The test tool is used to test the solid state drive to be tested based on the first target parameter to obtain a performance indicator of the solid state drive to be tested.

[0189] The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0190] For an introduction to the computer-readable storage medium provided by the present invention, please refer to the above method embodiment, and the present invention will not elaborate on it here.

[0191] The present invention also provides a computer program product, comprising a computer program / instruction, wherein when the computer program / instruction is executed by a processor, the following steps are implemented:

[0192] Obtaining a compression ratio of a solid-state hard disk to be tested; the solid-state hard disk to be tested is a solid-state hard disk using a transparent compression technology;

[0193] Obtaining the hard disk sector size of the solid state drive to be tested;

[0194] According to the compression ratio and hard disk sector size of the solid state drive to be tested, setting the first target parameter of the test tool, wherein the first target parameter includes the compression I / O buffer percentage and the I / O buffer size of the compression thread;

[0195] The test tool is used to test the solid state drive to be tested based on the first target parameter to obtain a performance indicator of the solid state drive to be tested.

[0196] The various embodiments in the 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 referred to each other. For the devices, equipment, and computer-readable storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0197] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0198] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0199] The solid-state hard disk test method, device, equipment and computer-readable storage medium provided by the present invention are introduced in detail above. 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. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.

Claims

1. A solid state hard disk testing method, characterized in that: include: Obtaining a compression ratio of a solid-state hard disk to be tested; the solid-state hard disk to be tested is a solid-state hard disk using a transparent compression technology; Obtaining the hard disk sector size of the solid state drive to be tested; According to the compression ratio and hard disk sector size of the solid state drive to be tested, setting the first target parameter of the test tool, wherein the first target parameter includes the compression I / O buffer percentage and the I / O buffer size of the compression thread; The test tool is used to test the solid state drive to be tested based on the first target parameter to obtain a performance indicator of the solid state drive to be tested.

2. The solid state drive testing method according to claim 1, characterized in that: Obtaining the compression ratio of the SSD to be tested includes: Querying the physical capacity of the solid state drive to be tested; Querying the logical capacity of the solid state drive to be tested; The physical capacity is divided by the logical capacity to obtain a compression ratio of the solid state drive to be tested.

3. The solid state drive testing method according to claim 1, characterized in that: According to the compression ratio and sector size of the SSD to be tested, the first target parameters of the test tool are set as follows: The product of the compression ratio of the solid state drive to be tested and the first preset coefficient is used as the compression I / O buffer percentage; The product obtained by multiplying the hard disk sector size by the second preset coefficient is used as the I / O buffer size of the compression thread.

4. The solid state drive testing method according to claim 1, characterized in that: Testing the solid state drive to be tested based on the first target parameter using the test tool includes: Using the test tool to generate test data of different block sizes, different types, and different compression rates; Using the test tool to write the test data into the solid state drive to be tested; Using the test tool to record various first performance indicators during the test data writing process; Using the test tool to read data from the solid state drive to be tested; Verify the integrity and correctness of the read data using the test tool; The test tool is used to record various second performance indicators in the process of reading data from the solid state drive to be tested.

5. The solid state drive testing method according to claim 1, characterized in that: Before using the test tool to test the solid state drive to be tested based on the first target parameter, the method further includes: Initializing the solid state drive to be tested; Continue to write data to the solid state drive to be tested until the solid state drive to be tested reaches a steady state.

6. The solid state drive testing method according to claim 1, characterized in that: Also includes: Collect and organize various performance indicators and generate test reports.

7. The solid state drive testing method according to claim 1, characterized in that: Also includes: Setting the second target parameters of the test tool; the second target parameters include I / O engine type, unbuffered I / O, number of threads, number of concurrent tasks, I / O queue depth, operation type, block size of a single I / O operation, data volume of the I / O operation, output log interval, and recording bandwidth interval; Among them, set the I / O engine type to asynchronous I / O library; Set unbuffered I / O to use; Set the number of threads to one; Set the number of concurrent tasks to the preset number of concurrent tasks and overwrite them in sequence; Set the I / O queue depth to the preset I / O queue depths in sequence; Set the I / O operation type to write and read in sequence; Set the block size of a single I / O operation to be the block size of several single I / O operations overwritten in sequence; Set the data volume of I / O operations to 100%; Set the output log interval to the first value; Set the recording bandwidth interval to the second value.

8. A solid state hard disk testing device, characterized in that: include: A first acquisition module is used to acquire a compression ratio of a solid state drive to be tested; the solid state drive to be tested is a solid state drive using a transparent compression technology; A second acquisition module is used to acquire the hard disk sector size of the solid state drive to be tested; A parameter setting module, used to set a first target parameter according to the compression ratio of the solid state drive to be tested and the hard disk sector size, wherein the first target parameter includes a compression I / O buffer percentage and an I / O buffer size of a compression thread; The testing module is used to use the testing tool to test the solid-state hard disk to be tested based on the first target parameter to obtain the performance index of the solid-state hard disk to be tested.

9. A solid state hard disk testing device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the solid state drive testing method as described in any one of claims 1 to 7 when executing the computer program.

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 steps of the solid-state hard disk testing method according to any one of claims 1 to 7 are implemented.