CN104503909A - Method and device for testing IO (input/output) performance of magnetic disk - Google Patents

Method and device for testing IO (input/output) performance of magnetic disk Download PDF

Info

Publication number
CN104503909A
CN104503909A CN201410800189.2A CN201410800189A CN104503909A CN 104503909 A CN104503909 A CN 104503909A CN 201410800189 A CN201410800189 A CN 201410800189A CN 104503909 A CN104503909 A CN 104503909A
Authority
CN
China
Prior art keywords
disk
performance
request
data
test result
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
CN201410800189.2A
Other languages
Chinese (zh)
Inventor
翟院华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic 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 Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201410800189.2A priority Critical patent/CN104503909A/en
Publication of CN104503909A publication Critical patent/CN104503909A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method and a device for testing an IO (input/output) performance of a magnetic disk. The method includes the steps: acquiring test parameters, generating a corresponding IO request according to the test parameters, and executing the IO request on the magnetic disk to acquire system performance data in execution of the IO request; analyzing the system performance data to obtain a magnetic disk IO performance test result. The IO performance of the magnetic disk is tested by giving a read-write pressure to the magnetic disk, the magnetic disk IO performance test result is obtained by tracking, monitoring and analyzing the system performance data, and the IO performance of the magnetic disk can be known more comprehensively, specifically and directly to make the IO performance of the magnetic disk into a maximal use.

Description

A kind of method of testing of disk I/O performance and device
Technical field
The present invention relates to field of computer technology, be specifically related to a kind of method of testing and device of disk I/O performance.
Background technology
In computer systems, which, disk is distance CPU subsystem farthest, and the access of CPU to disk relates to mechanically actuated, such as, and rotating shaft and tracking etc.Therefore, the subsystem that disk is normally the slowest in computer system, be also the subsystem the most easily occurring performance bottleneck, disk I/O performance is the important parameter of user's extensive concern.
In existing disk I/O performance test, usually concentrate and give disk read-write pressure, obtain test result data.But, because above-mentioned test result data is concrete not, causes existing disk I/O performance test stream in surface, disk I/O performance cannot be reflected comprehensively.
Summary of the invention
The invention provides a kind of method of testing and device of disk I/O performance, to solve the defect that existing method of testing cannot reflect disk I/O performance comprehensively.
The invention provides a kind of method of testing of disk I/O performance, comprise the following steps:
Obtain test parameter, generate corresponding I/O request according to described test parameter, and described I/O request is performed to disk, obtain system performance information when performing described I/O request;
Described system performance information is analyzed, obtains the test result of disk I/O performance.
Alternatively, described described I/O request is performed to disk, is specially:
The queue of application I/O request, is put into described I/O request in described I/O request queue, submits described I/O request to, and the I/O request of having gathered in.
Alternatively, what described test parameter comprised in p-wire number of passes, queue depth and file size is one or more.
Alternatively, described system performance information comprises system resource data and system I/O data, described system resource data comprises CPU usage, memory usage and disk occupancy, described system I/O data comprise carry out reading and writing process title, process number and execution time, and the physical block number of read-write and block size.
Alternatively, described described system performance information to be analyzed, obtains the test result of disk I/O performance, be specially:
By analyzing the test parameter of described system resource data and described system I/O data and correspondence thereof, obtain disk performance respectively and p-wire number of passes, corresponding relation between queue depth and file size, and obtain the test result of disk I/O performance according to described corresponding relation, the test result of described disk I/O performance comprise disk I/O performance best time p-wire number of passes, queue depth and file size.
Present invention also offers a kind of proving installation of disk I/O performance, comprising:
Generation module, for obtaining test parameter, generates corresponding I/O request according to described test parameter;
Execution module, for performing described I/O request to disk;
Acquisition module, for obtaining system performance information when performing described I/O request;
Analysis module, for analyzing described system performance information, obtains the test result of disk I/O performance.
Alternatively, described execution module, specifically for the queue of application I/O request, is put into described I/O request in described I/O request queue, submits described I/O request to, and the I/O request of having gathered in.
Alternatively, what described test parameter comprised in p-wire number of passes, queue depth and file size is one or more.
Alternatively, described system performance information comprises system resource data and system I/O data, described system resource data comprises CPU usage, memory usage and disk occupancy, described system I/O data comprise carry out reading and writing process title, process number and execution time, and the physical block number of read-write and block size.
Alternatively, described analysis module, specifically for the test parameter by analyzing described system resource data and described system I/O data and correspondence thereof, obtain disk performance respectively and p-wire number of passes, corresponding relation between queue depth and file size, and obtain the test result of disk I/O performance according to described corresponding relation, the test result of described disk I/O performance comprise disk I/O performance best time p-wire number of passes, queue depth and file size.
The present invention is by giving disk read-write pressure, disk I/O is tested, and by tracing monitoring and analyzing system performance data, obtains the test result of disk I/O performance, the IO characteristic of disk can be understood more comprehensively, specifically, intuitively, maximize the use to make the IO performance of disk.
Accompanying drawing explanation
Fig. 1 is the method for testing process flow diagram of a kind of disk I/O performance in the embodiment of the present invention;
Fig. 2 is the monitored results schematic diagram of the blktrace monitoring software in the embodiment of the present invention;
Fig. 3 is the meaning of parameters schematic diagram of the blktrace monitoring software in the embodiment of the present invention;
Fig. 4 is the structural representation of the proving installation of a kind of disk I/O performance in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
It should be noted that, if do not conflicted, each feature in the embodiment of the present invention and embodiment can be combined with each other, all within protection scope of the present invention.In addition, although show logical order in flow charts, in some cases, can be different from the step shown or described by order execution herein.
Embodiments provide a kind of method of testing of disk I/O performance, as shown in Figure 1, comprise the following steps:
Step 101, obtains test parameter, generates corresponding I/O request according to test parameter, and performs I/O request to disk.
Particularly, after obtaining test parameter, the queue of application I/O request, is put into the I/O request generated according to test parameter in I/O request queue, submits I/O request to, and the I/O request of having gathered in.Wherein, what test parameter comprised in p-wire number of passes, queue depth and file size is one or more.
In the present embodiment, by running fio testing software and test instruction thereof, generating and I/O request is performed to disk.By the test parameter in adjustment test instruction, can generate and I/O request is performed to disk.Such as, operating system is redhat6.5, tested disk is adaptec 6805RAID card, tested disk is set to RAID0, and tested disk other functions except read-write cache are closed, the test instruction in fio testing software is: fio-filename=/dev/sdb-direct=1-rw=randrw-bs=8k-size 1G-numjobs=8-runtime=30-group_reporting-name=file.
Wherein, the implication of test parameter and correspondence thereof is as follows:
Step 102, obtains system performance information when performing I/O request.
Wherein, system performance information comprises system resource data and system I/O data, system resource data comprises CPU usage, memory usage and disk occupancy, system I/O data is the relevant information of I/O request queue, comprise carry out reading and writing process title, process number and execution time, and the physical block number of read-write and block size.
In the present embodiment, by running nmon monitoring software and monitored instruction thereof, obtain system resource data when performing I/O request; By running blktrace monitoring software and monitored instruction thereof, obtain system I/O data when performing I/O request.The working time of nmon monitoring software and blktrace monitoring software is all early than the working time of fio testing software.
Such as, the monitored instruction in nmon monitoring software is:
nmon-f-s 1-c 12000
Wherein ,-f represents output file, and the default name of output file is hostname_date_time.nmon;
-s represents screenshotss frequency, that is, preserve the frequency of data;
-c represents screenshotss number of times;
Debug file system setting instruction in blktrace monitoring software is:
mount-t debugfs debugfs/sys/kernel/debug
Monitored instruction is: blktrace-d/dev/sdb-o-|blkparse-i--o blkparse.out
Wherein, blktrace-d represents monitored device;
-o-represents the standard output that output to be spued to;
Blkparse-i-represents from standard input obtaining information;
-o represents the content record of parsing at blkparse.out.
Step 103, analyzes system performance information, obtains the test result of disk I/O performance.
Particularly, by the test parameter of analytic system resource data and system I/O data and correspondence thereof, obtain disk performance respectively and p-wire number of passes, corresponding relation between queue depth and file size, and obtain the test result of disk I/O performance according to this corresponding relation.Wherein, the test result of disk I/O performance comprise disk I/O performance best time p-wire number of passes, queue depth and file size.
In the present embodiment, by running nmon analytical tool, resolve the .nmon that nmon monitoring software generates, obtain corresponding excel document, this excel document comprises the monitor state of CPU, the IO of disk read-write and bandwidth.In addition, the monitored results of blktrace monitoring software, comprises disk to the final disposal route when disposal route of each I/O request and rule, as shown in Figure 2; Corresponding meaning of parameters, as shown in Figure 3.
The embodiment of the present invention is by giving disk read-write pressure, disk I/O is tested, and by tracing monitoring and analyzing system performance data, obtain the test result of disk I/O performance, the IO characteristic of disk can be understood more comprehensively, specifically, intuitively, maximize the use to make the IO performance of disk.
Based on the method for testing of above-mentioned disk I/O performance, the embodiment of the present invention additionally provides a kind of proving installation of disk I/O performance, as shown in Figure 4, comprising:
Generation module 410, for obtaining test parameter, generates corresponding I/O request according to described test parameter.
Wherein, what test parameter comprised in p-wire number of passes, queue depth and file size is one or more.
Execution module 420, for performing described I/O request to disk;
Particularly, execution module 420, specifically for the queue of application I/O request, is put into described I/O request in described I/O request queue, submits described I/O request to, and the I/O request of having gathered in.
Acquisition module 430, for obtaining system performance information when performing described I/O request.
Wherein, system performance information comprises system resource data and system I/O data, system resource data comprises CPU usage, memory usage and disk occupancy, system I/O data comprise carry out reading and writing process title, process number and execution time, and the physical block number of read-write and block size.
Analysis module 440, for analyzing described system performance information, obtains the test result of disk I/O performance.
Particularly, analysis module 440, specifically for the test parameter by analyzing described system resource data and described system I/O data and correspondence thereof, obtain disk performance respectively and p-wire number of passes, corresponding relation between queue depth and file size, and obtain the test result of disk I/O performance according to described corresponding relation, the test result of described disk I/O performance comprise disk I/O performance best time p-wire number of passes, queue depth and file size.
The embodiment of the present invention is by giving disk read-write pressure, disk I/O is tested, and by tracing monitoring and analyzing system performance data, obtain the test result of disk I/O performance, the IO characteristic of disk can be understood more comprehensively, specifically, intuitively, maximize the use to make the IO performance of disk.
In conjunction with the software module that the step in the method that embodiment disclosed herein describes can directly use hardware, processor to perform, or the combination of the two is implemented.Software module can be placed in the storage medium of other form any known in random access memory (RAM), internal memory, ROM (read-only memory) (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection domain of claim.

Claims (10)

1. a method of testing for disk I/O performance, is characterized in that, comprises the following steps:
Obtain test parameter, generate corresponding I/O request according to described test parameter, and described I/O request is performed to disk, obtain system performance information when performing described I/O request;
Described system performance information is analyzed, obtains the test result of disk I/O performance.
2. the method for claim 1, is characterized in that, describedly performs described I/O request to disk, is specially:
The queue of application I/O request, is put into described I/O request in described I/O request queue, submits described I/O request to, and the I/O request of having gathered in.
3. the method for claim 1, is characterized in that, it is one or more that described test parameter comprises in p-wire number of passes, queue depth and file size.
4. the method for claim 1, it is characterized in that, described system performance information comprises system resource data and system I/O data, described system resource data comprises CPU usage, memory usage and disk occupancy, described system I/O data comprise carry out reading and writing process title, process number and execution time, and the physical block number of read-write and block size.
5. method as claimed in claim 4, is characterized in that, describedly analyzes described system performance information, obtains the test result of disk I/O performance, is specially:
By analyzing the test parameter of described system resource data and described system I/O data and correspondence thereof, obtain disk performance respectively and p-wire number of passes, corresponding relation between queue depth and file size, and obtain the test result of disk I/O performance according to described corresponding relation, the test result of described disk I/O performance comprise disk I/O performance best time p-wire number of passes, queue depth and file size.
6. a proving installation for disk I/O performance, is characterized in that, comprising:
Generation module, for obtaining test parameter, generates corresponding I/O request according to described test parameter;
Execution module, for performing described I/O request to disk;
Acquisition module, for obtaining system performance information when performing described I/O request;
Analysis module, for analyzing described system performance information, obtains the test result of disk I/O performance.
7. device as claimed in claim 6, is characterized in that,
Described execution module, specifically for the queue of application I/O request, is put into described I/O request in described I/O request queue, submits described I/O request to, and the I/O request of having gathered in.
8. device as claimed in claim 6, is characterized in that, it is one or more that described test parameter comprises in p-wire number of passes, queue depth and file size.
9. device as claimed in claim 6, it is characterized in that, described system performance information comprises system resource data and system I/O data, described system resource data comprises CPU usage, memory usage and disk occupancy, described system I/O data comprise carry out reading and writing process title, process number and execution time, and the physical block number of read-write and block size.
10. device as claimed in claim 9, is characterized in that,
Described analysis module, specifically for the test parameter by analyzing described system resource data and described system I/O data and correspondence thereof, obtain disk performance respectively and p-wire number of passes, corresponding relation between queue depth and file size, and obtain the test result of disk I/O performance according to described corresponding relation, the test result of described disk I/O performance comprise disk I/O performance best time p-wire number of passes, queue depth and file size.
CN201410800189.2A 2014-12-18 2014-12-18 Method and device for testing IO (input/output) performance of magnetic disk Pending CN104503909A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410800189.2A CN104503909A (en) 2014-12-18 2014-12-18 Method and device for testing IO (input/output) performance of magnetic disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410800189.2A CN104503909A (en) 2014-12-18 2014-12-18 Method and device for testing IO (input/output) performance of magnetic disk

Publications (1)

Publication Number Publication Date
CN104503909A true CN104503909A (en) 2015-04-08

Family

ID=52945308

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410800189.2A Pending CN104503909A (en) 2014-12-18 2014-12-18 Method and device for testing IO (input/output) performance of magnetic disk

Country Status (1)

Country Link
CN (1) CN104503909A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104850479A (en) * 2015-05-15 2015-08-19 浪潮电子信息产业股份有限公司 FIO-based hardware automatic testing method
CN106021045A (en) * 2016-05-11 2016-10-12 深圳市国鑫恒宇科技有限公司 Method for testing IO (input/output) performance of hard disk of server under linux system
CN108304306A (en) * 2018-01-17 2018-07-20 郑州云海信息技术有限公司 A kind of magnetic disc i/o performance fault method for positioning analyzing based on blktrace
CN109918252A (en) * 2019-03-29 2019-06-21 苏州浪潮智能科技有限公司 Nonvolatile memory performance test methods, system and electronic equipment and storage medium
CN110413227A (en) * 2019-06-22 2019-11-05 华中科技大学 A kind of remaining life on-line prediction method and system of hard disc apparatus
CN110908798A (en) * 2019-11-08 2020-03-24 丁剑明 Multi-process cooperative network traffic analysis method and device
CN113608682A (en) * 2021-06-30 2021-11-05 济南浪潮数据技术有限公司 Intelligent flow control method and system based on HDD disk pressure

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6490544B1 (en) * 2000-02-04 2002-12-03 Hewlett-Packard Company System for testing a multi-tasking computing device
CN1588892A (en) * 2004-09-17 2005-03-02 华中科技大学 Complex detecting system for storage server property
CN102033796A (en) * 2009-09-25 2011-04-27 中国移动通信集团公司 Testing system and method
CN102393829A (en) * 2011-10-31 2012-03-28 华南理工大学 Disk I/O (Input/Output) test system oriented to embedded system
CN102929667A (en) * 2012-10-24 2013-02-13 曙光信息产业(北京)有限公司 Method for optimizing hadoop cluster performance
CN103699474A (en) * 2012-09-27 2014-04-02 鸿富锦精密工业(深圳)有限公司 Storage equipment monitoring system and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6490544B1 (en) * 2000-02-04 2002-12-03 Hewlett-Packard Company System for testing a multi-tasking computing device
CN1588892A (en) * 2004-09-17 2005-03-02 华中科技大学 Complex detecting system for storage server property
CN102033796A (en) * 2009-09-25 2011-04-27 中国移动通信集团公司 Testing system and method
CN102393829A (en) * 2011-10-31 2012-03-28 华南理工大学 Disk I/O (Input/Output) test system oriented to embedded system
CN103699474A (en) * 2012-09-27 2014-04-02 鸿富锦精密工业(深圳)有限公司 Storage equipment monitoring system and method
CN102929667A (en) * 2012-10-24 2013-02-13 曙光信息产业(北京)有限公司 Method for optimizing hadoop cluster performance

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104850479A (en) * 2015-05-15 2015-08-19 浪潮电子信息产业股份有限公司 FIO-based hardware automatic testing method
CN106021045A (en) * 2016-05-11 2016-10-12 深圳市国鑫恒宇科技有限公司 Method for testing IO (input/output) performance of hard disk of server under linux system
CN106021045B (en) * 2016-05-11 2019-07-23 深圳市同泰怡信息技术有限公司 The test method of server hard disc IO performance under a kind of Linux system
CN108304306A (en) * 2018-01-17 2018-07-20 郑州云海信息技术有限公司 A kind of magnetic disc i/o performance fault method for positioning analyzing based on blktrace
CN109918252A (en) * 2019-03-29 2019-06-21 苏州浪潮智能科技有限公司 Nonvolatile memory performance test methods, system and electronic equipment and storage medium
CN110413227A (en) * 2019-06-22 2019-11-05 华中科技大学 A kind of remaining life on-line prediction method and system of hard disc apparatus
CN110908798A (en) * 2019-11-08 2020-03-24 丁剑明 Multi-process cooperative network traffic analysis method and device
CN113608682A (en) * 2021-06-30 2021-11-05 济南浪潮数据技术有限公司 Intelligent flow control method and system based on HDD disk pressure
CN113608682B (en) * 2021-06-30 2023-12-22 济南浪潮数据技术有限公司 Intelligent flow control method and system based on HDD disk pressure

Similar Documents

Publication Publication Date Title
CN104503909A (en) Method and device for testing IO (input/output) performance of magnetic disk
US7747986B2 (en) Generating static performance modeling factors in a deployed system
Jeong et al. Androstep: Android storage performance analysis tool
Ahmad Easy and efficient disk I/O workload characterization in VMware ESX server
US20140359624A1 (en) Determining a completion time of a job in a distributed network environment
US9965631B2 (en) Apparatus and method for analyzing malicious code in multi-core environment using a program flow tracer
He et al. Reducing file system tail latencies with chopper
Pagani et al. Introducing the temporal dimension to memory forensics
CN104317684A (en) Method for synchronously automatic testing of bandwidth and transmission rate of multiple USB (Universal Serial Bus) interfaces
CN114528792A (en) Chip verification method and device, electronic equipment and storage medium
CN105183604A (en) Server performance testing method and system
Azmandian et al. Workload characterization at the virtualization layer
CN114386045B (en) Web application program vulnerability detection method, device and storage medium
US10606601B2 (en) Method, system and non-transitory computer-readable storage medium for analyzing access to storage device
US11151013B2 (en) Systems and methods for performance evaluation of input/output (I/O) intensive enterprise applications
US10171341B2 (en) Software defined storage stack problem diagnosis and optimization
WO2015198600A1 (en) Analysis device, analysis method, and storage medium in which analysis program is recorded
Jayakumar et al. INTERNATIONAL JOURNAL OF COMPUTER ENGINEERING & TECHNOLOGY (IJCET)
Mendez et al. Analyzing the parallel I/O severity of MPI applications
US8752026B2 (en) Efficient code instrumentation
US11074155B2 (en) Generating representative microbenchmarks
Cesati et al. A memory access detection methodology for accurate workload characterization
CN109460332B (en) SWraid detection method and detection system based on AEP memory technology
CN106708585A (en) Method and system for grabbing hard disk SMART log through RAID card under Linux system
CN105102083A (en) Data processing method, apparatus and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150408