CN102999504A - Hard disk testing data analyzing method - Google Patents

Hard disk testing data analyzing method Download PDF

Info

Publication number
CN102999504A
CN102999504A CN2011102689316A CN201110268931A CN102999504A CN 102999504 A CN102999504 A CN 102999504A CN 2011102689316 A CN2011102689316 A CN 2011102689316A CN 201110268931 A CN201110268931 A CN 201110268931A CN 102999504 A CN102999504 A CN 102999504A
Authority
CN
China
Prior art keywords
hard disk
test
value
setting
record
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
CN2011102689316A
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.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision 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 Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CN2011102689316A priority Critical patent/CN102999504A/en
Publication of CN102999504A publication Critical patent/CN102999504A/en
Pending legal-status Critical Current

Links

Images

Abstract

A hard disk testing data analyzing method is used for analyzing recorded files obtained by testing efficiency of hard disks in a server through a testing program and comprises the following steps: setting a directory path where the recorded files tested in grouping mode locate; setting standard values allowed by the hard disks with different interface types; setting key words, sequentially reading values corresponding to the key words from the first group of testing recorded files of the hard disks according to the set key words, and using the values as first recorded values; sequentially reading the values corresponding to the key words from the second group of testing recorded files of the hard disks according to the set key words, and using the values as second recorded values; and using the specific value of the second recorded values and the first recorded values as a third recorded value. The hard disk testing data analyzing method can fast, conveniently and automatically analyze the efficiency states of the hard disks from the recorded files.

Description

The hard disk test data analysing method
Technical field
The present invention relates to a kind of hard disk test data analysing method.
Background technology
Therefore nearly 20 even more of hard disk quantity in the existing server, in by the effect test of testing software to each hard disk of server, can generate tens to a hundreds of log file usually.Yet, if manually from these log files, analyze the usefulness of each hard disk, the manpower that need cost a lot of money, and in the process of analytic record file, also may cause the judgement of each hard disk usefulness because of artificial error inaccurate.So usefulness state how quick, convenient, automatically put, calculate and analyze each hard disk in order from log file has become the industry urgent problem.
Summary of the invention
In view of above content, be necessary to provide a kind of can be fast, convenient, automatically arrangement from log file, calculate and analyze the hard disk test data analysing method of the usefulness state of each hard disk.
A kind of hard disk test data analysing method, be used for analyzing by a test procedure usefulness of hard disk in one server being tested resulting log file, each hard disk all need carry out first and second group test in this server, and this hard disk test data analysing method comprises the steps:
First sets step: the directory path of setting the log file place of grouping test;
Second sets step: the standard value of setting the hard disk permission of different interface type;
The first obtaining step: set key word, from first group of test record file of this hard disk, read successively value with respect to this key word according to the key word of this setting, and should be worth as one first record value;
The second obtaining step: from second group of test record file of this hard disk, read successively value with respect to this key word according to the key word of this setting, and should be worth as one second record value;
The result generates step: with the ratio of this second record value and the first record value as one the 3rd record value;
Determining step: judge the standard value whether the 3rd record value is set less than this interface type hard disk; And
Identification of steps: when standard value that the 3rd record value is set less than this interface type hard disk, identify the 3rd record value.
Above-mentioned hard disk test data analysing method obtains respectively in first group of log file of this hard disk and the second group of log file value with respect to this key word by the key word of setting, and the value that will obtain from this second log file and the first log file is respectively as the second record value and the first record value, with the ratio of this second record value and the first record value as the 3rd record value, the 3rd record value is the usefulness state that reflects this hard disk, so can be fast, convenient, automatically arrangement from log file, calculate and analyze the usefulness state of each hard disk.
Description of drawings
Fig. 1 is the structural drawing that hard disk test data analysing method of the present invention is applied to a server.
Fig. 2 is the process flow diagram of the preferred embodiments of hard disk test data analysing method of the present invention.
The main element symbol description
Server 10
Catalogue 20
Following embodiment further specifies the present invention in connection with above-mentioned accompanying drawing.
Embodiment
Below in conjunction with accompanying drawing and preferred embodiments the present invention is described in further detail:
Please refer to Fig. 1, hard disk test data analysing method of the present invention is used for analyzing by a test procedure usefulness of all hard disks (hard disk 1-hard disk n) in one server 10 being tested resulting log file, and this log file is stored in a catalogue 20 times.This test procedure can be the IOMeter test procedure, and this IOMeter test procedure is a) software of testing hard disk read-write usefulness.
The effect test that hard disk is carried out mainly is to test for usefulness such as its reading and writing data ability, handling capacities.The impact that when a plurality of hard disks are worked simultaneously in the server 10, produces because of internal factor (when turning round such as hard disk vibrative influence each other or rotate the whirling vibration (Rotational Vibration) that produces for reducing the fan of server 10 temperature) or external factor (vibration source external such as server 10), this server 10 may produce whirling vibration (Rotational Vibration), may reduce the reading and writing data ability of all hard disks in this server 10 this moment, thereby have influence on the overall efficiency of this server 10.Therefore when hard disk is tested, generally need to carry out on hard disk two groups of tests of friction impact and whirling vibration.
Please refer to Fig. 2, the preferred embodiments of this hard disk test data analysing method comprises the steps:
Step S1, the directory path at the log file place of setting grouping test.
In the present embodiment, in order to measure accurately the usefulness of each hard disk in this server 10, this test procedure carries out two groups of tests of friction impact and whirling vibration on all hard disks in this server 10.
As each hard disk being carried out friction impact test, namely only only has this hard disk work in this server 10, test the reading and writing data ability of this hard disk by this testing software this moment, and the log file of this test program generation carried out being stored in after the rename in the first sub-directory (such as the Baseline sub-directory) under this catalogue 20 in a certain order, the file designation of testing such as the impact on hard disk 1 friction is Bay0, and the file designation that impact is tested on hard disk 2 frictions is Bay1.
As all hard disks in this server 10 are rotated vibration-testing, namely when other hard disks are all worked this hard disk being carried out the reading and writing data ability tests, the log file that this test procedure is obtained carries out being stored in after the rename in the second sub-directory (such as the RV sub-directory) under this catalogue 20 in a certain order, be Bay0-1 such as the file designation to hard disk 1 whirling vibration test, the file designation of hard disk 2 whirling vibrations test is Bay1-1.When the usefulness of hard disk is analyzed, need learn simultaneously the data of this hard disk friction impact and whirling vibration test.
This testing software is as shown in the table at the form of the file of friction impact and whirling vibration test generation on hard disk, and this table is the part of test record file content.
Target Type Target Name IOps Read IOps Write IOps
MANAGER PC-4CA67H 165.4697 0 165.4697
WORKER Worker 1 165.4697 0 165.4697
DISK PHYSICALDRIVE:1 165.4697 0 165.4697
According to the test philosophy of IOMeter as can be known, before the IO effect test to hard disk, the software configuration before needing test IOMeter." Target Type " in the upper table is the target type of test, " Target Name " is the target designation of test, " IOps " is expressed as the operand of finishing the average per second of test, " Read IOps " is expressed as the read operation number of finishing the average per second of test, and " Write IOps " is expressed as the write operation number of finishing the average per second of test.MANAGER in the upper table namely represents the client name of an IOMeter, such as " PC-4CA67H " in the table, WORKER in the table represents the title of a kind of pressure simulation test that hard disk is selected, and DISK then represents the title of the driver (hard disk) tested.In sum, this table has represented that the driver to " PHYSICALDRIVE:1 " by name on the client of by name " PC-4CA67H " carries out 100% write operation, 0% read operation, wherein, the operand of finishing the average per second of test is 165.4697, the read operation number of finishing the average per second of test is 0, and the write operation number of finishing the average per second of test is 165.4697.
Step S2, setting need be done the hard disk quantity of effectiveness analysis.
After finishing the effect test of all hard disks in this server 10, if in the time of only need analyzing the part hard disk that test is finished, then can set a hard disk quantity.Certainly, this step also can be omitted, and namely when not having setting harddisk quantity, all hard disks of then test being finished all carry out effectiveness analysis.
Step S3, the standard value that the hard disk of setting different interface type allows.
The hard disk quantity that each server 10 comprises is not necessarily the same, and the interface type of each hard disk is also not necessarily consistent, be SAS(Serial Attached SCSI such as the hard disk that has, Serial Attached SCSI (SAS)) interface type, the hard disk that has then is SATA(Serial ATA, serial ports hard disk) interface type.Present embodiment is to analyze and judge whether the usefulness of each hard disk meets the requirements according to the interface type of hard disk.
Step S4 sets key word, reads successively value with respect to this key word as one first record value from first group of test record file of this hard disk according to the key word of this setting.
First group of log file that this step is related, the log file that is namely generated when the friction impact is tested by each hard disk forms.First group of test record file such as hard disk 1 is Bay0.In order accurately to obtain the reading and writing data ability of each hard disk, the key word in the present embodiment is defined as the per second operand that this hard disk is finished test, is " DISK " of the 4th row in the table and " IOps " of the 3rd row.Then can obtain this first record value according to this key word, such as 165.4697 in the table, the average per second operand (" IOps ") that the hard disk (" DISK ") of this value representation " PHYSICALDRIVE:1 " by name is finished test is 165.4697.
Step S5 reads value with respect to this key word as one second record value successively according to the key word of this setting from second group of test record file of this hard disk.
The second log file that this step relates to namely is comprised of the log file that each hard disk generates in whirling vibration test, is Bay0-1 such as second group of test record file of hard disk 1, and the form of this log file is consistent with the form of above-mentioned table 1.The setting of this key word is consistent with step S4, as above " DISK " of the 4th row and the 3rd " IOps " that is listed as in the table.This second record value is the numerical value of corresponding this key word.Because be subjected to the impact of whirling vibration, the reading and writing data ability of each hard disk reduces, thereby the size of this second record value is inevitable less than this first record value.
Step S6, as one the 3rd record value, namely the usefulness of this hard disk is to embody as the 3rd record value by the ratio with this second record value and the first record value with the ratio of this second and first record value.
Whether step S7, the 3rd record value of judging this hard disk be less than the standard value of interface type under it, if the 3rd record value less than the standard value of this interface type hard disk, enters step S8; Otherwise this flow process finishes.
Whether the usefulness of judging this hard disk meets the requirements, what namely the size between the standard value of interface type was determined under the 3rd record value by this hard disk relatively and this hard disk.When the 3rd record value less than this hard disk under during the standard value of interface type, show that namely the usefulness of this hard disk can not meet the demands, enter step S8; Otherwise, process ends.
Step S8 identifies the 3rd record value.
Identify the 3rd record value, be designated redness such as the background colour with the 3rd record value, so can identify easily undesirable hard disk, thereby be that the usefulness situation of analyzing each hard disk of this server 10 facilitates.
Above-mentioned hard disk test data analysing method obtains respectively in first group of log file of this hard disk and the second group of log file value with respect to this key word by the key word of setting, the value that to obtain from this second log file and the first log file is respectively as the second record value and the first record value, and with the ratio of this second record value and the first record value as the 3rd record value.Afterwards, the magnitude relationship between the standard value of interface type under the 3rd record value of this hard disk and this hard disk relatively, when the ratio of this three record value during less than this standard value, identify the 3rd record value, so can make things convenient for, intuitively must identify to identify this hard disk according to this and whether meet the requirements.

Claims (4)

1. hard disk test data analysing method, be used for analyzing by a test procedure usefulness of hard disk in one server being tested resulting log file, each hard disk all need carry out first and second group test in this server, and this hard disk test data analysing method comprises the steps:
First sets step: the directory path of setting the log file place of grouping test;
Second sets step: the standard value of setting the hard disk permission of different interface type;
The first obtaining step: set key word, from first group of test record file of this hard disk, read successively value with respect to this key word according to the key word of this setting, and should be worth as one first record value;
The second obtaining step: from second group of test record file of this hard disk, read successively value with respect to this key word according to the key word of this setting, and should be worth as one second record value;
The result generates step: with the ratio of this second record value and the first record value as one the 3rd record value;
Determining step: judge the standard value whether the 3rd record value is set less than this interface type hard disk; And
Identification of steps: when standard value that the 3rd record value is set less than this interface type hard disk, identify the 3rd record value.
2. hard disk test data analysing method as claimed in claim 1 is characterized in that: first sets step and second sets and also comprises one the 3rd setting step between the step:
The 3rd sets step: setting need be done the hard disk quantity of effectiveness analysis.
3. hard disk test data analysing method as claimed in claim 1 is characterized in that: this test procedure is the IO testing software of an IOMeter by name.
4. hard disk test data analysing method as claimed in claim 1 is characterized in that: this first group test is friction impact test, and this second group is that whirling vibration is tested.
CN2011102689316A 2011-09-13 2011-09-13 Hard disk testing data analyzing method Pending CN102999504A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011102689316A CN102999504A (en) 2011-09-13 2011-09-13 Hard disk testing data analyzing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011102689316A CN102999504A (en) 2011-09-13 2011-09-13 Hard disk testing data analyzing method

Publications (1)

Publication Number Publication Date
CN102999504A true CN102999504A (en) 2013-03-27

Family

ID=47928081

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011102689316A Pending CN102999504A (en) 2011-09-13 2011-09-13 Hard disk testing data analyzing method

Country Status (1)

Country Link
CN (1) CN102999504A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105095031A (en) * 2015-06-30 2015-11-25 北京奇虎科技有限公司 Method and device for hard disk diagnosis
CN105893230A (en) * 2016-04-05 2016-08-24 浪潮电子信息产业股份有限公司 Method and device for detecting IOPS performance of hard disks
CN106021047A (en) * 2016-05-13 2016-10-12 浪潮电子信息产业股份有限公司 Method and apparatus for processing hard disk test data
CN107885628A (en) * 2017-11-13 2018-04-06 郑州云海信息技术有限公司 A kind of method of testing, device and the equipment of magnetic disc i/o performance
CN108052441A (en) * 2017-12-29 2018-05-18 郑州云海信息技术有限公司 A kind of test method, system, device and the storage medium of hard disk performance level

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101201778A (en) * 2006-12-14 2008-06-18 英业达股份有限公司 Method for testing hard disk with expandable firmware interface
CN101706745A (en) * 2009-11-30 2010-05-12 英业达股份有限公司 Method for testing storage equipment of mass storage system
CN101872320A (en) * 2010-04-16 2010-10-27 浪潮电子信息产业股份有限公司 Method for reliability, performance test and statistic of SSD(Solid State Disk)

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101201778A (en) * 2006-12-14 2008-06-18 英业达股份有限公司 Method for testing hard disk with expandable firmware interface
CN101706745A (en) * 2009-11-30 2010-05-12 英业达股份有限公司 Method for testing storage equipment of mass storage system
CN101872320A (en) * 2010-04-16 2010-10-27 浪潮电子信息产业股份有限公司 Method for reliability, performance test and statistic of SSD(Solid State Disk)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105095031A (en) * 2015-06-30 2015-11-25 北京奇虎科技有限公司 Method and device for hard disk diagnosis
CN105095031B (en) * 2015-06-30 2019-03-08 北京奇虎科技有限公司 Hard disk diagnostic method and device
CN105893230A (en) * 2016-04-05 2016-08-24 浪潮电子信息产业股份有限公司 Method and device for detecting IOPS performance of hard disks
CN106021047A (en) * 2016-05-13 2016-10-12 浪潮电子信息产业股份有限公司 Method and apparatus for processing hard disk test data
CN107885628A (en) * 2017-11-13 2018-04-06 郑州云海信息技术有限公司 A kind of method of testing, device and the equipment of magnetic disc i/o performance
CN108052441A (en) * 2017-12-29 2018-05-18 郑州云海信息技术有限公司 A kind of test method, system, device and the storage medium of hard disk performance level

Similar Documents

Publication Publication Date Title
CN108133732B (en) Performance test method, device and equipment of flash memory chip and storage medium
CN102568522B (en) The method of testing of hard disk performance and device
CN102999504A (en) Hard disk testing data analyzing method
CN103578568A (en) Method and apparatus for testing performances of solid state disks
EP2686771B1 (en) Usability testing
CN102004693A (en) System performance test method and device
CN103473158A (en) Disk pressure testing method for Linux server
CN105893230A (en) Method and device for detecting IOPS performance of hard disks
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
CA2811617C (en) Commit sensitive tests
TWI461906B (en) Method for analyzing the data of hard discs
CN108563540A (en) Server and red flag Compatibility of Operating System test method, system and storage medium
US8850407B2 (en) Test script generation
CN110569152A (en) solid state disk performance test method and device
CN105843716A (en) IO function test method based on MLTT (The Medusa Lab Test Tool Suite)
CN108038031A (en) A kind of method and device for monitoring hard disk presence in real time
CN110046069A (en) A kind of method, apparatus, equipment and the readable storage medium storing program for executing of storage performance test
CN108052441A (en) A kind of test method, system, device and the storage medium of hard disk performance level
US20130036334A1 (en) Computing device and method for testing serial attached scsi ports of servers
US11169907B2 (en) Web service test and analysis platform
CN116682479A (en) Method and system for testing enterprise-level solid state disk time delay index
CN101067562A (en) Method, code, and apparatus for logging test results
CN101706745A (en) Method for testing storage equipment of mass storage system
CN114706719A (en) Disk testing method and device based on FIO testing tool

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130327