CN113821389A - Method, device and equipment for testing performance of solid state disk and readable storage medium - Google Patents

Method, device and equipment for testing performance of solid state disk and readable storage medium Download PDF

Info

Publication number
CN113821389A
CN113821389A CN202110962781.2A CN202110962781A CN113821389A CN 113821389 A CN113821389 A CN 113821389A CN 202110962781 A CN202110962781 A CN 202110962781A CN 113821389 A CN113821389 A CN 113821389A
Authority
CN
China
Prior art keywords
test
solid state
state disk
testing
performance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110962781.2A
Other languages
Chinese (zh)
Inventor
张发壮
弗兰克·陈
黄容
熊小明
沈丽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Exascend Technology Wuhan Co ltd
Original Assignee
Exascend Technology Wuhan Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Exascend Technology Wuhan Co ltd filed Critical Exascend Technology Wuhan Co ltd
Priority to CN202110962781.2A priority Critical patent/CN113821389A/en
Publication of CN113821389A publication Critical patent/CN113821389A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2268Logging of test results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a method, a device and equipment for testing the performance of a solid state disk and a readable storage medium, wherein the method comprises the following steps: starting a plurality of test machines; the method comprises the steps of obtaining a test sequence of a plurality of performance test tools contained in each test machine, testing the solid state disk according to the test sequence, and obtaining a first test log and a first test result; if the first test log is incomplete, judging whether to continue testing the solid state disk; if the first test log is complete, initializing the solid state disk, and then continuing to test the solid state disk to obtain a second test log and a second test result; and by analogy, counting the test result of the solid state disk. According to the invention, the plurality of testing machines are started to test the solid state disk connected with the plurality of testing machines, and the testing results are counted, so that the problems of time and labor consumption, low testing efficiency and easy error in counting the testing results when the performance of the solid state disk is tested are solved.

Description

Method, device and equipment for testing performance of solid state disk and readable storage medium
Technical Field
The invention relates to the field of computers, in particular to a method, a device and equipment for testing the performance of a solid state disk and a readable storage medium.
Background
With the continuous increase of data storage capacity, the continuous increase of storage scale and the continuous increase of performance requirements of the internet of things, big data and cloud storage, the performance of storage products is more and more concerned. In the existing performance test of the solid state disk, performance test tools which are standard in some industries perform performance evaluation of corresponding storage products, and performance test tools which are self-developed by various storage suppliers and terminal customers perform performance evaluation of corresponding storage products.
However, most of the performance tests and result statistics of the solid state disks are manually performed, each testing machine is connected to one solid state disk, and when the performance of a plurality of solid state disks needs to be tested, one testing machine can be used for sequentially testing a plurality of storage products or a plurality of testing machines can be used for testing a plurality of solid state disks.
If a plurality of solid state drives are tested in sequence through one testing machine, a large amount of time is consumed, and the testing efficiency is low. If a plurality of solid state drives are tested by a plurality of testing machines, the testing machines need to be monitored by increasing manpower, a large amount of labor force is needed, and the statistics of the testing results is easy to careless.
Disclosure of Invention
The invention mainly aims to provide a method, a device and equipment for testing the performance of a solid state disk and a readable storage medium, and aims to solve the problems that time and labor are consumed, the testing efficiency is low, and the statistics of the testing result is easy to make mistakes when the performance of the solid state disk is tested.
In a first aspect, the present invention provides a method for testing performance of a solid state disk, including the following steps:
starting a plurality of testing machines, wherein each testing machine is connected with one solid state disk;
the method comprises the steps of obtaining a test sequence of a plurality of performance test tools contained in each test machine, controlling a first performance test tool arranged in the first test machine to test the solid state disk according to the test sequence, and obtaining a first test log and a first test result;
detecting whether the first test log is complete;
if the first test log is incomplete, whether a second performance test tool arranged in the second is controlled to continue testing the solid state disk is judged according to the limiting condition of the first performance test tool;
if the first test log is complete, initializing the solid state disk, and controlling a second performance test tool arranged on a second to continue testing the solid state disk to obtain a second test log and a second test result;
and by analogy, counting the test results of the performance test tools contained in each test machine on the solid state disk.
Optionally, the step of controlling the first performance testing tool arranged in the first row to test the solid state disk includes:
acquiring test parameters of a first performance test tool arranged in the first row, and testing the solid state disk according to the test parameters of the first performance test tool, wherein the test parameters comprise: time of test, range of test, queue depth of test, transfer size of test, and number of cycles of test.
Optionally, the step of controlling a first performance testing tool arranged in the first row to test the solid state disk, and acquiring a first test log includes:
the method comprises the steps of obtaining the maximum retesting times N of a first performance testing tool, controlling the first performance testing tool arranged in the first performance testing tool to test the solid state disk, obtaining a testing log, and controlling the first performance testing tool to test the solid state disk again if the testing log is incomplete;
if the test log is still incomplete when the first performance test tool tests the solid state disk for the Nth time again, taking the test log obtained by testing the solid state disk for the Nth time as the first test log;
if the test log is complete when the first performance test tool performs the mth test on the solid state disk again, the test log obtained by performing the mth test on the solid state disk is used as the first test log, wherein N and M are positive integers, and M is smaller than N.
Optionally, the step of determining whether to control a second performance testing tool ranked at the second to continue testing the solid state disk according to the limit condition of the first performance testing tool includes:
if the limiting condition of the first performance testing tool is that the subsequent testing is suspended, the second performance testing tool arranged on the second is not controlled to continue testing the solid state disk;
and if the limiting condition of the first performance testing tool is to continue the subsequent testing, controlling a second performance testing tool ranked at the second to continue testing the solid state disk.
Optionally, if the first test log is complete, the step of initializing the solid state disk includes:
if the first test log is complete, judging whether the absolute value of the difference value between the first test result and the database reference information is greater than a preset value;
if the current value is greater than the preset value, controlling the first performance testing tool to test the solid state disk again, and initializing the solid state disk;
and if the current value is not greater than the preset value, initializing the solid state disk.
Optionally, if the value is greater than the preset value, the step of controlling the first performance testing tool to test the solid state disk again includes:
acquiring the maximum retest frequency N of the first performance testing tool, and if the first testing result is greater than a preset value, controlling the first performance testing tool to retest the solid state disk;
if the first performance testing tool tests the solid state disk again for the Nth time and the first testing result is still larger than the preset value, taking the testing result obtained by testing the solid state disk for the Nth time as the first testing result, and controlling a second performance testing tool arranged on the second after initializing the solid state disk to continue testing the solid state disk;
and if the test result is not greater than the preset value when the first performance testing tool conducts the M-th test on the solid state disk again, taking the test result obtained by testing the solid state disk for the M-th time as the first test result, and controlling a second performance testing tool arranged on a second after the solid state disk is initialized to continue testing the solid state disk, wherein N and M are positive integers, and M is smaller than N.
Optionally, after the step of controlling the second performance testing tool to continue testing the solid state disk and obtaining the second test log and the second test result, the method further includes:
detecting whether the second test log is complete;
if the second test log is incomplete, whether a third performance test tool arranged in the third row is controlled to continue testing the solid state disk is judged according to the limiting conditions of the second performance test tool;
and if the second test log is complete, initializing the solid state disk, and controlling a third performance test tool arranged in the third to continuously test the solid state disk to obtain a third test log and a third test result.
In a second aspect, the present invention further provides a performance testing apparatus for a solid state disk, where the performance testing apparatus for a solid state disk includes:
a starting module: the system comprises a plurality of testing machines, a solid state disk and a controller, wherein each testing machine is connected with one solid state disk;
a first control module: the system comprises a plurality of testing machines, a first performance testing tool and a second performance testing tool, wherein the testing machines are used for acquiring the testing sequence of the plurality of performance testing tools contained in each testing machine, and controlling the first performance testing tool arranged in the first testing machine to test the solid state disk according to the testing sequence to acquire a first testing log and a first testing result;
a detection module: the first test log is used for detecting whether the first test log is complete or not;
a judging module: the method comprises the steps of judging whether to control a second performance testing tool arranged in a second to continue testing the solid state disk according to the limiting condition of a first performance testing tool if a first testing log is incomplete;
a second control module: the solid state disk test system is used for initializing the solid state disk if the first test log is complete, controlling a second performance test tool arranged on a second to continue testing the solid state disk, and obtaining a second test log and a second test result;
a statistic module: and counting the test results of the plurality of performance test tools contained in each test machine on the solid state disk by the same method.
In a third aspect, the present invention further provides a performance testing apparatus for a solid state disk, where the performance testing apparatus for a solid state disk includes a processor, a memory, and a performance testing program of a solid state disk, which is stored on the memory and can be executed by the processor, where when the performance testing program of the solid state disk is executed by the processor, the steps of the performance testing method for a solid state disk described above are implemented.
In a fourth aspect, the present invention further provides a readable storage medium, where a performance test program of a solid state disk is stored on the readable storage medium, where the performance test program of the solid state disk, when executed by a processor, implements the steps of the performance test method of the solid state disk described above.
In the invention, a plurality of test machines are started, wherein each test machine is connected with a solid state disk; the method comprises the steps of obtaining a test sequence of a plurality of performance test tools contained in each test machine, controlling a first performance test tool arranged in the first test machine to test the solid state disk according to the test sequence, and obtaining a first test log and a first test result; detecting whether the first test log is complete; if the first test log is incomplete, whether a second performance test tool arranged in the second is controlled to continue testing the solid state disk is judged according to the limiting condition of the first performance test tool; if the first test log is complete, initializing the solid state disk, and controlling a second performance test tool arranged on a second to continue testing the solid state disk to obtain a second test log and a second test result; and by analogy, counting the test results of the performance test tools contained in each test machine on the solid state disk. According to the invention, the plurality of testing machines are started to test the solid state disk connected with the plurality of testing machines, and the testing results are counted, so that the problems of time and labor consumption, low testing efficiency and easy error in counting the testing results when the performance of the solid state disk is tested are solved.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a performance testing apparatus for a solid state disk according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a performance testing method of a solid state disk according to a first embodiment of the present invention;
fig. 3 is a functional block diagram of a performance testing apparatus of a solid state disk according to a first embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In a first aspect, an embodiment of the present invention provides a performance testing apparatus for a solid state disk.
Referring to fig. 1, fig. 1 is a schematic diagram of a hardware structure of a performance testing apparatus for a solid state disk according to an embodiment of the present invention. In this embodiment of the present invention, the performance testing apparatus of the solid state disk may include a processor 1001 (for example, a Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used for realizing connection communication among the components; the user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard); the network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WI-FI interface, WI-FI interface); the memory 1005 may be a Random Access Memory (RAM) or a non-volatile memory (non-volatile memory), such as a magnetic disk memory, and the memory 1005 may optionally be a storage device independent of the processor 1001. Those skilled in the art will appreciate that the hardware configuration depicted in FIG. 1 is not intended to be limiting of the present invention, and may include more or less components than those shown, or some components in combination, or a different arrangement of components.
With continued reference to fig. 1, a memory 1005 of fig. 1, which is one type of computer storage medium, may include therein a performance test program for an operating system, a network communication module, a user interface module, and a solid state disk. The processor 1001 may call a performance test program of the solid state disk stored in the memory 1005, and execute the performance test method of the solid state disk provided by the embodiment of the present invention.
In a second aspect, an embodiment of the present invention provides a method for testing performance of a solid state disk.
In an embodiment, referring to fig. 2, fig. 2 is a schematic flowchart of a performance testing method of a solid state disk according to a first embodiment of the present invention. As shown in fig. 2, the method for testing the performance of the solid state disk includes the following steps:
s10: starting a plurality of testing machines, wherein each testing machine is connected with one solid state disk;
in this embodiment, identifiers of multiple testing machines are obtained, and the testing machine corresponding to each identifier is started, where the identifier includes a name, a serial number, or a model of the testing machine. Each testing machine is connected with one solid state disk, namely, each testing machine is started, and one solid state disk can be tested.
S20: the method comprises the steps of obtaining a test sequence of a plurality of performance test tools contained in each test machine, controlling a first performance test tool arranged in the first test machine to test the solid state disk according to the test sequence, and obtaining a first test log and a first test result;
in this embodiment, each tester includes a plurality of performance testing tools, and the performance of the solid state disk in multiple aspects can be tested by using the plurality of performance testing tools. The method comprises the steps of obtaining a test sequence of a plurality of performance test tools contained in each test machine, starting a first performance test tool arranged in the first performance test tool, obtaining test parameters when the first performance test tool tests the solid state disk, initializing the solid state disk to reduce test errors, controlling the first performance test tool to test the solid state disk, and obtaining a first test log and a first test result after the test is finished. And when the keyword is detected to appear, the test is finished. Wherein, the keyword includes: ERROR, FAIL, PASS or Success.
Further, in an embodiment, the step of controlling the first performance testing tool arranged in the first row to test the solid state disk includes:
acquiring test parameters of a first performance test tool arranged in the first row, and testing the solid state disk according to the test parameters of the first performance test tool, wherein the test parameters comprise: time of test, range of test, queue depth of test, transfer size of test, and number of cycles of test.
In this embodiment, if the first performance testing tool is a crystalidickmark, the testing parameters of the first performance testing tool when the crystalidickmark tests the solid state disk are obtained. Initializing the solid state disk, controlling a first performance testing tool CrystaIDiskMark to test the solid state disk according to test parameters, and selecting and controlling the test parameters through a Python automation function in the test process. Wherein the test parameters include: time of test, range of test, queue depth of test, transfer size of test, and number of cycles of test. It is contemplated that the first test tool and the manner in which test parameters are selected and controlled in the present embodiment are herein incorporated by reference, and not by way of limitation.
Further, in an embodiment, the step of controlling a first performance testing tool arranged in a first row to test the solid state disk, and acquiring a first test log includes:
the method comprises the steps of obtaining the maximum retesting times N of a first performance testing tool, controlling the first performance testing tool arranged in the first performance testing tool to test the solid state disk, obtaining a testing log, and controlling the first performance testing tool to test the solid state disk again if the testing log is incomplete;
if the test log is still incomplete when the first performance test tool tests the solid state disk for the Nth time again, taking the test log obtained by testing the solid state disk for the Nth time as the first test log;
if the test log is complete when the first performance test tool performs the mth test on the solid state disk again, the test log obtained by performing the mth test on the solid state disk is used as the first test log, wherein N and M are positive integers, and M is smaller than N.
In this embodiment, the maximum retest time N of the first performance testing tool is obtained, and if the maximum retest time of the first performance testing tool is 5 times, when the first performance testing tool is controlled to retest the solid state disk, if a test log obtained by retesting for the 1 st time is complete, the test log obtained by retesting for the 1 st time is used as the first test log, and retesting for the solid state disk is not performed any more; and if the test log obtained by the 1 st retest is incomplete, performing the 2 nd retest. If the test log obtained by the 2 nd retesting is complete, taking the test log obtained by the 2 nd retesting as the first test log, and not retesting the solid state disk; and if the test log obtained by the 2 nd retest is incomplete, performing the 3 rd retest. By analogy, if the test log obtained by the 5 th retest is complete when the 5 th retest is performed, the test log obtained by the 5 th retest is taken as the first test log, and the solid state disk is not retested any more; if the test log obtained by the 5 th test is still incomplete, taking the test log obtained by the 5 th test as the first test log, and not testing the solid state disk again. It is easy to think that, in this embodiment, the maximum retest number of the first performance testing tool is only used as a reference, and is not limited herein.
S30: detecting whether the first test log is complete;
in this embodiment, a log file is generated in the process of testing the solid state disk by the performance testing tool, and if an error occurs in the testing process, the obtained log is incomplete; and if no error occurs in the test process, the obtained test log is complete.
S40: if the first test log is incomplete, whether a second performance test tool arranged in the second is controlled to continue testing the solid state disk is judged according to the limiting condition of the first performance test tool;
in this embodiment, as described in step S20, when the test log is incomplete, the first performance testing tool needs to be controlled to perform the test on the solid state disk again, and if the maximum retest time of the first performance testing tool is 5 times and the test log obtained by performing the test again for the 5 th time is still incomplete, the test log obtained by performing the test again for the 5 th time is used as the first test log. And then determining the limiting condition of the first performance testing tool, and if the limiting condition of the first performance testing tool is that the subsequent test is suspended, not controlling a second performance testing tool arranged on the second to continue testing the solid state disk. And if the limiting condition of the first performance testing tool is to continue the subsequent testing, controlling a second performance testing tool ranked at the second to continue testing the solid state disk.
Further, in an embodiment, the step of determining whether to control a second performance testing tool ranked at the second to continue testing the solid state disk according to the limit condition of the first performance testing tool includes:
if the limiting condition of the first performance testing tool is that the subsequent testing is suspended, the second performance testing tool arranged on the second is not controlled to continue testing the solid state disk;
and if the limiting condition of the first performance testing tool is to continue the subsequent testing, controlling a second performance testing tool ranked at the second to continue testing the solid state disk.
In this embodiment, if the limiting condition of the first performance testing tool is that the subsequent test is suspended, the second performance testing tool arranged in the second row is not controlled to continue testing the solid state disk. And ending the performance test of the solid state disk by the tester where the first performance testing tool is located, and acquiring a test report generated according to a first test result obtained by testing the solid state disk by the first performance testing tool.
If the limiting condition of the first performance testing tool is to continue the subsequent testing, the second performance testing tool arranged at the second stage is controlled to continue testing the solid state disk, and the solid state disk is initialized before the second performance testing tool continues testing the solid state disk, so that errors are reduced.
S50: if the first test log is complete, initializing the solid state disk, and controlling a second performance test tool arranged on a second to continue testing the solid state disk to obtain a second test log and a second test result;
in this embodiment, if the obtained first test log is complete, it indicates that the first performance test tool has no error in the test process. At this time, after the solid state disk is initialized, the test parameters of the second performance testing tool arranged in the second stage when the solid state disk is tested are obtained, the second performance testing tool is controlled to continue testing the solid state disk according to the test parameters of the second performance testing tool when the solid state disk is tested, and after the test is finished, a second test log and a second test result are obtained.
Further, in an embodiment, if the first test log is complete, the step of initializing the solid state disk includes:
s501: if the first test log is complete, judging whether the absolute value of the difference value between the first test result and the database reference information is greater than a preset value;
in this embodiment, if the first test log is complete, the database reference information is 85, and the preset value is 5, and when the first test result is 80, the absolute value of the difference between the first test result and the database reference information is not greater than the preset value; when the first test result is 76, the absolute value of the difference between the first test result and the database reference information is greater than the preset value. It is to be understood that the parameters in the present embodiment are only for reference and are not limited thereto.
S502: if the current value is greater than the preset value, controlling the first performance testing tool to test the solid state disk again, and initializing the solid state disk;
in this embodiment, if the absolute value of the difference between the first test result and the database reference information is greater than the preset value, the maximum retest times of the first performance test tool is obtained, and the first performance test tool is controlled to retest the solid state disk. If the maximum retest times of the first performance testing tool is 5 times and the absolute value of the difference value between the first testing result and the database reference information is still larger than the preset value during the 5 th retest, taking the testing result of the 5 th retest as the first testing result, and initializing the solid state disk.
Further, in an embodiment, if the value is greater than the preset value, the step of controlling the first performance testing tool to retest the solid state disk includes:
acquiring the maximum retest frequency N of the first performance testing tool, and if the first testing result is greater than a preset value, controlling the first performance testing tool to retest the solid state disk;
if the first performance testing tool tests the solid state disk again for the Nth time and the first testing result is still larger than the preset value, taking the testing result obtained by testing the solid state disk for the Nth time as the first testing result, and controlling a second performance testing tool arranged on the second after initializing the solid state disk to continue testing the solid state disk;
and if the test result is not greater than the preset value when the first performance testing tool conducts the M-th test on the solid state disk again, taking the test result obtained by testing the solid state disk for the M-th time as the first test result, and controlling a second performance testing tool arranged on a second after the solid state disk is initialized to continue testing the solid state disk, wherein N and M are positive integers, and M is smaller than N.
In this embodiment, the maximum retest time N of the first performance testing tool is obtained, if the maximum retest time of the first performance testing tool is 5, and if the first performance testing tool tests the solid state disk again for the 1 st time, the first test result is not greater than the preset value, and the test result obtained when the solid state disk is tested again for the 1 st time is taken as the first test result. And if the first performance testing tool tests the solid state disk again for the 1 st time and the first testing result is greater than the preset value, testing the solid state disk again for the 2 nd time. By analogy, if the first test result is still larger than the preset value when the first performance test tool tests the solid state disk again at the 5 th time, the test result obtained when the solid state disk is tested again at the 5 th time is used as the first test result.
S503: and if the current value is not greater than the preset value, initializing the solid state disk.
In this embodiment, if the absolute value of the difference between the first test result and the database reference information is not greater than the preset value, the performance test of the solid state disk by the first performance test tool is finished. And initializing the solid state disk to reduce the subsequent test error, and starting a second performance test tool ranked secondly.
S60: and by analogy, counting the test results of the performance test tools contained in each test machine on the solid state disk.
In this embodiment, all test results obtained when a plurality of performance test tools included in each test machine test the solid state disk are counted, and the database is updated according to the test results to generate a corresponding test report. Further, parameters of the solid state disk are obtained, and a required performance test result of the solid state disk is determined from performance test results of the plurality of solid state disks according to the parameters of the solid state disk. The performance parameters of the solid state disk comprise the model, the label and the capacity information of the solid state disk.
In the embodiment, a plurality of test machines are started, wherein each test machine is connected with one solid state disk; the method comprises the steps of obtaining a test sequence of a plurality of performance test tools contained in each test machine, controlling a first performance test tool arranged in the first test machine to test the solid state disk according to the test sequence, and obtaining a first test log and a first test result; detecting whether the first test log is complete; if the first test log is incomplete, whether a second performance test tool arranged in the second is controlled to continue testing the solid state disk is judged according to the limiting condition of the first performance test tool; if the first test log is complete, initializing the solid state disk, and controlling a second performance test tool arranged on a second to continue testing the solid state disk to obtain a second test log and a second test result; and by analogy, counting the test results of the performance test tools contained in each test machine on the solid state disk. According to the embodiment, the plurality of testing machines are started to test the solid state disk connected with the plurality of testing machines, and the testing results are counted, so that the problems that time and labor are consumed, the testing efficiency is low, and the counting of the testing results is prone to errors when the performance of the solid state disk is tested are solved.
Further, in an embodiment, after the step of controlling a second performance testing tool arranged in the second row to continue testing the solid state disk and acquiring a second test log and a second test result, the method further includes:
detecting whether the second test log is complete;
if the second test log is incomplete, whether a third performance test tool arranged in the third row is controlled to continue testing the solid state disk is judged according to the limiting conditions of the second performance test tool;
and if the second test log is complete, initializing the solid state disk, and controlling a third performance test tool arranged in the third to continuously test the solid state disk to obtain a third test log and a third test result.
In this embodiment, after the second test log and the second test result are obtained, the second test log is detected, if the second test log is incomplete, the second performance testing tool needs to be controlled to test the solid state disk again, and if the maximum retest time of the second performance testing tool is 5 times and the test log obtained by retesting for the 5 th time is still incomplete, the test log obtained by retesting for the 5 th time is used as the second test log. And then determining the limiting condition of the second performance testing tool, and if the limiting condition of the second performance testing tool is that the subsequent test is suspended, not controlling a third performance testing tool arranged in the third stage to continue testing the solid state disk. And if the limiting condition of the second performance testing tool is to continue the subsequent testing, controlling a third performance testing tool arranged in the third stage to continue testing the solid state disk.
And if the obtained second test log is complete, the second performance test tool has no error in the test process. At this time, after the solid state disk is initialized, the test parameters of the third performance testing tool arranged in the third row when the solid state disk is tested by the third performance testing tool are obtained, the third performance testing tool is controlled to continue testing the solid state disk according to the test parameters of the third performance testing tool when the solid state disk is tested by the third performance testing tool, and after the test is finished, a third test log and a third test result are obtained.
In a third aspect, an embodiment of the present invention further provides a performance testing apparatus for a solid state disk.
In an embodiment, referring to fig. 3, fig. 3 is a functional module schematic diagram of a performance testing apparatus of a solid state disk according to a first embodiment of the present invention. As shown in fig. 3, the performance testing apparatus for a solid state disk includes:
the starting module 10: the system comprises a plurality of testing machines, a solid state disk and a controller, wherein each testing machine is connected with one solid state disk;
the first control module 20: the system comprises a plurality of testing machines, a first performance testing tool and a second performance testing tool, wherein the testing machines are used for acquiring the testing sequence of the plurality of performance testing tools contained in each testing machine, and controlling the first performance testing tool arranged in the first testing machine to test the solid state disk according to the testing sequence to acquire a first testing log and a first testing result;
the detection module 30: the first test log is used for detecting whether the first test log is complete or not;
the judging module 40: the method comprises the steps of judging whether to control a second performance testing tool arranged in a second to continue testing the solid state disk according to the limiting condition of a first performance testing tool if a first testing log is incomplete;
the second control module 50: the solid state disk test system is used for initializing the solid state disk if the first test log is complete, controlling a second performance test tool arranged on a second to continue testing the solid state disk, and obtaining a second test log and a second test result;
the statistical module 60: and counting the test results of the plurality of performance test tools contained in each test machine on the solid state disk by the same method.
Further, in an embodiment, the first control module 20 is configured to:
acquiring test parameters of a first performance test tool arranged in the first row, and testing the solid state disk according to the test parameters of the first performance test tool, wherein the test parameters comprise: time of test, range of test, queue depth of test, transfer size of test, and number of cycles of test.
Further, in an embodiment, the first control module 20 is further configured to:
the method comprises the steps of obtaining the maximum retesting times N of a first performance testing tool, controlling the first performance testing tool arranged in the first performance testing tool to test the solid state disk, obtaining a testing log, and controlling the first performance testing tool to test the solid state disk again if the testing log is incomplete;
if the test log is still incomplete when the first performance test tool tests the solid state disk for the Nth time again, taking the test log obtained by testing the solid state disk for the Nth time as the first test log;
if the test log is complete when the first performance test tool performs the mth test on the solid state disk again, the test log obtained by performing the mth test on the solid state disk is used as the first test log, wherein N and M are positive integers, and M is smaller than N.
Further, in an embodiment, the determining module 40 is configured to:
if the limiting condition of the first performance testing tool is that the subsequent testing is suspended, the second performance testing tool arranged on the second is not controlled to continue testing the solid state disk;
and if the limiting condition of the first performance testing tool is to continue the subsequent testing, controlling a second performance testing tool ranked at the second to continue testing the solid state disk.
Further, in an embodiment, the second control module 50 is configured to:
if the first test log is complete, judging whether the absolute value of the difference value between the first test result and the database reference information is greater than a preset value;
if the current value is greater than the preset value, controlling the first performance testing tool to test the solid state disk again, and initializing the solid state disk;
and if the current value is not greater than the preset value, initializing the solid state disk.
Further, in an embodiment, the second control module 50 is further configured to:
acquiring the maximum retest frequency N of the first performance testing tool, and if the first testing result is greater than a preset value, controlling the first performance testing tool to retest the solid state disk;
if the first performance testing tool tests the solid state disk again for the Nth time and the first testing result is still larger than the preset value, taking the testing result obtained by testing the solid state disk for the Nth time as the first testing result, and controlling a second performance testing tool arranged on the second after initializing the solid state disk to continue testing the solid state disk;
and if the test result is not greater than the preset value when the first performance testing tool conducts the M-th test on the solid state disk again, taking the test result obtained by testing the solid state disk for the M-th time as the first test result, and controlling a second performance testing tool arranged on a second after the solid state disk is initialized to continue testing the solid state disk, wherein N and M are positive integers, and M is smaller than N.
Further, in an embodiment, the performance testing apparatus of a solid state disk further includes a third control module, configured to:
detecting whether the second test log is complete;
if the second test log is incomplete, whether a third performance test tool arranged in the third row is controlled to continue testing the solid state disk is judged according to the limiting conditions of the second performance test tool;
if the second test log is complete, initializing the solid state disk, and controlling a third performance test tool arranged in the third to continue testing the solid state disk to obtain a third test log and a third test result;
the function implementation of each module in the performance testing apparatus for a solid state disk corresponds to each step in the performance testing method embodiment for a solid state disk, and the function and implementation process are not described in detail here.
In a fourth aspect, the embodiment of the present invention further provides a readable storage medium.
The readable storage medium of the present invention stores a performance test program of the solid state disk, wherein when the performance test program of the solid state disk is executed by the processor, the steps of the performance test method of the solid state disk are implemented.
The method for implementing the performance test program of the solid state disk when executed may refer to each embodiment of the performance test method of the solid state disk of the present invention, and details thereof are not repeated herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for causing a terminal device to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A performance test method of a solid state disk is characterized by comprising the following steps:
starting a plurality of testing machines, wherein each testing machine is connected with one solid state disk;
the method comprises the steps of obtaining a test sequence of a plurality of performance test tools contained in each test machine, controlling a first performance test tool arranged in the first test machine to test the solid state disk according to the test sequence, and obtaining a first test log and a first test result;
detecting whether the first test log is complete;
if the first test log is incomplete, whether a second performance test tool arranged in the second is controlled to continue testing the solid state disk is judged according to the limiting condition of the first performance test tool;
if the first test log is complete, initializing the solid state disk, and controlling a second performance test tool arranged on a second to continue testing the solid state disk to obtain a second test log and a second test result;
and by analogy, counting the test results of the performance test tools contained in each test machine on the solid state disk.
2. The method for testing the performance of the solid state disk according to claim 1, wherein the step of controlling the first performance testing tool arranged in the first row to test the solid state disk comprises the steps of:
acquiring test parameters of a first performance test tool arranged in the first row, and testing the solid state disk according to the test parameters of the first performance test tool, wherein the test parameters comprise: time of test, range of test, queue depth of test, transfer size of test, and number of cycles of test.
3. The method for testing the performance of the solid state disk according to claim 1, wherein the step of controlling a first performance testing tool arranged in a first row to test the solid state disk, and the step of obtaining a first test log comprises:
the method comprises the steps of obtaining the maximum retesting times N of a first performance testing tool, controlling the first performance testing tool arranged in the first performance testing tool to test the solid state disk, obtaining a testing log, and controlling the first performance testing tool to test the solid state disk again if the testing log is incomplete;
if the test log is still incomplete when the first performance test tool tests the solid state disk for the Nth time again, taking the test log obtained by testing the solid state disk for the Nth time as the first test log;
if the test log is complete when the first performance test tool performs the mth test on the solid state disk again, the test log obtained by performing the mth test on the solid state disk is used as the first test log, wherein N and M are positive integers, and M is smaller than N.
4. The method for testing the performance of the solid state disk according to claim 1, wherein the step of determining whether to control a second performance testing tool arranged in a second row to continue testing the solid state disk according to the limit condition of the first performance testing tool comprises:
if the limiting condition of the first performance testing tool is that the subsequent testing is suspended, the second performance testing tool arranged on the second is not controlled to continue testing the solid state disk;
and if the limiting condition of the first performance testing tool is to continue the subsequent testing, controlling a second performance testing tool ranked at the second to continue testing the solid state disk.
5. The method for testing the performance of the solid state disk according to claim 1, wherein if the first test log is complete, the step of initializing the solid state disk comprises:
if the first test log is complete, judging whether the absolute value of the difference value between the first test result and the database reference information is greater than a preset value;
if the current value is greater than the preset value, controlling the first performance testing tool to test the solid state disk again, and initializing the solid state disk;
and if the current value is not greater than the preset value, initializing the solid state disk.
6. The method for testing the performance of the solid state disk according to claim 5, wherein if the performance is greater than the preset value, the step of controlling the first performance testing tool to retest the solid state disk comprises:
acquiring the maximum retest frequency N of the first performance testing tool, and if the first testing result is greater than a preset value, controlling the first performance testing tool to retest the solid state disk;
if the first performance testing tool tests the solid state disk again for the Nth time and the first testing result is still larger than the preset value, taking the testing result obtained by testing the solid state disk for the Nth time as the first testing result, and controlling a second performance testing tool arranged on the second after initializing the solid state disk to continue testing the solid state disk;
and if the test result is not greater than the preset value when the first performance testing tool conducts the M-th test on the solid state disk again, taking the test result obtained by testing the solid state disk for the M-th time as the first test result, and controlling a second performance testing tool arranged on a second after the solid state disk is initialized to continue testing the solid state disk, wherein N and M are positive integers, and M is smaller than N.
7. The method for testing performance of a solid state disk according to claim 1, wherein the re-control unit, after the step of continuing to test the solid state disk by using a second performance testing tool and obtaining a second test log and a second test result, further comprises:
detecting whether the second test log is complete;
if the second test log is incomplete, whether a third performance test tool arranged in the third row is controlled to continue testing the solid state disk is judged according to the limiting conditions of the second performance test tool;
and if the second test log is complete, initializing the solid state disk, and controlling a third performance test tool arranged in the third to continuously test the solid state disk to obtain a third test log and a third test result.
8. The performance testing device of the solid state disk is characterized by comprising:
a starting module: the system comprises a plurality of testing machines, a solid state disk and a controller, wherein each testing machine is connected with one solid state disk;
a first control module: the system comprises a plurality of testing machines, a first performance testing tool and a second performance testing tool, wherein the testing machines are used for acquiring the testing sequence of the plurality of performance testing tools contained in each testing machine, and controlling the first performance testing tool arranged in the first testing machine to test the solid state disk according to the testing sequence to acquire a first testing log and a first testing result;
a detection module: the first test log is used for detecting whether the first test log is complete or not;
a judging module: the method comprises the steps of judging whether to control a second performance testing tool arranged in a second to continue testing the solid state disk according to the limiting condition of a first performance testing tool if a first testing log is incomplete;
a second control module: the solid state disk test system is used for initializing the solid state disk if the first test log is complete, controlling a second performance test tool arranged on a second to continue testing the solid state disk, and obtaining a second test log and a second test result;
a statistic module: and counting the test results of the plurality of performance test tools contained in each test machine on the solid state disk by the same method.
9. A performance testing apparatus of a solid state disk, the performance testing apparatus of the solid state disk comprising a processor, a memory, and a performance testing program of the solid state disk stored on the memory and executable by the processor, wherein the performance testing program of the solid state disk, when executed by the processor, implements the steps of the performance testing method of the solid state disk according to any one of claims 1 to 7.
10. A readable storage medium, on which a performance test program of a solid state disk is stored, wherein the performance test program of the solid state disk, when executed by a processor, implements the steps of the performance test method of the solid state disk according to any one of claims 1 to 7.
CN202110962781.2A 2021-08-20 2021-08-20 Method, device and equipment for testing performance of solid state disk and readable storage medium Pending CN113821389A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110962781.2A CN113821389A (en) 2021-08-20 2021-08-20 Method, device and equipment for testing performance of solid state disk and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110962781.2A CN113821389A (en) 2021-08-20 2021-08-20 Method, device and equipment for testing performance of solid state disk and readable storage medium

Publications (1)

Publication Number Publication Date
CN113821389A true CN113821389A (en) 2021-12-21

Family

ID=78923123

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110962781.2A Pending CN113821389A (en) 2021-08-20 2021-08-20 Method, device and equipment for testing performance of solid state disk and readable storage medium

Country Status (1)

Country Link
CN (1) CN113821389A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116501588A (en) * 2023-04-26 2023-07-28 合芯科技有限公司 Database performance test method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107241229A (en) * 2017-07-03 2017-10-10 北京奇安信科技有限公司 A kind of business monitoring method and device based on interface testing instrument
CN108038033A (en) * 2017-12-12 2018-05-15 中标软件有限公司 Test method and system based on linux system
CN111192623A (en) * 2018-11-14 2020-05-22 慧荣科技股份有限公司 Method, computer device and user interface for automated testing
CN111752778A (en) * 2020-06-09 2020-10-09 苏州浪潮智能科技有限公司 Method and device for testing stability of solid state disk firmware under linux

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107241229A (en) * 2017-07-03 2017-10-10 北京奇安信科技有限公司 A kind of business monitoring method and device based on interface testing instrument
CN108038033A (en) * 2017-12-12 2018-05-15 中标软件有限公司 Test method and system based on linux system
CN111192623A (en) * 2018-11-14 2020-05-22 慧荣科技股份有限公司 Method, computer device and user interface for automated testing
CN111752778A (en) * 2020-06-09 2020-10-09 苏州浪潮智能科技有限公司 Method and device for testing stability of solid state disk firmware under linux

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
赵雷: "块设备自动化测试系统的设计及优化", 《中国优秀硕士学位论文全文数据库 信息科技辑》, no. 4, 15 April 2018 (2018-04-15), pages 137 - 144 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116501588A (en) * 2023-04-26 2023-07-28 合芯科技有限公司 Database performance test method and system

Similar Documents

Publication Publication Date Title
CN106951364B (en) Test method and device
US8056060B2 (en) Software testing method and system
US9465724B2 (en) Method, program, and system for generating test cases
CN107908548B (en) Method and device for generating test case
CN110297767B (en) Automatic execution method, device, equipment and storage medium for test cases
CN105302722B (en) CTS automatic testing method and device
CN110990269A (en) Interface testing method, device and system
CN111078567A (en) Report generation method, terminal and storage medium of automatic test platform
CN112052169A (en) Test management method, system, device and computer readable storage medium
CN110569194A (en) interface testing method and device, electronic equipment and storage medium
CN112269697B (en) Equipment storage performance testing method, system and related device
CN110688063A (en) Method, device, equipment and medium for screening Raid slow disc
CN112000582A (en) Server-side automatic test early warning method, device, equipment and storage medium
US11169910B2 (en) Probabilistic software testing via dynamic graphs
CN110888816A (en) Program testing method, program testing device, and storage medium
CN112799953A (en) Interface testing method and device, computer equipment and storage medium
CN113821389A (en) Method, device and equipment for testing performance of solid state disk and readable storage medium
CN111736951A (en) Simulation method for automatic driving, computer device, and storage medium
CN111367782B (en) Regression testing data automatic generation method and device
CN113254153A (en) Process task processing method and device, computer equipment and storage medium
CN113672497B (en) Method, device and equipment for generating non-buried point event and storage medium
CN114238110A (en) Software application testing method, device, equipment and storage medium
CN109800170B (en) Test method, test equipment and readable storage medium based on API test platform
CN114020645A (en) Test method, device, equipment, readable storage medium and computer program product
CN107102938B (en) Test script updating method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination