CN108762997A - Based on the method and system for executing hard disk performance test under linux system automatically - Google Patents

Based on the method and system for executing hard disk performance test under linux system automatically Download PDF

Info

Publication number
CN108762997A
CN108762997A CN201810410522.7A CN201810410522A CN108762997A CN 108762997 A CN108762997 A CN 108762997A CN 201810410522 A CN201810410522 A CN 201810410522A CN 108762997 A CN108762997 A CN 108762997A
Authority
CN
China
Prior art keywords
hard disk
disk performance
performance test
test
script
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
CN201810410522.7A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810410522.7A priority Critical patent/CN108762997A/en
Publication of CN108762997A publication Critical patent/CN108762997A/en
Pending legal-status Critical Current

Links

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/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)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses based on the method and system for executing hard disk performance test under linux system automatically, belong to hard disk performance technical field of measurement and test, test script traditional in the prior art is solved not directly to execute under linux system in early period, it can not be tested, and tradition needs to input order one by one during the test, cannot achieve automatic the problem of executing hard disk performance test.The technical solution used for:The preparation that hard disk performance is tested to early period is combined with the operation of hard disk performance test script operation, is reached automatic and is executed hard disk performance test;Method includes the following steps:Hard disk performance tests the preparation of early period;Hard disk performance is tested after the completion of the preparation of early period, and hard disk performance test script is executed, and carries out hard disk performance test;After the completion of hard disk performance test, test result is checked;Simple and convenient, dependable performance of the invention is not necessarily to gradually input instruction, you can directly carry out hard disk performance test during the test.

Description

Based on the method and system for executing hard disk performance test under linux system automatically
Technical field
The present invention relates to hard disk performance technical field of measurement and test, are specifically based on executing hard disk automatically under linux system The method and system of performance test.
Background technology
Hard disk is one of main storaging medium of computer, it is the disk group by one or more aluminum or glass system At.It is covered with ferrimagnet outside disk.The type of hard disk is more, and it is hard that hard disk can be divided into solid state disk, mechanical hard disk and mixing Disk.Data storage of the hard disk as computer system is a key component of computer operation speed core, not only needs to deposit A large amount of data information is transmitted in storage, and the quality of hard disk self performance directly affects the performance of entire computer system.
The parameter for influencing hard disk performance in the prior art has hard-disk capacity, the rotation speed of hard disk, hard disk mean access time, transmission Rate etc., the hard disk performance that hard-disk capacity is big, the rotation speed of hard disk is fast, hard disk mean access time is short and transmission rate is high is more preferable, High performance hard disk can integrally improve the performance of computer system;Therefore, the quality of hard disk performance can influence to a certain extent The performance of computer.To ensure that computer system has superperformance, people would generally test the performance of hard disk, and pass The method tested hard disk performance of uniting is more complex or more difficult to the less personnel of relevant knowledge, can not be quickly to hard disk Effectively accurately test can be carried out, it is entitled " to be surveyed under a kind of linux system such as patent 201510021281.3 for this problem The method for trying hard disk writing speed ", the technical solution of the patent are by using the dd orders carried under linux system, referring to Fixed input file copies in specified output file, passes through the writing speed for executing time calculating hard disk of order;Have The advantages of saving testing time reduces tester's energy and puts into, Improving The Quality of Products.
And tradition is when testing hard disk performance, traditional test script is in early period not directly under linux system It executes, it may appear that the problem of hard disk performance test can not be carried out.And the technological means that above-mentioned patent uses can not solve this and ask Topic, therefore, when testing hard disk, it is also necessary to carry out the preparation of test early period before testing;And tradition is carrying out It when hard disk test, needs to input order one by one during the test, hard disk performance test can not be executed automatically.
Invention content
The technical assignment of the present invention is to provide based on the method for executing hard disk performance test under linux system automatically and is System, not directly executes under linux system in early period to solve test script traditional in the prior art, can not be surveyed Examination, and tradition need to input order one by one during the test, cannot achieve automatic the problem of executing hard disk performance test.
The present invention technical assignment realize in the following manner,
Based on executed automatically under linux system hard disk performance test method, by hard disk performance test early period preparation with The operation operation of hard disk performance test script is combined, and is reached automatic and is executed hard disk performance test;The method includes following steps Suddenly:
(1), hard disk performance test early period preparation;
(2), hard disk performance test early period preparation after the completion of, execute hard disk performance test script, carry out hard disk performance survey Examination;
(3), hard disk performance test after the completion of, check test result.
Step(1)In, hard disk performance test preliminary preparation includes the following steps:
A, setup test environment is prepared for hard disk performance test;
B, after the completion of setup test environment, subregion is carried out to each hard disk;
C, the subregion of each hard disk is formatted.
When setup test environment, new hard disk performance test script is write first, and former hard disk performance test script file is pressed from both sides It is copied in node, into file, the new hard disk performance test script for writing completion is copied in file;Start system System inputs fdisk orders and checks system information after startup, check feedback information there are prompt test errors or failure be can not Test;
After the completion of setup test environment, first by running new hard disk performance test script, subregion is carried out to each hard disk, and Operation is formatted to the subregion of each hard disk.
Step(2)The hard disk performance test script of middle execution is former hard disk performance test script, by running former hard disk Energy test script, carries out hard disk performance test.
Step(3)In, it, will be every after the completion of test by carrying out random write, random write, read-only and only write test to hard disk The IOPS and MBPS of a test result are captured, and the test result of crawl meets the requirements, and hard disk performance test passes through, and captures Test result it is undesirable, hard disk performance test does not pass through.
Based on the system for executing hard disk performance test under linux system automatically, use is based on Linux for any one among the above Automatically the method that hard disk performance test is executed under system, system include:
, test early period reserves module, for carry out hard disk performance test early period preparation;
, testing execution module, for executing hard disk performance test script, to hard disk performance test;
, test result detection unit, for detection to test result after the completion of hard disk performance test.
Test reserves module early period includes test environment reserves module, execution unit, hard disk dividing unit and hard disk form Change unit,
Test environment reserves module further includes that tool writes unit and systems inspection unit,
Tool writes unit, for writing new hard disk performance test script;Former hard disk performance script file sandwiched is set in node, And it will be in the new hard disk performance test script that write setting to above-mentioned file;Systems inspection unit, for checking system information, The inspection feedback information prompt test errors of setting or failure are that can not be tested;
Execution unit runs new hard disk performance test script for driving;
Hard disk dividing unit, for carrying out subregion to each hard disk;
Formatting hard disk unit, for the subregion of each hard disk to be formatted.
Testing execution module, it is former hard disk performance test script to be arranged and drive the hard disk performance test script of operation, is led to The former hard disk performance test script of operation is crossed, hard disk performance test is carried out.
For test result detection unit for being detected to the hard disk test result of crawl, testing result is up to standard to be set as logical Test is crossed, testing result is not up to standard to be set as not passing through test.
The test result of crawl be to hard disk carry out random write, random write, each IOPS that is read-only and only writing test and The crawl result of MBPS.
The present invention's is had based on the method and system for executing hard disk performance test under linux system automatically compared with the prior art Following advantages:
1, provided by the invention based on the method and system for executing hard disk performance test under linux system automatically, by by hard disk The preparation of performance test early period is combined with the operation of hard disk performance test script operation, can directly carry out performance survey Examination, it is easy to operate, and hard disk performance test can be executed automatically;
2, user is in the preparation that hard disk performance tests early period, by writing new hard disk performance test script, and executes new Hard disk performance test script carries out subregion and format operation to hard disk;Hard disk performance is tested after the completion of the preparation of early period, is led to The former hard disk performance test script of execution is crossed, checks test result;It can prevent former hard disk test script from not directly existing in early period The problem of executing, can not being tested under linux system;
3, provided by the invention based on the method and system for executing hard disk performance test under linux system automatically, it can be to difference The hard disk of bandwidth(4K, 64K, 128K, 256K and 512K)Random write, random write, read-only and only write test is carried out, there is test to fit Advantage wide with range, efficient;
4, provided by the invention based on the method and system for executing hard disk performance test under linux system automatically, have using letter Single convenient, dependable performance, hard disk performance test efficient advantage, and are not necessarily to gradually input instruction during the test, you can Hard disk performance test is directly carried out therefore to have good value for applications.
Description of the drawings
The following further describes the present invention with reference to the drawings.
Attached drawing 1 is the flow diagram based on the method for executing hard disk performance test under linux system automatically.
Specific implementation mode
The present invention is surveyed based on hard disk performance is executed under linux system automatically with reference to Figure of description and specific embodiment The method of examination is described in detail below.
Embodiment 1:
The present invention based on executed automatically under linux system hard disk performance test method, by hard disk performance test early period standard Standby work is combined with the operation of hard disk performance test script operation, is reached automatic and is executed hard disk performance test;Method include with Lower step:
(1), hard disk performance test early period preparation;
(2), hard disk performance test early period preparation after the completion of, execute hard disk performance test script, carry out hard disk performance survey Examination;
(3), hard disk performance test after the completion of, check test result.
Embodiment 2:
The present invention based on executed automatically under linux system hard disk performance test method, by hard disk performance test early period standard Standby work is combined with the operation of hard disk performance test script operation, is reached automatic and is executed hard disk performance test;Method include with Lower step:
(1), hard disk performance test early period preparation;
(2), hard disk performance test early period preparation after the completion of, execute hard disk performance test script, carry out hard disk performance survey Examination;
(3), hard disk performance test after the completion of, check test result.
In step(1)In, hard disk performance test preliminary preparation includes the following steps:
A, setup test environment is prepared for hard disk performance test;
B, after the completion of setup test environment, subregion is carried out to each hard disk;
C, the subregion of each hard disk is formatted.
When setup test environment, new hard disk performance test script is write first, and former hard disk performance test script file is pressed from both sides It is copied in node, into file, the new hard disk performance test script for writing completion is copied in file;Start system System inputs fdisk orders and checks system information after startup, check feedback information there are prompt test errors or failure be can not Test;
After the completion of setup test environment, first by running new hard disk performance test script, subregion is carried out to each hard disk, and Operation is formatted to the subregion of each hard disk.
In step(2)The hard disk performance test script of middle execution is former hard disk performance test script, by running former hard disk Performance test script carries out hard disk performance test.
In step(3)In, by carrying out random write, random write, read-only and only write test to hard disk, after the completion of test, general The IOPS and MBPS of each test result are captured, and the test result of crawl meets the requirements, and hard disk performance test passes through, and grabs The test result taken is undesirable, and hard disk performance test does not pass through.
Embodiment 3:
The present invention based on the system for executing hard disk performance test under linux system automatically, which includes:
, test early period reserves module, for carry out hard disk performance test early period preparation;
, testing execution module, for executing hard disk performance test script, to hard disk performance test;
, test result detection unit, for detection to test result after the completion of hard disk performance test.
Embodiment 4:
The present invention based on the system for executing hard disk performance test under linux system automatically, which includes:
, test early period reserves module, for carry out hard disk performance test early period preparation;
, testing execution module, for executing hard disk performance test script, to hard disk performance test;
, test result detection unit, for detection to test result after the completion of hard disk performance test.
Test reserves module early period includes test environment reserves module, execution unit, hard disk dividing unit and hard disk form Change unit,
Test environment reserves module further includes that tool writes unit and systems inspection unit,
Tool writes unit, for writing new hard disk performance test script;Former hard disk performance script file sandwiched is set in node, And it will be in the new hard disk performance test script that write setting to above-mentioned file;Systems inspection unit, for checking system information, The inspection feedback information prompt test errors of setting or failure are that can not be tested;
Execution unit runs new hard disk performance test script for driving;
Hard disk dividing unit, for carrying out subregion to each hard disk;
Formatting hard disk unit, for the subregion of each hard disk to be formatted.
Testing execution module, it is former hard disk performance test script to be arranged and drive the hard disk performance test script of operation, is led to The former hard disk performance test script of operation is crossed, hard disk performance test is carried out.
For test result detection unit for being detected to the hard disk test result of crawl, the test result of crawl is to hard Disk carries out the crawl of random write, random write, each IOPS and MBPS that is read-only and only writing test as a result, testing result setting up to standard For by test, testing result is not up to standard to be set as not passing through test.
The technical personnel in the technical field can readily realize the present invention with the above specific embodiments,.But it answers Work as understanding, the present invention is not limited to 4 kinds of above-mentioned specific implementation modes.On the basis of the disclosed embodiments, the technology The technical staff in field can arbitrarily combine different technical features, to realize different technical solutions.
It is the known technology of those skilled in the art in addition to the technical characteristic described in specification.

Claims (10)

1. based on the method for executing hard disk performance test under linux system automatically, it is characterised in that hard disk performance is tested early period Preparation be combined with the operation of hard disk performance test script operation, reach automatic and execute hard disk performance test;The side Method includes the following steps:
(1), hard disk performance test early period preparation;
(2), hard disk performance test early period preparation after the completion of, execute hard disk performance test script, carry out hard disk performance survey Examination;
(3), hard disk performance test after the completion of, check test result.
2. according to claim 1 based on the method for executing hard disk performance test under linux system automatically, it is characterised in that The step(1)In, hard disk performance test preliminary preparation includes the following steps:
A, setup test environment is prepared for hard disk performance test;
B, after the completion of setup test environment, subregion is carried out to each hard disk;
C, the subregion of each hard disk is formatted.
3. according to claim 2 based on the method for executing hard disk performance test under linux system automatically, it is characterised in that When setup test environment, new hard disk performance test script is write first, and former hard disk performance test script file folder is copied to section In point, into file, the new hard disk performance test script for writing completion is copied in file;Activation system, after startup Input fdisk orders simultaneously check system information, check that feedback information prompt test errors or failure occurs for that can not test;
After the completion of setup test environment, first by running new hard disk performance test script, subregion is carried out to each hard disk, and Operation is formatted to the subregion of each hard disk.
4. according to claim 1 based on the method for executing hard disk performance test under linux system automatically, it is characterised in that The step(2)The hard disk performance test script of middle execution is former hard disk performance test script, is surveyed by running former hard disk performance Training sheet carries out hard disk performance test.
5. according to claim 1 based on the method for executing hard disk performance test under linux system automatically, it is characterised in that The step(3)In, by carrying out random write, random write, read-only and only write test to hard disk, after the completion of test, will each survey The IOPS and MBPS of test result are captured, and the test result of crawl meets the requirements, and hard disk performance test passes through, the survey of crawl Test result is undesirable, and hard disk performance test does not pass through.
6. based on the system for executing hard disk performance test under linux system automatically, it is characterised in that appoint using in claim 1-5 Item includes based on the method for executing hard disk performance test under linux system automatically, system one by one:
, test early period reserves module, for carry out hard disk performance test early period preparation;
, testing execution module, for executing hard disk performance test script, to hard disk performance test;
, test result detection unit, for detection to test result after the completion of hard disk performance test.
7. according to claim 6 based on the system for executing hard disk performance test under linux system automatically, it is characterised in that Test reserves module early period includes test environment reserves module, execution unit, hard disk dividing unit and formatting hard disk unit,
Test environment reserves module further includes that tool writes unit and systems inspection unit,
Tool writes unit, for writing new hard disk performance test script;Former hard disk performance script file sandwiched is set in node, And it will be in the new hard disk performance test script that write setting to above-mentioned file;Systems inspection unit, for checking system information, The inspection feedback information prompt test errors of setting or failure are that can not be tested;
Execution unit runs new hard disk performance test script for driving;
Hard disk dividing unit, for carrying out subregion to each hard disk;
Formatting hard disk unit, for the subregion of each hard disk to be formatted.
8. according to claim 6 based on the system for executing hard disk performance test under linux system automatically, it is characterised in that Testing execution module, it is former hard disk performance test script to be arranged and drive the hard disk performance test script of operation, former by running Hard disk performance test script carries out hard disk performance test.
9. according to claim 6 based on the system for executing hard disk performance test under linux system automatically, it is characterised in that For being detected to the hard disk test result of crawl, testing result is up to standard to be set as through test test result detection unit, Testing result is not up to standard to be set as not passing through test.
10. according to claim 9 based on the system for executing hard disk performance test under linux system automatically, feature exists It is that random write, random write, read-only and only write each IOPS of test and grabbing for MBPS is carried out to hard disk in the test result of crawl Take result.
CN201810410522.7A 2018-05-02 2018-05-02 Based on the method and system for executing hard disk performance test under linux system automatically Pending CN108762997A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810410522.7A CN108762997A (en) 2018-05-02 2018-05-02 Based on the method and system for executing hard disk performance test under linux system automatically

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810410522.7A CN108762997A (en) 2018-05-02 2018-05-02 Based on the method and system for executing hard disk performance test under linux system automatically

Publications (1)

Publication Number Publication Date
CN108762997A true CN108762997A (en) 2018-11-06

Family

ID=64008701

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810410522.7A Pending CN108762997A (en) 2018-05-02 2018-05-02 Based on the method and system for executing hard disk performance test under linux system automatically

Country Status (1)

Country Link
CN (1) CN108762997A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110347540A (en) * 2019-07-12 2019-10-18 深圳忆联信息系统有限公司 Total bandwidth test method, device and computer equipment based on solid state hard disk

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103744759A (en) * 2013-12-27 2014-04-23 浪潮电子信息产业股份有限公司 Method for verifying unattended disk performance and stability under Linux system
CN104809042A (en) * 2015-04-27 2015-07-29 浪潮电子信息产业股份有限公司 Iozone-based hard disk performance test method
CN105302681A (en) * 2015-11-04 2016-02-03 浪潮电子信息产业股份有限公司 Automatic test method for disk performance of rack whole cabinet
CN106126421A (en) * 2016-06-23 2016-11-16 浪潮电子信息产业股份有限公司 Method for automatically testing and comparing PCIE-SSD performance
CN106502849A (en) * 2016-11-01 2017-03-15 广东浪潮大数据研究有限公司 A kind of system and method for the pressure test of hard disk

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103744759A (en) * 2013-12-27 2014-04-23 浪潮电子信息产业股份有限公司 Method for verifying unattended disk performance and stability under Linux system
CN104809042A (en) * 2015-04-27 2015-07-29 浪潮电子信息产业股份有限公司 Iozone-based hard disk performance test method
CN105302681A (en) * 2015-11-04 2016-02-03 浪潮电子信息产业股份有限公司 Automatic test method for disk performance of rack whole cabinet
CN106126421A (en) * 2016-06-23 2016-11-16 浪潮电子信息产业股份有限公司 Method for automatically testing and comparing PCIE-SSD performance
CN106502849A (en) * 2016-11-01 2017-03-15 广东浪潮大数据研究有限公司 A kind of system and method for the pressure test of hard disk

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110347540A (en) * 2019-07-12 2019-10-18 深圳忆联信息系统有限公司 Total bandwidth test method, device and computer equipment based on solid state hard disk

Similar Documents

Publication Publication Date Title
CN104850480B (en) The method and device of high density storage server hard disk performance test
CN109117327A (en) A kind of hard disk detection method and device
CN104360919A (en) Method for automatically testing performance, function and stability of SSD
US20090113455A1 (en) Network card testing method
CN106126421A (en) Method for automatically testing and comparing PCIE-SSD performance
KR101976629B1 (en) Commit sensitive tests
CN108762997A (en) Based on the method and system for executing hard disk performance test under linux system automatically
CN109684149A (en) A kind of hardware information monitoring method, device and the equipment of NVMe hard disk
CN106021046A (en) Hard disk performance comparison method, device and server
WO2016201756A1 (en) Multi-channel data collection and testing system
CN109444060A (en) Solution concentration detection method, device, equipment and storage medium
CN102999504A (en) Hard disk testing data analyzing method
CN109901962B (en) Method and system for testing synchronous mixed pressure of AEP memory under Linux
CN108735242A (en) Crc error information automatic testing method based on SATA hard disc and system
US11163644B2 (en) Storage boost
CN108427778A (en) The testable parameter method and device of electronics
CN107145412A (en) The detection method and detection means of a kind of disk state
CN111352783A (en) Method and system for automatically controlling hard disk identification and test
CN109886541A (en) Automatic driving vehicle Data Quality Assessment Methodology, device and storage medium
US9244807B2 (en) Quasi disk drive for testing disk interface performance
CN115269389A (en) Project quality determination method and device, electronic equipment and storage medium
CN106991024A (en) The detection method and system of a kind of hard disk backboard
CN109542700A (en) Method and device for testing PCIE (peripheral component interface express) interface link rate of disk array card
CN104978250A (en) Iozone-based HBA card performance test method
CN112946529B (en) Control line checking method, system and medium based on detection module

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20181106