CN115543718A - Method, device and equipment for hard disk read-write test and readable medium - Google Patents

Method, device and equipment for hard disk read-write test and readable medium Download PDF

Info

Publication number
CN115543718A
CN115543718A CN202211164095.1A CN202211164095A CN115543718A CN 115543718 A CN115543718 A CN 115543718A CN 202211164095 A CN202211164095 A CN 202211164095A CN 115543718 A CN115543718 A CN 115543718A
Authority
CN
China
Prior art keywords
test
file
preset
hard disk
suffix
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
CN202211164095.1A
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202211164095.1A priority Critical patent/CN115543718A/en
Publication of CN115543718A publication Critical patent/CN115543718A/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/26Functional testing
    • 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/2273Test methods

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)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention provides a method, a device, equipment and a readable medium for hard disk read-write test, wherein the method comprises the following steps: setting a test parameter and a suffix of a file for outputting a test result, and storing the parameter information and the suffix information of the file into a preset test script; installing a libaio engine and a fio tool on a testing machine, and storing a preset test script to a preset position; and executing a preset test script to obtain a hard disk read-write test result, and analyzing the obtained test result. By using the scheme of the invention, the testing steps can be simplified, the testing data can be accurately recorded, and the labor and time costs are saved.

Description

Method, device and equipment for hard disk read-write test and readable medium
Technical Field
The present invention relates to the field of computers, and more particularly, to a method, an apparatus, a device, and a readable medium for hard disk read-write testing.
Background
The whole server test is a very important part in the field of servers, and the quality of the server test completion directly influences the quality of the servers, so that the related test of the whole server is a test which needs to be performed with great effort in the field of servers. In the test of the server, repeated operation of test items is often encountered, and the hard disk performance test is extremely important in the hard disk compatibility test. Firstly, a plurality of hard disks are used for compatibility test in the test, and parameters such as thread number, depth and parallel test hard disks in a script are changed each time when the performance is tested. The test of several disks is also not fixed, the most important being the inability to run the system disk. If the system runs on the system disk, the system is erased, and corresponding test data is lost, so that the test progress is influenced. Secondly, the read-write value of the hard disk is the most important data for measuring the performance of the hard disk, the read-write value needs to be recorded carefully, and as the result requires to test the average value for 3-5 times and the performance is optimized, a plurality of files need to be recorded, each file is troublesome to check, and errors are easy to occur.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, a device, and a readable medium for hard disk read/write testing, which can simplify testing steps, accurately record testing data, and save labor and time costs.
Based on the above object, an aspect of the embodiments of the present invention provides a method for hard disk read-write testing, including the following steps:
setting a test parameter and setting a suffix of a file outputting a test result, and storing parameter information and suffix information of the file into a preset test script;
installing a libaio engine and a fio tool on a testing machine, and storing a preset test script to a preset position;
and executing a preset test script to obtain a hard disk read-write test result, and analyzing the obtained test result.
According to one embodiment of the present invention, the preset test script includes:
the check _ dev function is configured to capture all hard disk information except a system disk in the system;
a check _ test _ dev function configured to limit the number of hard disks to be tested in the testing process;
a run _ fio function configured to receive test parameter data and perform a hard disk performance test;
and the check log function is configured to print and guide the test result into a table file.
According to one embodiment of the present invention, parameters of a test are set and a suffix of a file outputting a test result is set, and parameter information and suffix information of the file are stored in a preset test script:
setting parameters of the number of the test hard disks, the thread number and the depth of the random read-write test, the thread number and the depth of the sequential read-write test and the test time;
the file of each test result is set to be output with the suffix of output.
According to an embodiment of the present invention, executing a preset test script to obtain a result of a hard disk read-write test, and analyzing the obtained test result includes:
creating a result summary table, wherein the table head of the table comprises a file name, the number of hard disks, a reading and writing mode, a byte block value, an IOPS value and a bandwidth value;
and in response to the completion of the execution of the preset test script, circularly grabbing the value corresponding to the header in the file with each suffix, and filling the value into the table.
In another aspect of the embodiments of the present invention, there is also provided an apparatus for hard disk read-write testing, the apparatus including:
the setting module is configured to set a test parameter and a suffix of a file outputting a test result, and store the parameter information and the suffix information of the file into a preset test script;
the installation module is configured to install a libio engine and a fio tool on the testing machine and store a preset testing script to a preset position;
and the execution module is configured to execute the preset test script to obtain a result of the hard disk read-write test and analyze the obtained test result.
According to one embodiment of the invention, the preset test script comprises:
the check _ dev function is configured to capture all hard disk information except a system disk in the system;
a check _ test _ dev function configured to limit the number of hard disks to be tested in the testing process;
a run _ fio function configured to receive test parameter data and perform a hard disk performance test;
and check log function configured to print and guide the test result into a table file.
According to an embodiment of the invention, the setting module is further configured to:
setting parameters of the number of the test hard disks, the thread number and depth of the random read-write test, the thread number and depth of the sequential read-write test and the test time;
and setting the file of each test result to output in suffix of output.
According to one embodiment of the invention, the execution module is further configured to:
creating a result summary table, wherein the header of the table comprises a file name, the number of hard disks, a reading and writing mode, a byte block value, an IOPS value and a bandwidth value;
and in response to the completion of the execution of the preset test script, circularly grabbing the value corresponding to the header in the file with each suffix, and filling the value into the table.
In another aspect of an embodiment of the present invention, there is also provided a computer apparatus including:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of any of the methods described above.
In another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium storing a computer program, which when executed by a processor implements the steps of any one of the above-mentioned methods.
The invention has the following beneficial technical effects: the method for hard disk read-write test provided by the embodiment of the invention stores parameter information and suffix information of a file into a preset test script by setting test parameters and setting a suffix of the file outputting a test result; installing a libaio engine and a fio tool on a testing machine, and storing a preset test script to a preset position; the technical scheme of executing the preset test script to obtain the result of the hard disk read-write test and analyzing the obtained test result can simplify the test steps, accurately record the test data and save the labor and time cost.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
FIG. 1 is a schematic flow chart diagram of a method for hard disk read-write testing according to one embodiment of the present invention;
FIG. 2 is a diagram illustrating an apparatus for hard disk read/write testing according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a computer device according to one embodiment of the present invention;
fig. 4 is a schematic diagram of a computer-readable storage medium according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
In view of the foregoing, a first aspect of an embodiment of the present invention provides an embodiment of a method for hard disk read-write testing. Fig. 1 shows a schematic flow diagram of the method.
As shown in fig. 1, the method may include the steps of:
s1, setting parameters of a test and suffixes of files for outputting test results, and storing parameter information and suffix information of the files into a preset test script. Setting the number of the test hard disks, the thread number and the depth of the random read-write test, the thread number and the depth of the sequential read-write test and the parameters of the test time according to the test requirements, setting the suffix of each test result for outputting, obtaining a plurality of test result files in the test process, and setting the suffix of each test result file as output.
S2, installing a libaio engine and a fio tool on the testing machine, and storing a preset testing script to a preset position. The operation of the test script needs to install a fio tool and a libio engine, and the libio engine is installed firstly: # rpm-ivh libaio-level-0.3.112-1.el 8.Aarch64.Rpm, and then installing the fio tool: # tar xvf fio-3.3.Tar; cd fio-3.3; make; and (3) copying a folder containing a preset test script to a root, wherein the name of the folder is test _ fio, and the executable script run _ fio.sh is contained under the folder.
And S3, executing a preset test script to obtain a hard disk read-write test result, and analyzing the obtained test result. When the preset test script is executed, the table head of the table comprises a file name, the number of hard disks, a reading and writing mode, a byte block value, an IOPS value and a bandwidth value, when the preset test script is executed, the value corresponding to the table head is captured in the file with each suffix, the value is filled in the table, the final summary result can be obtained, and a worker can analyze the summary result.
By using the technical scheme of the invention, the testing steps can be simplified, the testing data can be accurately recorded, and the labor and time costs are saved.
In a preferred embodiment of the present invention, the preset test script comprises:
a check _ dev function configured to capture all hard disk information except a system disk in a system;
a check _ test _ dev function configured to limit the number of hard disks to be tested in the testing process;
a run _ fio function configured to receive test parameter data and perform a hard disk performance test;
and the check log function is configured to print and guide the test result into a table file. The writing of test scripts can be implemented by those skilled in the art according to the above-described functions. When the test script starts, all the hard disk information except the system disk is captured and recorded in a file, as follows:
Figure BDA0003861454110000061
and then starting to receive data, such as the number of the hard disks to be tested, the thread number and depth of the random read-write test, the thread number and depth of the sequential read-write test and the test time, deriving the hard disks to be tested by the check _ test _ dev function according to the format of the fio parameters, and finally performing the fio test according to the parameters.
Next, an Excel table is created, and a header is imported into the table, and the script is as follows:
echo file _ name, pan _ num, rw, bs, IOPS, BW, clat > sum.csv, wherein fail _ name represents the name of the file to be fetched, pan _ num represents the number of hard disks, rw represents the read-write mode, bs represents the byte of the block, IOPS represents the value of IOPS, and BW represents the bandwidth value. And then entering a loop, wherein the loop judgment condition is that the data are captured from the first output file until the last output file stops the loop, the captured data of the output file are assigned to the variables each time the loop is entered, and finally the variables of the data are imported into the table according to the sequence of the head of the data, and the script is as follows:
Figure BDA0003861454110000062
Figure BDA0003861454110000071
the summarized test results can finally be obtained in a table.
In a preferred embodiment of the present invention, parameters of a test are set and a suffix of a file outputting a test result is set, and parameter information and suffix information of the file are stored in a preset test script:
setting parameters of the number of the test hard disks, the thread number and the depth of the random read-write test, the thread number and the depth of the sequential read-write test and the test time;
the file of each test result is set to be output with the suffix of output.
In a preferred embodiment of the present invention, the executing a preset test script to obtain a result of the hard disk read-write test, and the analyzing the obtained test result includes:
creating a result summary table, wherein the header of the table comprises a file name, the number of hard disks, a reading and writing mode, a byte block value, an IOPS value and a bandwidth value;
and in response to the completion of the execution of the preset test script, circularly grabbing the value corresponding to the header in the file with each suffix, and filling the value into the table.
The invention can automatically capture the magnetic disks to be tested except the system disk and control the number of the tested hard disks, provides a simple and effective capturing method for simultaneously checking the performance data of the hard disks by facing a plurality of test log files, simplifies the test steps, accurately records the test data and saves the labor and time cost.
It should be noted that, as will be understood by those skilled in the art, all or part of the processes in the methods of the above embodiments may be implemented by instructing relevant hardware through a computer program, and the above programs may be stored in a computer-readable storage medium, and when executed, the programs may include the processes of the embodiments of the methods as described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
Furthermore, the method disclosed according to an embodiment of the present invention may also be implemented as a computer program executed by a CPU, which may be stored in a computer-readable storage medium. The computer program, when executed by the CPU, performs the functions defined above in the methods disclosed in the embodiments of the present invention.
In view of the above object, according to a second aspect of the embodiments of the present invention, there is provided an apparatus for hard disk read/write test, as shown in fig. 2, the apparatus 200 includes:
the setting module is configured to set a test parameter and a suffix of a file outputting a test result, and store the parameter information and the suffix information of the file into a preset test script;
the installation module is configured to install a libaio engine and a fio tool on the testing machine and store a preset test script to a preset position;
and the execution module is configured to execute a preset test script to obtain a result of the hard disk read-write test, and analyze the obtained test result.
In a preferred embodiment of the present invention, the preset test script comprises:
the check _ dev function is configured to capture all hard disk information except a system disk in the system;
a check _ test _ dev function configured to limit the number of hard disks to be tested in the testing process;
a run _ fio function configured to receive test parameter data and perform a hard disk performance test;
and check log function configured to print and guide the test result into a table file.
In a preferred embodiment of the present invention, the setting module is further configured to:
setting parameters of the number of the test hard disks, the thread number and the depth of the random read-write test, the thread number and the depth of the sequential read-write test and the test time;
the file of each test result is set to be output with the suffix of output.
In a preferred embodiment of the present invention, the execution module is further configured to:
creating a result summary table, wherein the header of the table comprises a file name, the number of hard disks, a reading and writing mode, a byte block value, an IOPS value and a bandwidth value;
and in response to the completion of the execution of the preset test script, circularly grabbing the value corresponding to the header in the file with each suffix, and filling the value into the table.
In view of the above object, a third aspect of the embodiments of the present invention provides a computer device. Fig. 3 is a schematic diagram of an embodiment of a computer device provided by the present invention. As shown in fig. 3, an embodiment of the present invention includes the following means: at least one processor 21; and a memory 22, the memory 22 storing computer instructions 23 executable on the processor, the instructions when executed by the processor implementing the method of:
setting a test parameter and setting a suffix of a file outputting a test result, and storing parameter information and suffix information of the file into a preset test script;
installing a libaio engine and a fio tool on a testing machine, and storing a preset test script to a preset position;
and executing a preset test script to obtain a hard disk read-write test result, and analyzing the obtained test result.
In a preferred embodiment of the present invention, the preset test script comprises:
the check _ dev function is configured to capture all hard disk information except a system disk in the system;
a check _ test _ dev function configured to limit the number of hard disks to be tested in the test process;
a run _ fio function configured to receive test parameter data and perform a hard disk performance test;
and the check log function is configured to print and guide the test result into a table file.
In a preferred embodiment of the present invention, parameters of a test are set and a suffix of a file outputting a test result is set, and parameter information and suffix information of the file are stored in a preset test script:
setting parameters of the number of the test hard disks, the thread number and the depth of the random read-write test, the thread number and the depth of the sequential read-write test and the test time;
and setting the file of each test result to output in suffix of output.
In a preferred embodiment of the present invention, executing a preset test script to obtain a result of the hard disk read-write test, and analyzing the obtained test result includes:
creating a result summary table, wherein the header of the table comprises a file name, the number of hard disks, a reading and writing mode, a byte block value, an IOPS value and a bandwidth value;
and responding to the completion of the execution of the preset test script, circularly capturing the value corresponding to the header in the file with each suffix of output, and filling the value into the form.
In view of the above object, a fourth aspect of the embodiments of the present invention proposes a computer-readable storage medium. FIG. 4 illustrates a schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. As shown in fig. 4, the computer-readable storage medium 31 stores a computer program 32 that, when executed by a processor, performs the method of:
setting a test parameter and a suffix of a file for outputting a test result, and storing the parameter information and the suffix information of the file into a preset test script;
installing a libaio engine and a fio tool on a testing machine, and storing a preset test script to a preset position;
and executing a preset test script to obtain a hard disk read-write test result, and analyzing the obtained test result.
In a preferred embodiment of the present invention, the preset test script comprises:
the check _ dev function is configured to capture all hard disk information except a system disk in the system;
a check _ test _ dev function configured to limit the number of hard disks to be tested in the test process;
a run _ fio function configured to receive test parameter data and perform a hard disk performance test;
and check log function configured to print and guide the test result into a table file.
In a preferred embodiment of the present invention, parameters of a test are set and a suffix of a file outputting a test result is set, and parameter information and suffix information of the file are stored in a preset test script:
setting parameters of the number of the test hard disks, the thread number and depth of the random read-write test, the thread number and depth of the sequential read-write test and the test time;
and setting the file of each test result to output in suffix of output.
In a preferred embodiment of the present invention, executing a preset test script to obtain a result of the hard disk read-write test, and analyzing the obtained test result includes:
creating a result summary table, wherein the header of the table comprises a file name, the number of hard disks, a reading and writing mode, a byte block value, an IOPS value and a bandwidth value;
and in response to the completion of the execution of the preset test script, circularly grabbing the value corresponding to the header in the file with each suffix, and filling the value into the table.
Furthermore, the methods disclosed according to embodiments of the present invention may also be implemented as a computer program executed by a processor, which may be stored in a computer-readable storage medium. Which when executed by a processor performs the above-described functions defined in the methods disclosed in embodiments of the invention.
Further, the above method steps and system elements may also be implemented using a controller and a computer readable storage medium for storing a computer program for causing the controller to implement the functions of the above steps or elements.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.
In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, digital Versatile Disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The foregoing are exemplary embodiments of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the above embodiments of the present invention are merely for description, and do not represent the advantages or disadvantages of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A method for hard disk read-write test is characterized by comprising the following steps:
setting a test parameter and setting a suffix of a file outputting a test result, and storing parameter information and suffix information of the file into a preset test script;
installing a libaio engine and a fio tool on a testing machine, and storing a preset test script to a preset position;
and executing a preset test script to obtain a hard disk read-write test result, and analyzing the obtained test result.
2. The method of claim 1, wherein the predetermined test script comprises:
a check _ dev function configured to capture all hard disk information except a system disk in a system;
a check _ test _ dev function configured to limit the number of hard disks to be tested in the testing process;
a run _ fio function configured to receive test parameter data and perform a hard disk performance test;
and the check log function is configured to print and guide the test result into a table file.
3. The method of claim 1, wherein parameters of the test are set and suffixes of files outputting the test result are set, and the parameter information and the suffix information of the files are stored in a preset test script:
setting parameters of the number of the test hard disks, the thread number and the depth of the random read-write test, the thread number and the depth of the sequential read-write test and the test time;
the file of each test result is set to be output with the suffix of output.
4. The method of claim 3, wherein executing a preset test script to obtain a result of the hard disk read-write test, and analyzing the obtained test result comprises:
creating a result summary table, wherein the header of the table comprises a file name, the number of hard disks, a reading and writing mode, a byte block value, an IOPS value and a bandwidth value;
and in response to the completion of the execution of the preset test script, circularly grabbing the value corresponding to the header in the file with each suffix, and filling the value into the table.
5. An apparatus for hard disk read-write testing, the apparatus comprising:
the setting module is configured to set parameters of a test and a suffix of a file outputting a test result, and store parameter information and suffix information of the file into a preset test script;
the device comprises an installation module, a test module and a control module, wherein the installation module is configured to install a libaio engine and a fio tool on a test machine and store a preset test script to a preset position;
and the execution module is configured to execute a preset test script to obtain a result of the hard disk read-write test, and analyze the obtained test result.
6. The apparatus of claim 5, wherein the predetermined test script comprises:
the check _ dev function is configured to capture all hard disk information except a system disk in the system;
a check _ test _ dev function configured to limit the number of hard disks to be tested in the testing process;
a run _ fio function configured to receive test parameter data and perform a hard disk performance test;
and check log function configured to print and guide the test result into a table file.
7. The apparatus of claim 5, wherein the setup module is further configured to:
setting parameters of the number of the test hard disks, the thread number and the depth of the random read-write test, the thread number and the depth of the sequential read-write test and the test time;
and setting the file of each test result to output in suffix of output.
8. The apparatus of claim 7, wherein the execution module is further configured to:
creating a result summary table, wherein the header of the table comprises a file name, the number of hard disks, a reading and writing mode, a byte block value, an IOPS value and a bandwidth value;
and in response to the completion of the execution of the preset test script, circularly grabbing the value corresponding to the header in the file with each suffix, and filling the value into the table.
9. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method of any one of claims 1 to 4.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
CN202211164095.1A 2022-09-23 2022-09-23 Method, device and equipment for hard disk read-write test and readable medium Pending CN115543718A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211164095.1A CN115543718A (en) 2022-09-23 2022-09-23 Method, device and equipment for hard disk read-write test and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211164095.1A CN115543718A (en) 2022-09-23 2022-09-23 Method, device and equipment for hard disk read-write test and readable medium

Publications (1)

Publication Number Publication Date
CN115543718A true CN115543718A (en) 2022-12-30

Family

ID=84729533

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211164095.1A Pending CN115543718A (en) 2022-09-23 2022-09-23 Method, device and equipment for hard disk read-write test and readable medium

Country Status (1)

Country Link
CN (1) CN115543718A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116662214A (en) * 2023-05-06 2023-08-29 深圳市晶存科技有限公司 Hard disk garbage recycling method, device, system and medium based on fio

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116662214A (en) * 2023-05-06 2023-08-29 深圳市晶存科技有限公司 Hard disk garbage recycling method, device, system and medium based on fio
CN116662214B (en) * 2023-05-06 2024-05-07 深圳市晶存科技有限公司 Hard disk garbage recycling method, device, system and medium based on fio

Similar Documents

Publication Publication Date Title
CN108829593B (en) Code coverage rate calculation and analysis method, device, equipment and storage medium
CN108984389B (en) Application program testing method and terminal equipment
CN110798373A (en) Method for realizing performance test, test server and computer storage medium
CN115543718A (en) Method, device and equipment for hard disk read-write test and readable medium
CN103152391A (en) Journal output method and device
CN111400164B (en) Software testing method and device
CN112260885B (en) Industrial control protocol automatic test method, system, device and readable storage medium
CN111427777B (en) SOL test method, system, equipment and medium
CN111400171A (en) Interface testing method, system, device and readable storage medium
CN110147313B (en) Log output method and device
CN111435327B (en) Log record processing method, device and system
CN116185706A (en) Data backup method and device, computing and storage medium and electronic equipment
CN116383539A (en) Automatic testing method, device and equipment for Web pages
CN107357701B (en) SAS signal testing method and device under distributed scene
CN111211853B (en) BMC time synchronization checking method and equipment
CN113626232B (en) Method, device, equipment and readable medium for checking server log
CN113392021A (en) Method, device and equipment for analyzing cluster reliability test result and readable medium
CN114546749A (en) Chip random test case regression method, device, equipment and readable medium
CN114647549A (en) Management method, device, equipment and medium for heterogeneous acceleration chip
US10922249B2 (en) Input/output control code filter
CN114138633A (en) Method, device and equipment for testing software based on data driving and readable medium
CN110806981A (en) Application program testing method, device, equipment and storage medium
CN112463023B (en) Data processing method, device and equipment for read-write disk and readable medium
CN115674275A (en) Method and apparatus for internal testing of robotic systems
CN111209206B (en) Automatic test method and system for software products

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