Solid state disk performance test method and device, equipment and medium

By deploying the test slave computer in the solid-state drive, using the test serial port to communicate with the host computer, analyzing the number of concurrent channels and target test positions, and conducting concurrent performance testing, the problem of large errors in solid-state drive performance testing in the existing technology is solved, and a more complete system is achieved. Accurate multi-channel performance test results.

CN118629484APending Publication Date: 2024-09-10INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410543502.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-30
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Existing SSD performance testing tools cannot accurately test the maximum performance of SSDs. Especially in the case of multi-channel concurrency, the test results have large errors and cannot effectively reflect the performance of actual application scenarios.

Method used

By deploying the test slave computer in the solid-state drive, using the test serial port to communicate with the host computer, parsing the performance test information, determining the number of concurrent channels and target test locations, conducting concurrent performance tests based on the flash memory interface, calculating the performance test results, and directly through the shortest path Read, write and erase target locations to achieve multi-channel concurrent performance testing.

Benefits of technology

It reduces the error of SSD performance testing and obtains more reasonable test results, which can more accurately reflect the multi-channel concurrent performance of SSDs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118629484A
    Figure CN118629484A
Patent Text Reader

Abstract

In the embodiment of the invention, through the provided solid state disk performance testing method, performance testing information is obtained from a testing upper computer through a testing serial port in the solid state disk, the performance testing information is analyzed, the number of concurrent channels and target testing position information are obtained, and the target testing position information is obtained through a flash memory interface in the solid state disk on the basis of the number of the concurrent channels. And performing a concurrent performance test on a position indicated by the target test position information in the solid state disk, calculating a performance test result according to the performance test information and starting time and stopping time corresponding to the concurrent performance test, and returning the performance test result to the test upper computer through a test serial port in the solid state disk. The target position can be directly read, written and erased under the shortest path, a more reasonable test result is obtained through concurrent performance testing of multiple channels, and the error of performance testing of the solid state disk is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the continuous development of technology, the performance of solid state drives (SSDs) is also constantly improving. With the advancement of flash memory technology in SSDs and the optimization of SSD controllers, sequential read and write performance has gradually become an important indicator for evaluating SSD performance. When copying files such as several GB (Gigabyte) or larger videos, the sequential read and write performance of SSDs is brought into play. Therefore, performance testing for SSDs has gradually gained attention and development.

[0003] The commonly used performance testing tools for solid-state drives generally send read and write requests from the host to the SSD master control through the PCIE bus (Peripheral Component Interconnect Express, a high-speed serial computer expansion bus). The SSD master control obtains the read and write commands through the front end, and after a series of management algorithms, the back-end module reads and writes the flash memory chip, and then the front end returns the data. The entire test link contains different hardware entities and passes through multiple software modules. It is a relatively complex link and cannot accurately test the maximum performance of the solid-state drive.

[0004] In addition, commonly used performance testing tools test the read and write performance of a single channel and then calculate the overall performance of the SSD based on the single channel performance. In actual application scenarios, due to latency or competition for shared resources, the performance of multi-channel concurrency may not necessarily be equivalent to the multiplication of single-channel performance and the number of channels. Summary of the invention

[0005] In view of the above problems, the present invention proposes a solid state hard disk performance testing method, device, equipment, and medium.

[0006] In a first aspect of the present invention, a solid state drive performance test method is provided, wherein the method is applied to a test slave computer, the test slave computer is deployed in a solid state drive, the test slave computer communicates with a test host computer through a test serial port in the solid state drive, and the method comprises:

[0007] Obtaining performance test information from the test host computer via the test serial port in the solid state drive;

[0008] Parse the performance test information to obtain the number of concurrent channels and target test location information;

[0009] Performing a concurrent performance test on a location indicated by the target test location information in the solid-state hard disk based on the number of concurrent channels through a flash memory interface in the solid-state hard disk;

[0010] Calculate the performance test result according to the performance test information and the start time and stop time corresponding to the concurrent performance test;

[0011] The performance test result is returned to the test host computer through the test serial port in the solid state drive.

[0012] Optionally, the performing a concurrent performance test on a location indicated by the target test location information in the solid-state hard disk based on the number of concurrent channels through a flash memory interface in the solid-state hard disk includes:

[0013] According to the number of concurrent channels, selecting a target channel from the flash memory channels of the solid state drive;

[0014] Sending the plurality of test tasks to the solid state drive in sequence through the target channel;

[0015] The concurrent performance test is performed at the location indicated by the target test location information in the order of the plurality of test tasks.

[0016] Optionally, calculating the performance test result according to the performance test information and the start time and stop time corresponding to the concurrent performance test includes:

[0017] Determine each flash memory channel corresponding to the target channel;

[0018] If the interrupt trigger parameter is the test duration threshold, perform the following operations:

[0019] When the read and write time of each flash memory channel is greater than or equal to the test time threshold, calculating the amount of read and write data of each flash memory channel within the read and write time;

[0020] Calculating a performance test result based on the read and write data volume and the read and write time of each flash memory channel;

[0021] If the interrupt trigger parameter is the test data volume, perform the following operations:

[0022] Calculate the read and write times threshold value according to the test data volume and the single read and write data volume;

[0023] When the number of read and write times of each flash memory channel is greater than or equal to the read and write times threshold, calculating a performance test result according to the read and write times and the read and write time of each flash memory channel;

[0024] The read and write time of each flash memory channel is the difference between the start time and the stop time of the performance test of each flash memory channel.

[0025] Optionally, the method further comprises:

[0026] Receive basic test tasks sent by the test host computer, wherein the basic test tasks include bad block test tasks and aging test tasks;

[0027] The solid state drive is tested according to the basic test task, and the test result corresponding to the basic test task is returned to the test host computer.

[0028] In a second aspect of an embodiment of the present invention, a solid state drive performance test method is provided, wherein the method is applied to a test host computer, the test host computer communicates with a test slave computer in the solid state drive through a test serial port in the solid state drive, and the test slave computer is deployed in the solid state drive, and the method includes:

[0029] Calling the test serial port of the solid state drive according to preset serial port parameters;

[0030] Sending performance test information including the number of concurrent channels and target test position information to the solid-state hard disk through the test serial port; so that the test slave computer in the solid-state hard disk performs concurrent performance tests on the positions indicated by the target test position information in the solid-state hard disk based on the number of concurrent channels through the flash memory interface of the solid-state hard disk, and calculates the performance test results according to the performance test information and the start time and stop time corresponding to the concurrent performance test;

[0031] Obtaining performance test results from the test slave computer via the test serial port;

[0032] Calculate the difference between the performance test result and the theoretical performance data, and display the difference to the user; wherein the theoretical performance data is calculated based on the initial parameters of the flash memory chip in the solid-state drive and the hardware parameters of the solid-state drive.

[0033] Optionally, the method further comprises:

[0034] Generate a basic test task according to the type of the solid state drive, wherein the basic test task includes a bad block test task and an aging test task;

[0035] Sending the basic test task to the test slave computer so that the test slave computer performs the basic test task;

[0036] The test result corresponding to the basic test task is obtained from the test slave computer, and the test result corresponding to the basic test task is output.

[0037] Optionally, the acquiring the test result corresponding to the basic test task from the test slave computer and outputting the test result corresponding to the basic test task includes:

[0038] When the basic test task is a bad-storage drive test task, all bad-storage drive marks in the solid-state drive are obtained from the test slave computer;

[0039] A bad block table is generated according to all the bad block marks, and the bad block table is output as a test result.

[0040] In a third aspect of the present invention, a solid state drive performance test device is provided, which is applied to a test lower computer, wherein the test lower computer is deployed on a solid state drive, and the test lower computer communicates with a test upper computer through a test serial port in the solid state drive, and the device comprises:

[0041] An information acquisition module, used to obtain performance test information from the test host computer through the test serial port in the solid state drive;

[0042] A location determination module, used to parse the performance test information to obtain the number of concurrent channels and target test location information;

[0043] A performance testing module, configured to perform concurrent performance testing on the location indicated by the target test location information in the solid-state hard disk based on the number of concurrent channels through a flash memory interface in the solid-state hard disk;

[0044] The result calculation module is used to calculate the performance test result according to the performance test information and the start time and stop time corresponding to the concurrent performance test.

[0045] The result returning module is used to return the performance test result to the test host computer through the test serial port in the solid state drive.

[0046] In a third aspect of the present invention, there is also provided a solid state drive performance test device, which is applied to a test host computer, wherein the test host computer communicates with a test slave computer in the solid state drive through a test serial port in the solid state drive, and the test slave computer is deployed in the solid state drive, and the device comprises:

[0047] A serial port calling module, used to call the test serial port of the solid state drive according to preset serial port parameters;

[0048] An information sending module, used for sending performance test information including the number of concurrent channels and target test position information to the solid-state hard disk through the test serial port; so that the test slave computer in the solid-state hard disk performs a concurrent performance test on the position indicated by the target test position information in the solid-state hard disk based on the number of concurrent channels through the flash memory interface of the solid-state hard disk, and calculates the performance test result according to the performance test information and the start time and stop time corresponding to the concurrent performance test;

[0049] A result acquisition module, used for acquiring the performance test result from the test slave computer through the test serial port;

[0050] A result display module is used to calculate the difference between the performance test result and the theoretical performance data, and display the difference to the user; wherein the theoretical performance data is calculated based on the initial parameters of the flash memory chip in the solid-state drive and the hardware parameters of the solid-state drive.

[0051] In the third aspect of the implementation of the present invention, there is also provided an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, a solid-state hard disk performance testing method as described above is implemented.

[0052] In a fourth aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the solid-state hard disk performance testing method as described above is implemented.

[0053] The embodiments of the present invention have the following advantages:

[0054] In an embodiment of the present invention, through the provided solid-state hard disk performance test method, performance test information is obtained from the test host computer through the test serial port in the solid-state hard disk, the performance test information is parsed, the number of concurrent channels and the target test position information are obtained, and through the flash memory interface in the solid-state hard disk, based on the number of concurrent channels, the position indicated by the target test position information in the solid-state hard disk is subjected to concurrent performance testing, and the performance test result is calculated according to the performance test information and the start time and stop time corresponding to the concurrent performance test, and the performance test result is returned to the test host computer through the test serial port in the solid-state hard disk. Directly reading, writing and erasing the target position under the shortest path is achieved, and more reasonable test results are obtained by performing concurrent performance testing through multiple channels, thereby reducing the error of the solid-state hard disk performance test. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.

[0056] Figure 1 is a flowchart of the steps of a solid state drive performance testing method provided by some embodiments of the present invention;

[0057] Figure 2 is a hardware connection diagram provided by some embodiments of the present invention;

[0058] Figure 3 is a communication schematic diagram provided by some embodiments of the present invention;

[0059] Figure 4 is a conventional module diagram of a solid state drive provided by some embodiments of the present invention;

[0060] Figure 5 is a flowchart of another solid state drive performance testing method provided by some embodiments of the present invention;

[0061] Figure 6 It is a structural block diagram of a solid state drive performance testing device provided by some embodiments of the present invention.

[0062] Figure 7 It is a structural block diagram of another solid state drive performance testing device provided by some embodiments of the present invention. DETAILED DESCRIPTION

[0063] To make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the embodiments of the present invention, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can be implemented. The division of the following embodiments is for the convenience of description, and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined and referenced with each other without contradiction.

[0064] Reference Figure 1 , shows a flow chart of the steps of a solid state drive performance test method provided by an embodiment of the present invention, the method is applied to a test lower computer, the test lower computer is deployed in a solid state drive, the test lower computer communicates with the test upper computer through a test serial port in the solid state drive, and specifically may include the following steps:

[0065] Step 101: Obtain performance test information from the test host computer through the test serial port in the solid state drive.

[0066] Among them, the test lower computer and the test upper computer are a group of test software or test modules that cooperate with each other. The test lower computer mainly focuses on communication with the test upper computer, execution of commands, data acquisition, etc., and is used to receive and feedback the instructions of the test upper computer, and control the hardware equipment to perform execution actions and read information from the hardware equipment according to the instructions; the test upper computer is used to send instructions to the test lower computer and receive feedback data from the test lower computer, provide an interactive interface for the tester and display feedback data to the tester. The test upper computer and the test lower computer can be on the same PC (Personal Computer) or server; or they can be located in the server and PC respectively. Solid State Disk (Solid State Drive, referred to as SSD), also known as solid-state drive, is a hard disk made of solid-state electronic storage chip array. The test serial port is a hardware interface reserved on the solid-state hard disk for testers to perform tests. Performance test information refers to the configuration information, test tasks, etc. for testing the solid-state hard disk.

[0067] In order to perform performance testing on a solid-state drive, the test host computer needs to send a large amount of configuration information and test tasks to the test slave computer, and continuous communication is required, so the test host computer and the test slave computer need to be connected through hardware. In some embodiments of the present invention, the test slave computer is deployed in a solid-state drive, the solid-state drive is installed on a certain PC, and the test host computer is deployed on another PC. In other embodiments, the test slave computer is deployed in a solid-state drive, and the solid-state drive is installed on a certain PC.

[0068] Figure 2 is a hardware connection diagram provided by some embodiments of the present invention, such as Figure 2As shown, the test lower computer is deployed inside the solid state drive, the solid state drive is installed on a PC or server, and the test upper computer is also deployed in the PC or server. The solid state drive provides a serial port for testers to perform tests. Since current PCs or servers usually do not have serial ports, but have USB (Universal Serial Bus) interfaces, they can be connected through a USB To Serial (Universal Serial Bus To Serial) hardware conversion cable, one end of which is connected to the USB interface of the PC and the other end is connected to the test serial port of the solid state drive. The test upper computer and the test lower computer can communicate through the conversion cable, and the test lower computer obtains the performance test information sent by the test upper computer from the test serial port of the solid state drive. In another case, if the test upper computer and the test lower computer are located in different PCs or servers, they can also be connected through USB To Serial, one end of which is connected to the USB interface of the PC or server where the test upper computer is located, and the other end is connected to the test serial port of the solid state drive where the test lower computer is located.

[0069] pass Figure 2 It can be seen that the solid-state drive is also connected to the PC via a PCIe (Peripheral Component Interconnect Express, a high-speed serial computer expansion bus standard) interface, and the solid-state drive is connected to the PC where the solid-state drive is located via the interface, so that the solid-state drive is in working condition. PCle SSD (PCIe Solid State Disk, PCIe solid-state drive) is a solid-state drive that uses a PCIe interface. In some other embodiments of the present invention, the solid-state drive may also be other types of solid-state drives, including SATA SSD (Serial Attached SCSI SSD, SATA solid-state drive) and SAS SSD (Serial ATA SSD, SAS solid-state drive), and the PCIe interface in the figure may be changed to a SATA interface or a SAS interface to realize the connection of different types of solid-state drives with the PC, so that hard drives of different interface types are in working condition.

[0070] After the hardware connection, the test slave computer communicates with the test host computer through a pre-customized test serial port, and the test slave computer can obtain the performance test information sent by the test host computer from the test serial port of the solid state drive. Figure 3 is a communication schematic diagram provided by some embodiments of the present invention, such as Figure 3As shown, in some embodiments of the present invention, the test host computer and the test slave computer communicate based on the serial communication protocol. The test slave computer can also provide a serial port application program interface for communicating with the test host computer client, and this serial port application program interface can support different types of nand (flash memory).

[0071] Step 102: parse the performance test information to obtain the number of concurrent channels and target test location information.

[0072] Among them, performance test information refers to all the information contained in the entire test process. Performance test information can include: the number of concurrent channels tested and the target test location information. The number of concurrent channels refers to the number of concurrent channels required for concurrent performance testing. The target test location information can be a block, a specified page, etc. Block is the smallest unit of erasure. The block with written data must be erased first and then written, and cannot be overwritten.

[0073] In the performance test information, you can specify the basic operations of erase, write, and read, and you can also specify various configuration information such as the duration of the performance test, the amount of data for the performance test, whether to ignore errors and continue the test or stop the test. For read and write operations, you can also configure the content of the written data and whether verification is required when reading data. The content of the written data can be a 4-byte-8-byte-16-byte-32-byte data cycle expressed in the form of a regular expression.

[0074] After obtaining the performance test information from the test host computer, the performance test information needs to be parsed to obtain the relevant information required for the performance test. Some embodiments of the present application parse the performance test information to obtain the number of concurrent channels and target test location information, so that the specified target test location can be tested. Specifically, the performance test information can be parsed through the aforementioned serial port application program interface to obtain the relevant information required for the test.

[0075] In the relevant technology for testing the performance of solid-state drives, the usual practice is to test the sequential read and write performance of a channel separately, and calculate the overall performance. However, this method will cause inaccurate test results. First of all, in actual applications, since the concurrent reading and writing of multiple channels is often much more complicated than the reading and writing of a single channel, the multi-channel concurrency is not necessarily equivalent to the performance of a single channel multiplied by the number of channels. In addition, during the test, due to a large number of erase, read and write operations on the solid-state drive, the temperature of the solid-state drive will rise accordingly, and there are some differences in the concurrency compared with the single channel. In the case of a single channel, some problems or phenomena may not be triggered, resulting in a large difference from the actual data.

[0076] Step 103: Perform a concurrent performance test on the location indicated by the target test location information in the solid state drive based on the number of concurrent channels through the flash memory interface in the solid state drive.

[0077] Figure 4 This is a conventional module diagram of a solid-state hard disk provided by some embodiments of the present invention. In the related art, if it is necessary to perform a read and write performance test on the solid-state hard disk, it is necessary to receive a command from the operating system and send the test data to the solid-state hard disk interface of the solid-state hard disk. The test data passes through the FTL layer (Flash Translation Layer) to perform a series of calculations, address conversion and other operations, and then the performance test operation of the flash memory chip is performed through the NAND interface.

[0078] The present invention directly omits the front-end solid state drive interface and the intermediate FTL layer. The test slave is deployed on the solid state drive and directly interacts with the nand interface to directly test the flash memory chip, which can maximize the performance of the flash memory chip.

[0079] Therefore, one or some specified locations can be directly operated through the flash memory interface in the solid-state drive, and concurrent performance tests can be performed on the locations indicated by the target test location information in the solid-state drive based on the number of concurrent channels.

[0080] In some embodiments of the present invention, the performance test information includes several test tasks, and step 103 may also include the following sub-steps:

[0081] Sub-step 11: Select a target channel from the flash memory channels of the solid state drive according to the number of concurrent channels.

[0082] Among them, the test task refers to the test plan formulated according to the needs of the tester or the test project. The target channel refers to the flash channel selected according to the concurrent channel data for performing the performance test task. In the solid-state drive, the flash channel (Channel) is responsible for transmitting the received commands and data to the storage medium. Each flash channel is connected to a certain number of flash chips. The amount of data in the flash channel has a great impact on the performance of the solid-state drive. Multiple flash channels mean that data can be transmitted simultaneously through multiple flash channels. Therefore, solid-state drives with more flash channels can provide higher read and write speeds.

[0083] When performing a performance test on a solid-state drive, you can specify the number of concurrent channels, so that you can select flash channels that are equal to the number of concurrent channels based on the specified number of concurrent channels, and use these flash channels as target channels. Through these selected target channels, perform various erase, read, and write combination operations on the storage medium. On this basis, performing concurrent performance tests on the solid-state drive can obtain more reasonable test results.

[0084] Assuming that the tester specifies 4 concurrent channels during the test according to actual test requirements, 4 channels can be selected from multiple flash memory channels of the solid-state drive and these 4 channels can be used as target channels.

[0085] Sub-step 12: Sending the plurality of test tasks to the solid state drive in sequence through the target channel.

[0086] In the actual performance test process, a test requirement can also include several test tasks, and a test task contains multiple smallest subtasks. Therefore, several test tasks are a sequential test process composed of test subtasks. Therefore, the actual test process is to send each test task to the SSD in sequence to test the SSD.

[0087] As can be seen from the above content, the channel is responsible for transmitting commands and data to the storage medium. Therefore, several test tasks can be sent to the solid-state drive in sequence through the target channel selected by the channel.

[0088] Specifically, when performing a performance test, you can first perform a 10-second erase operation, then perform a 10-second write operation, and finally perform a 10-second read operation, and then cycle 1000 times in the order of erase, read, and write. At this time, the 10-second erase operation can be used as the first subtask, the 10-second write operation as the second subtask, and the 10-second read operation as the third subtask. The three subtasks are sequentially composed into a test task, and a test task cycled 1000 times also constitutes several test tasks. Other test tasks can also be performed after the test task composed of three subtasks, and the present invention is not limited to this. Send several test tasks to the solid-state drive, and the solid-state drive performs test operations according to the received test tasks.

[0089] Sub-step 13: Execute concurrent performance testing at the location indicated by the target test location information in the order of the plurality of test tasks.

[0090] Since the test tasks have a corresponding order, after receiving several test tasks, the concurrent performance test can be performed at the specified location in the solid-state drive according to the order of the test tasks. Similarly, the multiple subtasks contained in the test task also have a corresponding order.

[0091] Step 104: Calculate the performance test result according to the performance test information and the start time and stop time corresponding to the concurrent performance test.

[0092] Among them, the performance test information refers to all information related to the performance test during the performance test process. In some embodiments of the present invention, the performance test information includes an interrupt trigger parameter, and the interrupt trigger parameter refers to the circumstances under which the test is interrupted. The interrupt trigger parameter can be a predetermined amount of data written or read by a certain test. If it is greater than the amount of data, the test is interrupted; it can also be predetermined that a certain test is to perform a write or read operation within a fixed time length. If it exceeds the fixed time length, the test is interrupted. Therefore, the interrupt trigger parameter actually contains the amount of test data or test time corresponding to the test task that needs to be performed. The start time and stop time corresponding to the concurrent performance test refer to the time when the performance test starts and the time when the performance test ends. The actual length of time used for the performance test can be calculated based on the start time and stop time. Therefore, the performance test result can be calculated based on the performance test information, the start time and the stop time.

[0093] When the interrupt trigger condition is data volume, the test will be stopped immediately when the amount of data written or read during the test is greater than the amount of data configured by the interrupt trigger parameter. At this time, the amount of data written or read is certain, so the performance test results can be calculated based on this certain amount of data and the start and stop time of the test.

[0094] When the interrupt trigger parameter is time, the test will be stopped immediately when the writing or reading time during the test is greater than the time configured by the interrupt trigger parameter. At this time, the reading and writing time is determined, so the performance test results can be calculated based on the amount of read and write data performed within the reading and writing time and the reading and writing time.

[0095] If the data writing test is performed on the solid-state drive, the interrupt trigger parameter is pre-configured with a data volume of 1TB. If the writing stops when 1TB of data is written, and if the time taken is 1 / 10 second, the writing speed corresponding to this data writing test can be calculated to be 10TB / second. This writing speed can be used as the performance test result of this time. If the data reading test is performed on the solid-state drive, the interrupt trigger parameter is pre-configured with a data volume of 10TB, and the reading stops when 10TB of data is read out, and if the time taken is 2 seconds, the reading speed corresponding to this data reading test can be calculated to be 5TB / second. This reading speed can be used as the performance test result of this time.

[0096] In some embodiments of the present invention, step 104 may further include the following sub-steps:

[0097] Sub-step 21: Determine each flash memory channel corresponding to the target channel.

[0098] Since the present invention performs concurrent performance tests, the test results of each flash memory channel that performs concurrent tests need to be considered when calculating the test results, so each flash memory channel corresponding to the target channel needs to be determined.

[0099] Sub-step 22: If the interrupt trigger parameter is a test duration threshold, perform the following operations: when the read and write time of each flash memory channel is greater than or equal to the test duration threshold, calculate the amount of read and write data of each flash memory channel within the read and write time; calculate the performance test result based on the read and write data amount and the read and write time of each flash memory channel.

[0100] In concurrent performance testing, it is necessary to consider whether the test of each channel should be stopped based on the interrupt trigger parameters. When the read and write time of a flash channel is greater than or equal to the test duration threshold, the test task of the flash channel can be considered to be over. At this time, the actual read and write data volume of the flash channel during the read and write time can be calculated, and the actual read and write data volume can be compared with the expected read and write data volume to obtain the performance test result; the read and write data volume per unit time can also be calculated based on the read and write data volume and the read and write time of each flash channel, and the read and write data volume per unit time can be used as the performance test result.

[0101] Sub-step 25: If the interrupt trigger parameter is the test data volume, perform the following operations: calculate the read and write times threshold based on the test data volume and the single read and write data volume; when the read and write times of each flash memory channel is greater than or equal to the read and write times threshold, calculate the single read and write time based on the read and write times and the read and write time of each flash memory channel, and calculate the performance test result; wherein, the read and write time of each flash memory channel is the difference between the start time and the stop time of the performance test of each flash memory channel.

[0102] From the above content, it can be seen that if the interrupt trigger parameter is the test data volume, the test can be interrupted when the data volume corresponding to the test operation reaches the test data volume. However, since the single read and write data volume is usually fixed, the number of read and write times required to read and write the test data volume can be calculated based on the test data volume and the single read and write data volume. The calculated number of read and write times is used as the read and write number threshold. When the read and write times of a flash memory channel is greater than or equal to the read and write number threshold, it can be considered that the test task of the flash memory channel is completed, and the performance test results are calculated based on the read and write times and the read and write time.

[0103] Specifically, the single read and write time corresponding to the fixed amount of data in each flash channel can be calculated based on the number of read and write times and the read and write time of each flash channel. Since the single read and write time is a very important performance indicator in the performance test, the single read and write time is written into the performance test result. If 100TB of data is written to the solid-state drive, the amount of data written each time is fixed to 1GB. It can be calculated that it needs to be written 102400 times. After the flash channel performs 102400 write operations, the total write time can be obtained according to the corresponding start time and stop time, and then the total write time can be divided by the total write number 102400 to obtain the time corresponding to a write operation, that is, the single write time. Assuming that the total write time is 1024 seconds, the single write time can be calculated to be 1 / 100 second, and further calculation can be performed to obtain a write rate of 100GB / second, which can be used as the performance test result of this time. Similarly, in the test process including reading and writing, the single read and write time or read and write rate can be calculated through this calculation process.

[0104] In some embodiments of the present invention, the performance test information includes the return step of the test result. Therefore, the number of concurrent channels, the target test position information and the result return step can be obtained by parsing the performance test information. Through the flash memory interface in the solid-state drive, based on the number of concurrent channels and the result return step, the location indicated by the target test position information in the solid-state drive is subjected to concurrent performance testing. If a certain test task is to write 3T of data to the solid-state drive through the process of erasing, reading and writing, the whole process may take 3 hours. The return step of the test result can be set in the performance test information. Assuming that the return step is set to 1 second, the current write speed will be returned once every 1 second. On this basis, the final performance test data includes not only the overall result of the write speed for 3 hours, but also the result of the write speed every 1 second, based on which it can be judged whether the data writing speed is stable.

[0105] Step 105: Return the performance test result to the test host computer through the test serial port in the solid state drive.

[0106] After calculating the performance test results, the performance test results can be returned to the test host computer through the test serial port. After receiving the test results, the test host computer can display them directly, or compare the test results through a series of preset algorithms before displaying them.

[0107] In some embodiments of the present invention, the following steps may also be included:

[0108] Receive basic test tasks sent by the test host computer, wherein the basic test tasks include bad block test tasks and aging test tasks;

[0109] The bad block test task refers to obtaining all bad blocks in the solid state drive through testing. The aging test refers to performing a long-term aging test on the solid state drive.

[0110] When performing a bad block test task, you can perform erase and read operations on all storage blocks of the SSD. If a bad block mark is read or an abnormal return value is obtained during the erase and read operation, the storage block is considered a bad block. All bad blocks are marked and a bad block table is generated. You can also compare and verify the generated bad block table with the bad block table that comes with the SSD. The bad block table that comes with the SSD is a bad block table that is automatically generated by the algorithm that is fixed in the SSD during production.

[0111] When performing an aging test, a long-term test can be performed on all flash memories except those with bad block marks according to the process of erasing, writing, and reading. The long-term test can last for several days or even dozens of days to obtain the aging test results.

[0112] The solid state drive is tested according to the basic test task, and the test result corresponding to the basic test task is returned to the test host computer.

[0113] Since the basic test task includes a bad block test and an aging test, after the basic test task is executed, the test result corresponding to the basic test task can be returned to the test host computer so that the test host computer can analyze or display it.

[0114] In an embodiment of the present invention, through the provided solid-state hard disk performance test method, performance test information is obtained from the test host computer through the test serial port in the solid-state hard disk, the performance test information is parsed, the number of concurrent channels and the target test position information are obtained, and through the flash memory interface in the solid-state hard disk, based on the number of concurrent channels, the position indicated by the target test position information in the solid-state hard disk is subjected to concurrent performance testing, and the performance test result is calculated according to the performance test information and the start time and stop time corresponding to the concurrent performance test, and the performance test result is returned to the test host computer through the test serial port in the solid-state hard disk. Directly reading, writing and erasing the target position under the shortest path is achieved, and more reasonable test results are obtained by performing concurrent performance testing through multiple channels, thereby reducing the error of the solid-state hard disk performance test.

[0115] Reference Figure 5 , shows a flowchart of another solid-state hard disk performance test method provided by an embodiment of the present invention, the method is applied to a test host computer, the test host computer communicates with a test slave computer in the solid-state hard disk through a test serial port in the solid-state hard disk, and the test slave computer is deployed in the solid-state hard disk, and specifically may include the following steps:

[0116] Step 501: calling the test serial port of the solid state drive according to preset serial port parameters.

[0117] Among them, serial port parameters refer to all parameters required to call or start the test serial port. Serial port parameters can be parameters configured by testers according to actual needs. Serial port parameters can be baud rate, which is used to configure the rate of the test serial port.

[0118] Before performing a solid-state drive performance test, you first need to configure the serial port parameters, and call the solid-state drive test serial port based on the serial port parameters to open the data channel for subsequent performance tests.

[0119] Step 502: Send the performance test information including the number of concurrent channels and the target test position information to the solid-state drive through the test serial port; so that the test slave computer in the solid-state drive performs a concurrent performance test on the position indicated by the target test position information in the solid-state drive based on the number of concurrent channels through the flash memory interface of the solid-state drive, and calculates the performance test result according to the performance test information and the start time and stop time corresponding to the concurrent performance test.

[0120] Among them, the performance test information includes the number of concurrent channels and target test location information. The concurrent channel data is the number of channels specified by the concurrent performance test. By setting the target test location information, a specific location in the solid-state drive is tested according to the tester's needs. In addition, the performance test information can also include interrupt trigger parameters, and the performance test is stopped when the interrupt condition represented by the interrupt trigger parameter is met.

[0121] The performance test information is sent to the lower computer through the test serial port. The lower computer communicates directly with the flash memory interface to realize multi-channel concurrent erase and read operations on the flash memory chip, thereby maximizing the performance of the flash memory chip and obtaining performance test results that are more representative of the read and write performance of the solid-state drive.

[0122] In some embodiments of the present invention, performance test information including concurrent channel data and target test position information is sent to a solid state drive through a test serial port. A multi-channel concurrent test can be performed on the position indicated by the target test position information in the solid state drive to obtain performance test data at the position. The position indicated by the target test position information can be any ce, lun, block or wordline, and the present invention does not limit this. The interrupt trigger parameter can be a test data volume or a test duration threshold, so after the test is completed, the lower computer can calculate the corresponding performance test result based on the interrupt trigger parameter in the performance test information.

[0123] In some embodiments of the present invention, the performance test information may include the return step of the test result, therefore, the performance test information including the number of concurrent channels, the target test position information, and the test result return step may be sent to the solid state drive through the test serial port, the test lower computer in the solid state drive performs concurrent performance test on the position indicated by the target test position information in the solid state drive through the flash memory interface of the solid state drive, based on the number of concurrent channels and the test result return step, if a certain test task is to write 3T data to the solid state drive through the process of wiping read and write, the whole process may take 3 hours, the test result return step of the test result may be set in the performance test information, assuming that the test result return step is set to 1 second, then the current write speed will be returned once every 1 second. On this basis, the final performance test data obtained by the test host computer includes not only the overall result of the write speed for 3 hours, but also the result of the write speed every 1 second, and it can be judged whether the speed of data writing is stable.

[0124] Step 503: Obtain performance test results from the test slave computer through the test serial port.

[0125] After the performance test is completed, the performance test results returned by the lower computer can be obtained through the test serial port.

[0126] Step 504: Calculate the difference between the performance test result and the theoretical performance data, and display the difference to the user; wherein the theoretical performance data is calculated based on the initial parameters of the flash memory chip in the solid-state drive and the hardware parameters of the solid-state drive.

[0127] The theoretical performance data is calculated based on the initial parameters of the flash memory chip in the SSD and the hardware parameters of the SSD itself. Different flash memory chips correspond to different read and write methods and different read and write speeds, which means that different flash memory chips have different initial parameters. Similarly, the SSD itself also has many hardware parameters. Therefore, the theoretical performance data can be calculated based on the initial parameters of the flash memory chip in the SSD and the hardware parameters of the SSD itself.

[0128] After obtaining the performance test result corresponding to a test returned by the test lower computer, the difference between the actual result and the theoretical data can be determined by calculating the difference between the performance test result and the theoretical performance data. Before a new solid-state drive is mass-produced, through the test of the present invention, if it is found that the performance test result and the theoretical result corresponding to the demand design have a large gap, it means that the solid-state drive does not meet the expected effect, and the design of the solid-state drive can be adjusted.

[0129] Specifically, the measured read, write and erase performance data is compared with the theoretical performance data. Different forms of charts can be selected according to the needs of the tester to show the difference between the actual test and the theoretical value. Similarly, the tester can also display the obtained performance test data only through charts according to their own needs. The test host computer provides a visual operation interface for the tester, and the tester can choose to generate and save different forms of charts for the test data or the calculated difference values. Specifically, pie charts, line graphs, etc. can be generated according to the needs of the tester. The change process of the performance test data can also be displayed in the coordinate system, with the horizontal axis representing time and the vertical axis representing bandwidth, so that the changes in the read and write speed of the solid-state drive during the entire test process can be more intuitively understood.

[0130] In some embodiments of the present invention, the following steps may also be included:

[0131] A basic test task is generated according to the type of the solid state drive, and the basic test task includes a bad block test task and an aging test task.

[0132] Among them, the type of SSD can be the type of SSD, or the platform type corresponding to the SSD, wherein the platform type corresponding to the SSD can be the NAND platform type, or other types used to distinguish SSDs; basic test tasks include bad block test tasks and aging test tasks. Different bad block test tasks or aging test tasks can be customized according to different platform types. Among them, the bad block test task refers to the erase and write operation of all storage blocks of the entire SSD. If the result obtained in the process of erasing and writing a certain storage block is a bad block mark, the storage block can be considered as a bad block. Aging test refers to the long-term testing of all flash memory chips according to the process of erasing, writing, and reading, which may be several days or even dozens of days.

[0133] The basic test task is sent to the test slave computer so that the test slave computer executes the basic test task.

[0134] Since the basic test task refers to a bad block test or an aging test, the basic test task may be sent to a test slave computer so that the test slave computer performs the bad block test or the aging test.

[0135] The test result corresponding to the basic test task is obtained from the test slave computer, and the test result corresponding to the basic test task is output.

[0136] After receiving the bad block test task or aging test task, the test lower computer will control the SSD to perform the bad block test or aging test. When performing the aging test, the bad block can be skipped according to the bad block table obtained from the bad block test, and the aging test can be performed on all other storage blocks that can be read and written normally. After receiving the test results from the test lower computer, the test upper computer can output the test results corresponding to the basic test task.

[0137] In some embodiments of the present invention, the step of obtaining the test result corresponding to the basic test task from the test slave computer and outputting the test result corresponding to the basic test task may include the following sub-steps:

[0138] When the basic test task is a bad-storage drive test task, all bad-storage drive marks in the solid-state drive are obtained from the test slave computer;

[0139] When the basic test task is a bad block test task, the test lower computer can obtain the bad block marks of all storage blocks in the solid state drive through the bad block test. Therefore, the test upper computer can obtain all bad block marks in the solid state drive from the test lower computer.

[0140] A bad block table is generated according to all the bad block marks, and the bad block table is output as a test result.

[0141] Summarizing all bad block marks can generate a bad block table, which can be output as a test result through a visual interface, and the tester can obtain all bad block information of the SSD from the visual interface. Specifically, the interactive interface of the test host computer can be implemented based on python pyqt (the successful integration of Python programming language and Qt library), so that the tester can configure various test data parameters and obtain test results through the visual interactive interface when performing performance testing on the SSD.

[0142] In an embodiment of the present invention, by the provided solid state drive performance test method, the test serial port of the solid state drive is called according to the preset serial port parameters, and the performance test information including the number of concurrent channels and the target test position information is sent to the solid state drive through the test serial port, so that the test slave in the solid state drive performs concurrent performance test on the position indicated by the target test position information in the solid state drive through the flash memory interface of the solid state drive based on the number of concurrent channels, and calculates the performance test result according to the performance test information and the start time and stop time corresponding to the concurrent performance test, obtains the performance test result from the test slave through the test serial port, calculates the difference between the performance test result and the theoretical performance data, and displays the difference to the user (tester). It is realized that the solid state drive where the test slave is located is tested by the test host computer and the target position is directly read, written and erased under the shortest path, and a more reasonable test result is obtained, which reduces the error of the solid state drive performance test.

[0143] 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.

[0144] Reference Figure 6 , shows a schematic diagram of the structure of a solid state drive performance test device provided by an embodiment of the present invention, which is applied to a test lower computer, the test lower computer is deployed in a solid state drive, and the test lower computer communicates with the test upper computer through a test serial port in the solid state drive, and specifically may include the following modules:

[0145] The location determination module 601 is used to parse the performance test information to obtain the number of concurrent channels and target test location information.

[0146] The performance testing module 602 is used to perform concurrent performance testing on the location indicated by the target test location information in the solid state drive based on the number of concurrent channels through the flash memory interface in the solid state drive.

[0147] The result calculation module 603 is used to calculate the performance test result according to the performance test information and the start time and stop time corresponding to the concurrent performance test.

[0148] The result returning module 604 is used to return the performance test result to the test host computer through the test serial port in the solid state drive.

[0149] In an optional embodiment of the present invention, the performance test information includes a plurality of test tasks, and the performance test module includes:

[0150] The channel selection submodule is used to select a target channel from the flash memory channels of the solid state drive according to the number of concurrent channels.

[0151] The task sending submodule is used to send the plurality of test tasks to the solid state drive in sequence through the target channel.

[0152] The test execution submodule is used to execute concurrent performance tests at the location indicated by the target test location information in the order of the multiple test tasks.

[0153] In an optional embodiment of the present invention, the performance test information includes an interrupt trigger parameter, and the result calculation module includes:

[0154] A channel determination submodule, used to determine each flash memory channel corresponding to the target channel;

[0155] The first performance calculation submodule is configured to perform the following operations if the interrupt trigger parameter is a test duration threshold:

[0156] When the read and write time of each flash memory channel is greater than or equal to the test time threshold, calculating the amount of read and write data of each flash memory channel within the read and write time;

[0157] A performance test result is calculated based on the read and write data volume and the read and write time of each flash memory channel.

[0158] The second performance calculation submodule is used to perform the following operations if the interrupt trigger parameter is the test data volume:

[0159] Calculate the read and write times threshold value according to the test data volume and the single read and write data volume;

[0160] When the number of read and write times of each flash memory channel is greater than or equal to the read and write times threshold, calculating a performance test result according to the read and write times and the read and write time of each flash memory channel;

[0161] The read and write time of each flash memory channel is the difference between the start time and the stop time of the performance test of each flash memory channel.

[0162] In an optional embodiment of the present invention, the device further comprises:

[0163] The basic task receiving module is used to receive the basic test tasks sent by the test host computer, and the basic test tasks include bad block test tasks and aging test tasks.

[0164] The basic task test module is used to test the solid state drive according to the basic test task and return the test result corresponding to the basic test task to the test host computer.

[0165] In an embodiment of the present invention, performance test information is obtained from a test host computer through a test serial port in a solid-state drive, the performance test information is parsed, the number of concurrent channels and target test position information are obtained, and a concurrent performance test is performed on the position indicated by the target test position information in the solid-state drive based on the number of concurrent channels through a flash memory interface in the solid-state drive, and the performance test result is calculated according to the performance test information and the start time and stop time corresponding to the concurrent performance test, and the performance test result is returned to the test host computer through the test serial port in the solid-state drive. Directly reading, writing and erasing the target position under the shortest path is achieved, and more reasonable test results are obtained by performing concurrent performance tests through multiple channels, thereby reducing the error of the solid-state drive performance test.

[0166] Reference Figure 7 , shows a schematic diagram of the structure of a solid state drive performance test device provided by an embodiment of the present invention, which is applied to a test lower computer, the test lower computer is deployed in a solid state drive, and the test lower computer communicates with a test upper computer through a test serial port in the solid state drive, and specifically may include the following modules:

[0167] The serial port calling module 701 is used to call the test serial port of the solid state drive according to preset serial port parameters.

[0168] The information sending module 702 is used to send performance test information including the number of concurrent channels and target test position information to the solid-state hard disk through the test serial port; so that the test slave computer in the solid-state hard disk performs a concurrent performance test on the position indicated by the target test position information in the solid-state hard disk based on the number of concurrent channels through the flash memory interface of the solid-state hard disk, and calculates the performance test result based on the performance test information and the start time and stop time corresponding to the concurrent performance test.

[0169] The result acquisition module 703 is used to acquire the performance test result from the test slave computer through the test serial port.

[0170] The result display module 704 is used to calculate the difference between the performance test result and the theoretical performance data, and display the difference to the user; wherein the theoretical performance data is calculated based on the initial parameters of the flash memory chip in the solid-state drive and the hardware parameters of the solid-state drive.

[0171] In an optional embodiment of the present invention, the device further comprises:

[0172] The basic task generation module is used to generate basic test tasks according to the type of the solid state drive, and the basic test tasks include bad block test tasks and aging test tasks.

[0173] The basic task sending module is used to send the basic test task to the test slave computer so that the test slave computer executes the basic test task.

[0174] The basic test result output module is used to obtain the test results corresponding to the basic test tasks from the test slave computer and output the test results corresponding to the basic test tasks.

[0175] In an optional embodiment of the present invention, the basic test result output module includes:

[0176] The bad block acquisition submodule is used to acquire all bad block marks in the solid state drive from the test slave computer when the basic test task is a bad block test task.

[0177] The bad block table output submodule is used to generate a bad block table according to all the bad block marks, and output the bad block table as a test result.

[0178] In an embodiment of the present invention, by calling the test serial port of the solid state drive according to the preset serial port parameters, the performance test information including the number of concurrent channels and the target test position information is sent to the solid state drive through the test serial port, so that the test slave in the solid state drive passes through the flash memory interface of the solid state drive, based on the number of concurrent channels, the position indicated by the target test position information in the solid state drive is subjected to concurrent performance test, and according to the performance test information, the start time and stop time corresponding to the concurrent performance test, the performance test result is calculated, the performance test result is obtained from the test slave through the test serial port, the difference value between the performance test result and the theoretical performance data is calculated, and the difference value is displayed to the user (tester). It is realized that the solid state drive where the test slave is located is subjected to concurrent performance test by the test host, and the target position is directly read and written under the shortest path, a more reasonable test result is obtained, and the error of the solid state drive performance test is reduced.

[0179] An embodiment of the present invention further provides 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. When the computer program is executed by the processor, the above-mentioned solid-state hard disk performance testing method is implemented.

[0180] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned solid-state hard disk performance testing method is implemented.

[0181] Some embodiments of the present invention further provide a computer program product, including a computer program, which implements the above method when executed by a processor.

[0182] 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.

[0183] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0184] 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.

[0185] 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.

[0186] 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.

[0187] 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.

[0188] 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.

[0189] 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.

[0190] 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.

[0191] The solid-state hard disk performance testing method, device, equipment, and medium provided above are introduced in detail. 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 general technical personnel in this field, 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 solid state drive performance testing method, characterized in that: The method is applied to a test lower computer, the test lower computer is deployed in a solid state drive, the test lower computer communicates with a test upper computer through a test serial port in the solid state drive, and the method includes: Obtaining performance test information from the test host computer via the test serial port in the solid state drive; Parse the performance test information to obtain the number of concurrent channels and target test location information; Performing a concurrent performance test on a location indicated by the target test location information in the solid-state hard disk based on the number of concurrent channels through a flash memory interface in the solid-state hard disk; Calculate the performance test result according to the performance test information and the start time and stop time corresponding to the concurrent performance test; The performance test result is returned to the test host computer through the test serial port in the solid state drive.

2. The method according to claim 1, characterized in that The performance test information includes a plurality of test tasks, and the concurrent performance test is performed on the location indicated by the target test location information in the solid state drive based on the number of concurrent channels through the flash memory interface in the solid state drive, including: According to the number of concurrent channels, selecting a target channel from the flash memory channels of the solid state drive; Sending the plurality of test tasks to the solid state drive in sequence through the target channel; The concurrent performance test is performed at the location indicated by the target test location information in the order of the plurality of test tasks.

3. The method according to claim 2, characterized in that The performance test information includes an interrupt trigger parameter, and the performance test result is calculated based on the performance test information and the start time and stop time corresponding to the concurrent performance test, including: Determine each flash memory channel corresponding to the target channel; If the interrupt trigger parameter is the test duration threshold, perform the following operations: When the read and write time of each flash memory channel is greater than or equal to the test time threshold, calculating the amount of read and write data of each flash memory channel within the read and write time; Calculating a performance test result based on the read and write data volume and the read and write time of each flash memory channel; If the interrupt trigger parameter is the test data volume, perform the following operations: Calculate the read and write times threshold value according to the test data volume and the single read and write data volume; When the number of read and write times of each flash memory channel is greater than or equal to the read and write times threshold, calculating a performance test result according to the read and write times and the read and write time of each flash memory channel; The read and write time of each flash memory channel is the difference between the start time and the stop time of the performance test of each flash memory channel.

4. The method according to claim 1, characterized in that The method further comprises: Receive basic test tasks sent by the test host computer, wherein the basic test tasks include bad block test tasks and aging test tasks; The solid state drive is tested according to the basic test task, and the test result corresponding to the basic test task is returned to the test host computer.

5. A solid state drive performance testing method, characterized in that: The method is applied to a test host computer, the test host computer communicates with a test slave computer in the solid state drive through a test serial port in the solid state drive, and the test slave computer is deployed in the solid state drive. The method includes: Calling the test serial port of the solid state drive according to preset serial port parameters; Sending performance test information including the number of concurrent channels and target test position information to the solid-state hard disk through the test serial port; so that the test slave computer in the solid-state hard disk performs concurrent performance tests on the positions indicated by the target test position information in the solid-state hard disk based on the number of concurrent channels through the flash memory interface of the solid-state hard disk, and calculates the performance test results according to the performance test information and the start time and stop time corresponding to the concurrent performance test; Obtaining performance test results from the test slave computer via the test serial port; Calculate the difference between the performance test result and the theoretical performance data, and display the difference to the user; wherein the theoretical performance data is calculated based on the initial parameters of the flash memory chip in the solid-state drive and the hardware parameters of the solid-state drive.

6. The method according to claim 5, characterized in that The method further comprises: Generate a basic test task according to the type of the solid state drive, wherein the basic test task includes a bad block test task and an aging test task; Sending the basic test task to the test slave computer so that the test slave computer performs the basic test task; The test result corresponding to the basic test task is obtained from the test slave computer, and the test result corresponding to the basic test task is output.

7. The method according to claim 6, characterized in that The obtaining the test result corresponding to the basic test task from the test slave computer and outputting the test result corresponding to the basic test task includes: When the basic test task is a bad-storage drive test task, all bad-storage drive marks in the solid-state drive are obtained from the test slave computer; A bad block table is generated according to all the bad block marks, and the bad block table is output as a test result.

8. A solid state hard disk performance testing device, characterized in that: Applied to a test lower computer, the test lower computer is deployed in a solid state hard disk, the test lower computer communicates with a test upper computer through a test serial port in the solid state hard disk, and the device includes: An information acquisition module, used to obtain performance test information from the test host computer through the test serial port in the solid state drive; A location determination module, used to parse the performance test information to obtain the number of concurrent channels and target test location information; A performance testing module, configured to perform concurrent performance testing on the location indicated by the target test location information in the solid-state hard disk based on the number of concurrent channels through a flash memory interface in the solid-state hard disk; A result calculation module, used to calculate the performance test result according to the performance test information and the start time and stop time corresponding to the concurrent performance test; The result returning module is used to return the performance test result to the test host computer through the test serial port in the solid state drive.

9. A solid state hard disk performance testing device, characterized in that: Applied to a test host computer, the test host computer communicates with a test slave computer in the solid state drive through a test serial port in the solid state drive, the test slave computer is deployed in the solid state drive, and the device includes: A serial port calling module, used to call the test serial port of the solid state drive according to preset serial port parameters; An information sending module, used for sending performance test information including the number of concurrent channels and target test position information to the solid-state hard disk through the test serial port; so that the test slave computer in the solid-state hard disk performs a concurrent performance test on the position indicated by the target test position information in the solid-state hard disk based on the number of concurrent channels through the flash memory interface of the solid-state hard disk, and calculates the performance test result according to the performance test information and the start time and stop time corresponding to the concurrent performance test; A result acquisition module, used for acquiring the performance test result from the test slave computer through the test serial port; A result display module is used to calculate the difference between the performance test result and the theoretical performance data, and display the difference to the user; wherein the theoretical performance data is calculated based on the initial parameters of the flash memory chip in the solid-state drive and the hardware parameters of the solid-state drive.

10. An electronic device, characterized in that: It includes 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, it implements the solid state drive performance testing method as described in any one of claims 1 to 4 and 5 to 7.

11. 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 solid-state hard disk performance testing method according to any one of claims 1 to 4 and 5 to 7 is implemented.

Citation Information

Cited By

  • Testing method and device for testing performance of solid state disk, storage medium and electronic equipment

    CN119446235A

  • Multi-channel parallel test method and system for solid state disk, medium and product

    CN119479763A

  • A multi-channel parallel testing method, system, medium and product for solid-state hard drives

    CN119479763B