CN102568522B - The method of testing of hard disk performance and device - Google Patents

The method of testing of hard disk performance and device Download PDF

Info

Publication number
CN102568522B
CN102568522B CN201110456279.0A CN201110456279A CN102568522B CN 102568522 B CN102568522 B CN 102568522B CN 201110456279 A CN201110456279 A CN 201110456279A CN 102568522 B CN102568522 B CN 102568522B
Authority
CN
China
Prior art keywords
hard disk
test
parameter information
raid
testing
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.)
Active
Application number
CN201110456279.0A
Other languages
Chinese (zh)
Other versions
CN102568522A (en
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.)
Dawning Information Systems (Liaoning) Co., Ltd.
Original Assignee
Dawning Information Industry 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 Dawning Information Industry Co Ltd filed Critical Dawning Information Industry Co Ltd
Priority to CN201110456279.0A priority Critical patent/CN102568522B/en
Publication of CN102568522A publication Critical patent/CN102568522A/en
Application granted granted Critical
Publication of CN102568522B publication Critical patent/CN102568522B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of method of testing and device of hard disk performance, wherein, the method comprises: the parameter information obtaining at least one hard disk of needs test; Under pre-configured test environment, hard disk is tested, the test result that read test obtains, parameter information and hard disk place system for computer parameter information; Judge that whether the performance of hard disk is normal according to the parameter information read, test result and system for computer parameter information.According to this parameter information and system information, the present invention by obtaining parameter information and the system information of hard disk, and judges that whether the actual hard disk performance recorded is normal, can realize the automatic test of hard disk, improve the efficiency of test, ensure the accuracy of testing simultaneously.

Description

The method of testing of hard disk performance and device
Technical field
The present invention relates to computer realm, and especially, relate to a kind of method of testing and device of hard disk performance.
Background technology
At present, propose the scheme that some IO performances for hard disk carry out testing, these schemes can be carried out from different perspectives testing and met the requirement tested hard disk IO performance in varying degrees, such as, can the order read or write speed of testing hard disk, random read-write speed, response time, seek time, latent time, power consumption etc. to instruction.But it is perfect that these method of testings and thinking all need manual hand manipulation's related software.
In order to reduce manual operation load in hard disk test process, also been proposed the software for carrying out hard disk IO test at present, command adapted thereto can be assigned to hard disk by these testing softwares, and carries out analysis and treament judge its performance according to result of its feedback.But these softwares need can complete corresponding function by the manual operations of operator equally.Because existing testing scheme all depends on artificial participation, therefore, these schemes are only applicable on a small scale, and other testing authentication of laboratory-scale, is not suitable for production line large scale deployment.
Test the problem needing to cause testing efficiency lower by manual operation for hard disk IO in correlation technique, not yet propose effective solution at present.
Summary of the invention
Test the problem needing to cause testing efficiency lower by manual operation for hard disk IO in correlation technique, the present invention proposes a kind of method of testing and device of hard disk performance, effectively can improve the efficiency of test.
Technical scheme of the present invention is achieved in that
According to an aspect of the present invention, a kind of method of testing of hard disk performance is provided.
The method comprises: the parameter information obtaining at least one hard disk of needs test; Under pre-configured test environment, hard disk is tested, the test result that read test obtains, parameter information and hard disk place system for computer parameter information; Judge that whether the performance of hard disk is normal according to the parameter information read, test result and system for computer parameter information.
Before the test environment of configuration hard disk, the method comprises further: the parameter information determining each hard disk that needs are tested, and judges whether each hard disk needing test is redundancy array in disc RAID.
Further, so the hard disk to RAID, the parameter information of this hard disk determined comprise following one of at least: RAID rolls up the number of disks comprised in quantity, RAID rank, often volume; For the hard disk not being RAID, the parameter information of this hard disk determined comprise following one of at least: the model of hard disk, manufacturer's information.
In addition, under the test environment of configuration, test is carried out to hard disk and comprise: carry out data write operation to the hard disk of test, hard disk returns writing rate with predetermined time interval, and the writing rate returned by hard disk is kept in predetermined journal file as test result.
Wherein, judge whether the performance of hard disk normally comprises: for each hard disk of test, be averaged by the writing rate that this hard disk returns, obtain mean speed; For each hard disk, the mean speed of set rate and this hard disk is compared, wherein, set rate for the rate-valve value corresponding to the parameter information of system parameter message and this hard disk.
In addition, under pre-configured test environment, test is carried out to hard disk and comprise: if a tested hard disk is system disk, then the specified partition for this hard disk is tested; If a tested hard disk is non-system disk, then the whole subregions for this hard disk are tested.
According to a further aspect in the invention, a kind of proving installation of hard disk performance is provided.
Proving installation according to the hard disk performance of the embodiment of the present invention comprises: acquisition module, for obtaining the parameter information of at least one hard disk needing test; Test module, for testing hard disk under pre-configured test environment; Read module, for test result, parameter information and hard disk place system for computer parameter information that read test obtains; According to the parameter information read, test result and system for computer parameter information, analysis module, for judging that whether the performance of hard disk is normal.
Wherein, this device may further include: determination module, for before the test environment of configuration hard disk, determines the parameter information of each hard disk needing test, and judges whether each hard disk needing test is RAID.
In addition, so the hard disk to RAID, the parameter information of this hard disk determined comprise following one of at least: RAID rolls up the number of disks comprised in quantity, RAID rank, often volume; For the hard disk not being RAID, the parameter information of this hard disk determined comprise following one of at least: the model of hard disk, manufacturer's information.
In addition, test module is for determining the writing rate of at least one hard disk; Further, analysis module is used for, for each hard disk of test, being averaged by the writing rate that this hard disk returns, obtaining mean speed; Further, also for for each hard disk, the mean speed of set rate and this hard disk is compared, wherein, set rate for the rate-valve value corresponding to the parameter information of system parameter message and this hard disk.
According to this parameter information and system information, the present invention by obtaining parameter information and the system information of hard disk, and judges that whether the actual hard disk performance recorded is normal, can realize the automatic test of hard disk, improve the efficiency of test, ensure the accuracy of testing simultaneously.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the method for testing of hard disk performance according to the embodiment of the present invention;
Fig. 2 is the block diagram of the proving installation of hard disk performance according to the embodiment of the present invention.
Embodiment
According to embodiments of the invention, provide a kind of method of testing of hard disk performance.
As shown in Figure 1, comprise according to the method for testing of the hard disk performance of the embodiment of the present invention:
Step S101, obtains the parameter information of at least one hard disk needing test;
Step S103, tests hard disk under pre-configured test environment, the test result that read test obtains, parameter information and hard disk place system for computer parameter information;
According to the parameter information read, test result and system for computer parameter information, step S105, judges that whether the performance of hard disk is normal.
Wherein, before the test environment of configuration hard disk, the method may further include: the parameter information determining each hard disk needing test, and judge whether each hard disk needing test is redundant arrays of inexpensive disks (Redundant Array of Independent Disk, referred to as RAID).
Further, so the hard disk to RAID, the parameter information of this hard disk determined comprise following one of at least: RAID rolls up the number of disks comprised in quantity, RAID rank, often volume; On the other hand, for the hard disk not being RAID, the parameter information of this hard disk determined comprise following one of at least: the model of hard disk, manufacturer's information.
When testing hard disk under the test environment configured, can carry out data write operation to the hard disk of test, hard disk returns writing rate with predetermined time interval, and the writing rate returned by hard disk is kept in predetermined journal file as test result.
Further, when judging that whether the performance of hard disk is normal, following process can be performed: for each hard disk of test, be averaged by the writing rate that this hard disk returns, obtain mean speed; For each hard disk, the mean speed of set rate and this hard disk is compared, wherein, set rate for the rate-valve value corresponding to the parameter information of system parameter message and this hard disk.
In addition, if a tested hard disk is system disk, then, when testing, needing the specified partition for this hard disk to test, avoiding damaging system file; If a tested hard disk is non-system disk, then can test for whole subregions of this hard disk.
In actual applications, the hard disk test scheme that can realize according to the embodiment of the present invention by following steps:
Step 1: the hard disk quantity in judgement system and corresponding drive (drive here can be the position sign of hard disk);
Step 2: the model and the manufacturer's information that judge hard disk, and judge whether hard disk has been RAID (whether being RAID) according to this information.
Step 3: the information read according to step 2, call the command interface that relevant manufactures provides, read the specifying information of relevant RAID array, such as, RAID can be read and roll up quantity, RAID rank, the hard disk quantity etc. often comprised in volume, afterwards by RAID information write log file, for judging afterwards by whether preparing.
Step 4: if be non-RAID, then different according to manufacturer, carry out the judgement of corresponding hard disk model.And write log file.(by step 3 and step 4, being equivalent to the parameter information obtaining hard disk)
Step 5: copy required storehouse to respective directories, for testing results program is prepared.
Step 6: the test first carrying out system disk, hard disk to be measured is hung over the formulation catalogue set before, testing results program, data block size is 64MB (also can be the data block of other sizes), be sequentially written in, within every 20 seconds, feed back once result (also can according to the time cycle feedback result of other length), and write results to and specify in daily record, (the execution time length of test can change according to actual needs) terminates afterwards to run 5 minutes.
Step 7: if any non-system disk, then run a test procedure successively on each non-system disk.Test process is the same, terminates (the execution time length of test can change according to actual needs) after 5 minutes, and by journal file corresponding for result write.
Step 8: the test result daily record of read-out system dish and non-system disk successively, and result is averaged, by the result write specified file be averaging.
Step 9: the hardware information of reading system, judges the information such as mainboard, CPU, host sequence number, and writes corresponding document.
Step 10: be recorded in the hard disk model in daily record before reading out, RAID rank, RAID rolls up quantity, number of disks information in RAID volume, and reading hard disk threshold speed information simultaneously, the result of step 8 is taken out, and the threshold values rolled up with corresponding model hard disk or corresponding RAID compares.Wherein, above-mentioned rate-valve value information can be preserved in table form in advance, such as, wherein can comprise the combination of various systematic parameter and hard disk praameter and corresponding rate-valve value, be compared by the average rate that the rate-valve value in form and test are obtained and just can judge that whether the speed of hard disk is normal in conjunction with actual hard disk model and system status.
Step 11: the comparative result of step display 10, identify by test and the hard disk not by testing, such as, can represent that whether hard disk is by test by the mark of different colours, such as, the hard disk blueness display passed through, not by the red warning display of hard disk of test, and by the test result of each hard disk write journal file.
Step 12:(is optional) logged result is uploaded to associated server, convenient judgement and diagnosis.
By above-mentioned process, each hard disk is tested one by one by manual testing results program pin compared in correlation technique, and the manual scheme comparing threshold values and carry out judging, the execution efficiency of test can be significantly improved, the system quantity carrying out in unit interval testing improves more than 10 times than manual testing results, and contribute to carrying out robotization deployment in conjunction with production automation deployment system, testing efficiency can be improved further, realize the full-automatic testing of whole system.
Except above-mentioned implementation, the mode of keyboard and mouse record can also be adopted to carry out automatic operating and robotization comparative result.Further, structured programming can be carried out by service routine language (as C, C++, VB, Java etc.), directly create the software that one piece is carried out automatic hard disk IO performance test.Adopt the logical and thinking of such scheme, directly can realize corresponding function.
According to embodiments of the invention, additionally provide a kind of proving installation of hard disk performance.
As shown in Figure 2, comprise according to the proving installation of the hard disk performance of the embodiment of the present invention:
Acquisition module 21, for obtaining the parameter information of at least one hard disk needing test;
Test module 22, for testing hard disk under pre-configured test environment;
Read module 23, is connected to acquisition module 21 and test module 22, for test result, parameter information and hard disk place system for computer parameter information that read test obtains;
Analysis module 24, is connected to read module 23, for judging that whether the performance of hard disk is normal according to the parameter information read, test result and system for computer parameter information.
This device may further include: determination module (not shown), for before the test environment of configuration hard disk, determines the parameter information of each hard disk needing test, and judges whether each hard disk needing test is RAID.
In addition, so the hard disk to RAID, the parameter information of this hard disk determined comprise following one of at least: RAID rolls up the number of disks comprised in quantity, RAID rank, often volume; And for not being the hard disk of RAID, the parameter information of this hard disk determined comprise following one of at least: the model of hard disk, factory's surface information.
It should be noted that, although be described for testing hard disk I/O rate performance before, but, testing scheme of the present invention can also add up other aspect performances with testing hard disk, only need to configure the corresponding relation of different hard disk praameter information, these performance index corresponding to system parameter message, can compare the actual index recorded according to corresponding relation, and judge that whether this index is normal.
In addition, test module is for determining the writing rate of at least one hard disk; Further, analysis module is used for, for each hard disk of test, being averaged by the writing rate that this hard disk returns, obtaining mean speed; Further, the mean speed of set rate and this hard disk also for for each hard disk, compares by analysis module, wherein, set rate for the rate-valve value corresponding to the parameter information of system parameter message and this hard disk.
In sum, by means of technique scheme of the present invention, by obtaining parameter information and the system information of hard disk, and judge that whether the actual hard disk performance recorded is normal according to this parameter information and system information, the automatic test of hard disk can be realized, improve the efficiency of test, ensure the accuracy of testing simultaneously.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (5)

1. a method of testing for hard disk performance, is characterized in that, comprising:
Obtain the parameter information of at least one hard disk needing test;
Under pre-configured test environment, described hard disk is tested, the test result that read test obtains, described parameter information and described hard disk place system for computer parameter information;
Judge that whether the performance of described hard disk is normal according to the described parameter information read, described test result and described system for computer parameter information, obtain judged result, and described judged result is write predetermined journal file;
Wherein, before the test environment of configuration hard disk, described method comprises further:
Determine the parameter information of each hard disk needing test, and judge whether each hard disk needing test is redundancy array in disc RAID;
Under the described test environment of configuration, carry out test to described hard disk comprise:
Carry out data write operation to the hard disk of test, described hard disk returns writing rate with predetermined time interval, and the writing rate returned by described hard disk is kept in predetermined journal file as test result;
Judge that whether the performance of described hard disk is normal, obtain judged result and comprise further:
For each hard disk of test, the writing rate that this hard disk returns is averaged, obtains mean speed;
For each hard disk, the mean speed of set rate and this hard disk is compared, wherein, described set rate for the rate-valve value corresponding to the parameter information of described system parameter message and this hard disk.
2. method of testing according to claim 1, is characterized in that,
So to the hard disk of RAID, the parameter information of this hard disk determined comprise following one of at least: RAID rolls up the number of disks comprised in quantity, RAID rank, often volume;
For the hard disk not being RAID, the parameter information of this hard disk determined comprise following one of at least: the model of hard disk, manufacturer's information.
3. method of testing according to claim 1, is characterized in that, carries out test comprise under pre-configured test environment to described hard disk:
If a tested hard disk is system disk, then the specified partition for this hard disk is tested;
If a tested hard disk is non-system disk, then the whole subregions for this hard disk are tested.
4. a proving installation for hard disk performance, is characterized in that, comprising:
Acquisition module, for obtaining the parameter information of at least one hard disk needing test;
Test module, for testing described hard disk under pre-configured test environment, wherein, carrying out test to described hard disk and comprising under the described test environment of configuration:
Carry out data write operation to the hard disk of test, described hard disk returns writing rate with predetermined time interval, and the writing rate returned by described hard disk is kept in predetermined journal file as test result;
Read module, for test result, described parameter information and described hard disk place system for computer parameter information that read test obtains;
Analysis module, whether normal for judging the performance of described hard disk according to the described parameter information read, described test result and described system for computer parameter information, obtain judged result, and described judged result is write predetermined journal file; And
Determination module, for before the test environment of configuration hard disk, determines the parameter information of each hard disk needing test, and judges whether each hard disk needing test is RAID;
Described test module is for determining the writing rate of at least one hard disk described;
Further, described analysis module is used for, for each hard disk of test, being averaged by the writing rate that this hard disk returns, obtaining mean speed; Further, also for for each hard disk, the mean speed of set rate and this hard disk is compared, wherein, described set rate for the rate-valve value corresponding to the parameter information of described system parameter message and this hard disk.
5. proving installation according to claim 4, is characterized in that,
So to the hard disk of RAID, the parameter information of this hard disk determined comprise following one of at least: RAID rolls up the number of disks comprised in quantity, RAID rank, often volume;
For the hard disk not being RAID, the parameter information of this hard disk determined comprise following one of at least: the model of hard disk, manufacturer's information.
CN201110456279.0A 2011-12-31 2011-12-31 The method of testing of hard disk performance and device Active CN102568522B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110456279.0A CN102568522B (en) 2011-12-31 2011-12-31 The method of testing of hard disk performance and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110456279.0A CN102568522B (en) 2011-12-31 2011-12-31 The method of testing of hard disk performance and device

Publications (2)

Publication Number Publication Date
CN102568522A CN102568522A (en) 2012-07-11
CN102568522B true CN102568522B (en) 2015-08-19

Family

ID=46413756

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110456279.0A Active CN102568522B (en) 2011-12-31 2011-12-31 The method of testing of hard disk performance and device

Country Status (1)

Country Link
CN (1) CN102568522B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11994970B2 (en) 2020-01-09 2024-05-28 Asustek Computer Inc. Diagnostic system

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103279408B (en) * 2013-06-20 2015-08-19 曙光信息产业(北京)有限公司 The method of testing of raid-array RAID performance
CN103810062B (en) * 2014-03-05 2015-12-30 华为技术有限公司 Slow dish detection method and device
CN105097042A (en) * 2014-05-20 2015-11-25 中兴通讯股份有限公司 Method and apparatus for processing health condition of hard disk
CN104536857A (en) * 2014-12-19 2015-04-22 上海理工大学 Hard disk parameters acquiring method
CN106407051B (en) * 2015-07-31 2019-01-11 华为技术有限公司 A kind of method and device detecting slow disk
CN106557389B (en) * 2015-09-29 2019-03-08 成都华为技术有限公司 A kind of slow disk detection method and device
CN107391325B (en) * 2017-06-30 2021-03-12 苏州浪潮智能科技有限公司 Hard disk test method and device and terminal
CN108038033B (en) * 2017-12-12 2021-02-26 中标软件有限公司 Test method and system based on Linux system
CN108520768A (en) * 2018-04-12 2018-09-11 郑州云海信息技术有限公司 A kind of test method, system and the device of SSD performances
CN109491845B (en) * 2018-10-09 2022-02-18 郑州云海信息技术有限公司 Test method and system for storage product controller
CN111045881A (en) * 2018-10-15 2020-04-21 深信服科技股份有限公司 Slow disk detection method and system
CN109359000A (en) * 2018-10-22 2019-02-19 郑州云海信息技术有限公司 A kind of test method and server of server I/O performance
CN110415756B (en) * 2019-07-31 2021-06-08 东莞记忆存储科技有限公司 Method and device for testing SSD label information
CN112216340A (en) * 2020-10-22 2021-01-12 深圳佰维存储科技股份有限公司 Hard disk test method and device, storage medium and electronic equipment
CN115547402B (en) * 2022-10-24 2023-05-05 深圳三地一芯电子股份有限公司 Zero-loss monitoring method, device, equipment and storage medium
CN115831214B (en) * 2023-02-15 2023-04-28 四川华鲲振宇智能科技有限责任公司 Initialization mode automatic adjustment method based on solid state disk writing performance test result

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101149696A (en) * 2006-09-22 2008-03-26 鸿富锦精密工业(深圳)有限公司 Hard disk test system
CN101872320A (en) * 2010-04-16 2010-10-27 浪潮电子信息产业股份有限公司 Method for reliability, performance test and statistic of SSD(Solid State Disk)
CN101996112A (en) * 2009-08-24 2011-03-30 英业达股份有限公司 Disk array test method
CN102208204A (en) * 2011-05-25 2011-10-05 深圳宝德科技集团股份有限公司 Method and device for detecting hard disks

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101149696A (en) * 2006-09-22 2008-03-26 鸿富锦精密工业(深圳)有限公司 Hard disk test system
CN101996112A (en) * 2009-08-24 2011-03-30 英业达股份有限公司 Disk array test method
CN101872320A (en) * 2010-04-16 2010-10-27 浪潮电子信息产业股份有限公司 Method for reliability, performance test and statistic of SSD(Solid State Disk)
CN102208204A (en) * 2011-05-25 2011-10-05 深圳宝德科技集团股份有限公司 Method and device for detecting hard disks

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11994970B2 (en) 2020-01-09 2024-05-28 Asustek Computer Inc. Diagnostic system

Also Published As

Publication number Publication date
CN102568522A (en) 2012-07-11

Similar Documents

Publication Publication Date Title
CN102568522B (en) The method of testing of hard disk performance and device
US7707060B2 (en) Automatic collection and dissemination of product usage information
JP2014501997A (en) Storage location selection for data storage based on storage location attributes and data usage statistics
CN102004693A (en) System performance test method and device
CN107076797B (en) Testing semiconductor memory power consumption based on executed access commands
CN102521092A (en) Hard disk test method and device
CN104317684A (en) Method for synchronously automatic testing of bandwidth and transmission rate of multiple USB (Universal Serial Bus) interfaces
CN106021045A (en) Method for testing IO (input/output) performance of hard disk of server under linux system
CN105893230A (en) Method and device for detecting IOPS performance of hard disks
CN116340076B (en) Hard disk performance test method, device and medium
CN107068199B (en) Performance test method of SSD (solid State disk)
CN112416670B (en) Hard disk testing method, device, server and storage medium
CN116662214B (en) Hard disk garbage recycling method, device, system and medium based on fio
US8843781B1 (en) Managing drive error information in data storage systems
CN105138293A (en) Disk performance evaluating method based on database
CN107273251A (en) A kind of method of testing of the racks of Rack in a production environment JBOD storages
DE112019005558T5 (en) USE OF ERROR CORRECTION-BASED METRICS TO IDENTIFY BADLY FUNCTIONING DATA STORAGE DEVICES
CN110928786A (en) Testing method and device for financial program
US11748241B2 (en) Method and apparatus for generating simulated test IO operations
CN101883019A (en) Test method for verifying video application of storage server
CN107515803A (en) A kind of storing performance testing method and device
CN102222517B (en) Cluster harddisk automation test method and system
US9507690B2 (en) Method and device for analyzing an execution of a predetermined program flow on a physical computer system
CN113568798B (en) Server fault positioning method and device, electronic equipment and storage medium
CN116665758B (en) Hard disk data testing method, device, system and medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20161226

Address after: 124000 Panjin, Liaoning Province, coastal economic zone in the coastal area of the crown building, building 3018, room 3, Liaoning

Patentee after: Dawning Information Systems (Liaoning) Co., Ltd.

Address before: 300384 Tianjin city Xiqing District Huayuan Industrial Zone (outer ring) Haitai Huake Street No. 15 1-3

Patentee before: Sugon Information Industry Co., Ltd.