CN103279408A - RAID (redundant array of inexpensive disk) performance testing method - Google Patents

RAID (redundant array of inexpensive disk) performance testing method Download PDF

Info

Publication number
CN103279408A
CN103279408A CN201310247397XA CN201310247397A CN103279408A CN 103279408 A CN103279408 A CN 103279408A CN 201310247397X A CN201310247397X A CN 201310247397XA CN 201310247397 A CN201310247397 A CN 201310247397A CN 103279408 A CN103279408 A CN 103279408A
Authority
CN
China
Prior art keywords
parameter
raid
test
read
file
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.)
Granted
Application number
CN201310247397XA
Other languages
Chinese (zh)
Other versions
CN103279408B (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 Industry Beijing Co Ltd
Dawning Information Industry Co Ltd
Original Assignee
Dawning Information Industry Beijing 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 Beijing Co Ltd filed Critical Dawning Information Industry Beijing Co Ltd
Priority to CN201310247397.XA priority Critical patent/CN103279408B/en
Publication of CN103279408A publication Critical patent/CN103279408A/en
Application granted granted Critical
Publication of CN103279408B publication Critical patent/CN103279408B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention provides an RAID (redundant array of inexpensive disk) performance testing method. The RAID performance testing method includes: reading a breakpoint position from a result file and reading a first parameter and a plurality of second parameters from a configuration file according to the breakpoint position; creating an RAID according to the first parameter; and testing read-write speed of the created RAID according to the second parameters. By the RAID performance testing method, massive date are not needed to organize in advance, labor intensity of testers is reduced through the result file and the configuration file, RAID speed can be automatically tested, test time is shortened and testing efficiency is improved.

Description

The method of testing of raid-array RAID performance
Technical field
Relate generally to field of computer technology of the present invention more specifically, relates to a kind of method of testing of raid-array RAID performance.
Background technology
Storage system is the important component part of computer system, especially under the situation of current mass data, storage system is had higher requirement.RAID(Redundant Arrays of Inexpensive Disks, raid-array) is different places () the method therefore, redundantly that identical data is stored in a plurality of hard disks.By data being placed on a plurality of hard disks, the mode of input-output operation symmetrical is overlapping, improved performance.Because a plurality of hard disks have increased the mean time between failures (MTBF), storing redundant data has also increased fault-tolerantly, so RAID is one of requisite technology in the storage system, is the key that guarantees that data can the high-speed secure storage.And be one of indispensable step in systems development process to the test of RAID performance
Test is important component part in the test to the readwrite performance of RAID in linux system, in the prior art, a kind of method of testing is to organize a large amount of different pieces of informations in advance, by software these data are write in the disk, and test its writing rate, using the same method tests out its reading rate, changes parameter then and repeats test, obtains the test result under different parameters.This method of testing can be carried out readwrite tests to RAID, but need organize lot of data in advance, has reduced testing efficiency.
Another kind of method of testing of the prior art is directly to utilize the dd order in the linux system to test, and can carry out direct readwrite tests and provide the read-write speed of RAID RAID, and the average of calculating repeatedly test at last obtains test result.This method of testing can be organized mass data in advance, but each test all needs the tester that different parameters is set, in large-scale storage system test, the time that each test continues often needed several days even a few week, can increase tester's labour intensity like this; Secondly, under the situation such as system's breakpoint, test meeting accident stops, and when restarting test procedure, need restart to test, and can reduce testing efficiency like this, causes test period elongated, thereby influences project progress.In addition, to some test event that needs frequent restarting systems, need the tester must manually boot testing tool at every turn.Thereby existing testing tool can not be realized automatic test completely.
Summary of the invention
The defective big at tester's intensity in the prior art, that testing efficiency is low etc. the present invention proposes the method for testing of the raid-array RAID performance that can address the aforementioned drawbacks.
According to embodiments of the invention, a kind of method of testing of raid-array RAID performance is provided, comprising: from destination file, read breakpoint location and from configuration file, read first parameter and a plurality of second parameter according to breakpoint location; Create RAID according to first parameter; And according to a plurality of second parameters the RAID that is created is read and write rate test.
Preferably, the destination file content comprises test result and test position.
Write the Chunk parameter of size of data when preferably, first parameter is for establishment RAID.
Preferably, a plurality of second parameters comprise bs parameter and count parameter, and wherein, the bs parameter is that size and the count parameter of each writing data blocks in the dd order is the total block data of writing data blocks in the dd order.
Preferably, from destination file, read breakpoint location and further comprise according to breakpoint location reads first parameter and a plurality of second parameters from configuration file step: read the test position in the destination file and determine breakpoint location according to test position; And from configuration file, read Chunk parameter, bs parameter and count parameter according to breakpoint location.
Preferably, according to a plurality of second parameters the step that the RAID that is created reads and writes rate test is further comprised: after creating RAID, RAID is read and write data and read and write rate test according to bs parameter and count parameter.
Preferably, method of testing further comprises: when according to a plurality of second parameters the RAID that is created being read and write rate test, the test run situation is documented in the journal file; And according to a plurality of second parameters the RAID that is created is being read and write after rate test finishes, test result and test position are stored in the destination file, and proceed to test till all first parameters in configuration file and a plurality of second parameter all run through according to ensuing first parameter in the configuration file and a plurality of second parameter.
Preferably, configuration file is text or XML file.
Preferably, have under the low-quality disk situation, RAID is being read and write before the rate test, the simulation low-quality disk.
Utilize technical scheme of the present invention can overcome the defective of prior art, write configuration file in advance by the various parameters that will test, in test process, do not need the tester that these tests are set in person, alleviated tester's labour intensity thus, can realize RAID read-write speed is tested automatically; The test position and the test result that test are stored in the destination file at every turn, thereby under the situation of test accidental interruption, can find breakpoint location, thereby proceed test, therefore significantly improved testing efficiency.
Other features and advantages of the present invention will be set forth in the following description, and, partly from instructions, become apparent, perhaps understand by implementing the present invention.Purpose of the present invention and other advantages can realize and obtain by specifically noted structure in the instructions of writing, claims and accompanying drawing.
Description of drawings
Below in conjunction with accompanying drawing the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein only is used for description and interpretation the present invention, and be not used in restriction the present invention.In the accompanying drawings:
Fig. 1 is the overview flow chart of the method for testing of RAID performance according to an embodiment of the invention; And
Fig. 2 is the method for testing particular flow sheet of RAID performance according to an embodiment of the invention;
Embodiment
Below in conjunction with accompanying drawing the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein only is used for description and interpretation the present invention, and be not used in restriction the present invention.
Fig. 1 is the overview flow chart of the method for testing of RAID performance according to an embodiment of the invention.The invention provides a kind of method of testing 100 of raid-array RAID performance, in step 102, from destination file, read breakpoint location and from configuration file, read first parameter and a plurality of second parameter according to breakpoint location.Wherein, the destination file content comprises test result and test position.Under the situation such as system cut-off etc., test is unexpected stop after, in the time of need proceeding to test to RAID, at first restart server system, when server system starts, start this test procedure.Test procedure is the breakpoint location during the read test accidental interruption from destination file, then according to this breakpoint location reading pre-stored first parameter and a plurality of second parameter therein from configuration file (that is Config file).
In step 104, create RAID according to first parameter.Particularly, first parameter is the Chunk parameter that writes size of data when creating RAID, that is, when creating RAID, need be that the data of Chunk parameter write disk with size.
In step 106, according to a plurality of second parameters the RAID that is created is read and write rate test.Particularly, a plurality of second parameters comprise bs parameter and count parameter, and wherein, the bs parameter is that size and the count parameter of each writing data blocks in the dd order is the total block data of writing data blocks in the dd order.The dd order is a very useful order under the Linux/UNIX, and effect is with a file of block copy of specifying size, and carries out the conversion of appointment in copy.
For example,
dd?if=/dev/zero?bs=1024count=1000000of=/root/1Gb.file
dd?if=/root/1Gb.file?bs=64k|dd?of=/dev/null
By the execution time of above two order outputs, can calculate the reading and writing speed of hard disk.
Utilize the method for testing of the RAID performance of embodiments of the invention, after starting test procedure, read destination file and determine breakpoint location and read first parameter and second parameter in the configuration file according to breakpoint location, create RAID according to first parameter then and according to the read-write speed of a plurality of second calculation of parameter hard disks.Therefore, utilize the method for testing of the RAID performance of embodiments of the invention, do not needing the tester to carry out under the situation of parameter setting at every turn, the RAID that creates is carried out performance test, thereby can realize RAID read-write speed is tested automatically, in addition, after the test accidental interruption, can proceed test to RAID read-write speed according to breakpoint location, and not need to repeat again the test finished.Thereby reduced the test duration, improved testing efficiency.
Fig. 2 is the method for testing particular flow sheet of RAID performance according to an embodiment of the invention.The invention provides a kind of method of testing 200 of raid-array RAID performance, in step 202, read the test position in the destination file and determine breakpoint location according to test position.Owing to the RAID that is created is read and write after rate test finishes each, all test result and test position is stored in the destination file, so after the test procedure accidental interruption, can from destination file, read the test position that has tested.Therefore, can determine breakpoint location according to this test position, that is, will with the test position of not finishing or not beginning of the last test position next-door neighbour that stores in the destination file as breakpoint location.Therefore, do not need to begin to test from initial test position again.
In step 204, from configuration file, read Chunk parameter, bs parameter and count parameter according to breakpoint location.Particularly, the Chunk parameter is when creating RAID, writes the parameter of size of data to disk at every turn, and the bs parameter is that size and the count parameter of each writing data blocks in the dd order is the total block data of writing data blocks during dd orders.Configuration file is text or XML file.Its text file format such as table 1: its data are random writing, do not have form in the concrete file, are easy-to-read only, no practical operation meaning, and this data layout is a part just.
Table 1
Figure BDA00003378901600051
In step 206, create RAID according to the chunk parameter.
In step 208, RAID is read and write data and read and write rate test according to bs parameter and count parameter.Particularly, after creating RAID, utilize above-mentioned dd order according to the bs parameter and the count parameter writes data RAID or read these data from RAID in, RAID is read and write rate test.Introduced configuration file, by reading the parameter that is stored in the configuration file automatically, can realize RAID read-write speed is carried out follow-on test, and need after once test be finished, by the tester parameter be set and proceed test.
In addition, method of testing further comprises: when according to a plurality of second parameters the RAID that is created being read and write rate test, the test run situation is documented in the journal file.Particularly, when according to bs parameter and count parameter the RAID that is created being read and write rate test, the test run situation is documented in the journal file so that when test goes wrong, can inquires about this journal file.For example, this monitoring function is by the order of the dstat in the linux system (multifunction system monitoring resource instrument) watch-dog information.And this method of testing also comprises: according to a plurality of second parameters the RAID that is created is being read and write after rate test finishes, test result and test position are stored in the destination file, and proceed to test till all first parameters in configuration file and a plurality of second parameter all run through according to ensuing first parameter in the configuration file and a plurality of second parameter.The RAID that is created is being read and write after rate test finishes, test result and the test position of this test are stored in the destination file, thereby, when the test accidental interruption, can from this destination file, search breakpoint location and proceed test, and do not need test to having finished, repeat test again.Then, read ensuing Chunk parameter, bs parameter and count parameter in the configuration file, and begin to read and write rate test according to the Chunk parameter that reads, bs parameter and count parameter.This test procedure finishes after can all being read according to all parameters in the configuration file.
After all tests are finished, can ask for the mean value of read-write speed as final test result to all test results.Because this test is the test result that is based upon on the basis of the mean value of substantive test data, so this test result precision height.
In another embodiment, even exist in the system under the situation of low-quality disk, also can read and write rate test to RAID.Except RAID being read and write before the rate test, beyond the simulation low-quality disk, to concrete testing procedure and above similar with reference to figure 1 and the described testing procedure of Fig. 2.Particularly, can before RAID is read and write rate test, implement the step of virtual low-quality disk order, and then RAID is read and write rate test.
Utilize the method for testing of embodiments of the invention, at first, introduced configuration file, by reading the parameter that is stored in the configuration file automatically, thereby can realize that RAID read-write speed is carried out follow-on test can be realized RAID read-write speed is tested automatically.Secondly, introduce destination file, determined the breakpoint location of accidental interruption by the test position that is stored in the destination file, thereby reduced the repeated test to identical parameters, reduced the test duration, improved testing efficiency.In addition, after all tests are finished, ask for the mean value of all test results as final test result, therefore, test result precision height.In addition, under the low-quality disk situation, also can read and write rate test to RAID by the simulation low-quality disk immediately.
Be the preferred embodiments of the present invention only below, be not limited to the present invention, for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1. the method for testing of a raid-array RAID performance is characterized in that, comprising:
From destination file, read breakpoint location and from configuration file, read first parameter and a plurality of second parameter according to described breakpoint location;
Create RAID according to described first parameter; And
According to described a plurality of second parameters the RAID that is created is read and write rate test.
2. method of testing according to claim 1 is characterized in that, described destination file content comprises test result and test position.
3. method of testing according to claim 2 is characterized in that, described first parameter writes the Chunk parameter of size of data when creating described RAID.
4. method of testing according to claim 3, it is characterized in that, described a plurality of second parameter comprises bs parameter and count parameter, and wherein, described bs parameter is that size and the described count parameter of each writing data blocks in the dd order is the total block data of writing data blocks in the described dd order.
5. method of testing according to claim 4 is characterized in that, reads described breakpoint location and further comprise according to described breakpoint location reads described first parameter and described a plurality of second parameters from described configuration file step from described destination file:
Read the described test position in the described destination file and determine described breakpoint location according to described test position; And
From described configuration file, read described Chunk parameter, described bs parameter and described count parameter according to described breakpoint location.
6. method of testing according to claim 4, it is characterized in that, according to described a plurality of second parameters the step that the described RAID that is created carries out described read-write rate test is further comprised: after creating described RAID, described RAID is read and write data and carry out described read-write rate test according to described bs parameter and described count parameter.
7. method of testing according to claim 1 is characterized in that, further comprises: when according to described a plurality of second parameters the described RAID that is created being carried out described read-write rate test, the test run situation is documented in the journal file; And
After according to described a plurality of second parameters the described RAID that is created being carried out described read-write rate test and finishing,
Described test result and described test position are stored in the described destination file, and
Proceed to test till all first parameters in described configuration file and a plurality of second parameter all run through according to ensuing first parameter in the described configuration file and a plurality of second parameter.
8. method of testing according to claim 1 is characterized in that, described configuration file is text or XML file.
9. method of testing according to claim 1 is characterized in that, has under the low-quality disk situation, and described RAID is carried out simulating described low-quality disk before the described read-write rate test.
CN201310247397.XA 2013-06-20 2013-06-20 The method of testing of raid-array RAID performance Active CN103279408B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310247397.XA CN103279408B (en) 2013-06-20 2013-06-20 The method of testing of raid-array RAID performance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310247397.XA CN103279408B (en) 2013-06-20 2013-06-20 The method of testing of raid-array RAID performance

Publications (2)

Publication Number Publication Date
CN103279408A true CN103279408A (en) 2013-09-04
CN103279408B CN103279408B (en) 2015-08-19

Family

ID=49061937

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310247397.XA Active CN103279408B (en) 2013-06-20 2013-06-20 The method of testing of raid-array RAID performance

Country Status (1)

Country Link
CN (1) CN103279408B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473158A (en) * 2013-09-18 2013-12-25 浪潮电子信息产业股份有限公司 Disk pressure testing method for Linux server
CN106021081A (en) * 2016-05-12 2016-10-12 浪潮电子信息产业股份有限公司 Device, server and method for testing performance of RAID card
CN107145420A (en) * 2017-05-03 2017-09-08 郑州云海信息技术有限公司 Based on OpenPower framework automated disk method of testings
CN109408277A (en) * 2018-11-02 2019-03-01 郑州云海信息技术有限公司 A kind of data block link property test method of AEP memory
CN112667452A (en) * 2020-12-20 2021-04-16 苏州浪潮智能科技有限公司 Disk array testing method, system and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1904840A (en) * 2005-07-25 2007-01-31 英业达股份有限公司 Method and system of had disk array rebuilding program interrupt continuing processing
CN101192185A (en) * 2006-11-30 2008-06-04 英业达股份有限公司 Redundance type magnetic disc array storage data reliability test method and system
CN101192174A (en) * 2006-11-30 2008-06-04 英业达股份有限公司 Rehabilitation processing method and system for magnetic disc array device capacity expansion interruption
CN102306193A (en) * 2011-09-05 2012-01-04 浪潮电子信息产业股份有限公司 Method for testing performance of magnetic disc database
CN102479121A (en) * 2010-11-23 2012-05-30 鸿富锦精密工业(深圳)有限公司 Method for realizing and testing redundant array of independent disks
CN102568522A (en) * 2011-12-31 2012-07-11 曙光信息产业股份有限公司 Hardware performance test method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1904840A (en) * 2005-07-25 2007-01-31 英业达股份有限公司 Method and system of had disk array rebuilding program interrupt continuing processing
CN101192185A (en) * 2006-11-30 2008-06-04 英业达股份有限公司 Redundance type magnetic disc array storage data reliability test method and system
CN101192174A (en) * 2006-11-30 2008-06-04 英业达股份有限公司 Rehabilitation processing method and system for magnetic disc array device capacity expansion interruption
CN102479121A (en) * 2010-11-23 2012-05-30 鸿富锦精密工业(深圳)有限公司 Method for realizing and testing redundant array of independent disks
CN102306193A (en) * 2011-09-05 2012-01-04 浪潮电子信息产业股份有限公司 Method for testing performance of magnetic disc database
CN102568522A (en) * 2011-12-31 2012-07-11 曙光信息产业股份有限公司 Hardware performance test method and device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473158A (en) * 2013-09-18 2013-12-25 浪潮电子信息产业股份有限公司 Disk pressure testing method for Linux server
CN106021081A (en) * 2016-05-12 2016-10-12 浪潮电子信息产业股份有限公司 Device, server and method for testing performance of RAID card
CN106021081B (en) * 2016-05-12 2018-06-19 浪潮电子信息产业股份有限公司 A kind of device, server and method for testing RAID card performance
CN107145420A (en) * 2017-05-03 2017-09-08 郑州云海信息技术有限公司 Based on OpenPower framework automated disk method of testings
CN107145420B (en) * 2017-05-03 2020-02-07 郑州云海信息技术有限公司 OpenPower architecture-based automatic disk test method
CN109408277A (en) * 2018-11-02 2019-03-01 郑州云海信息技术有限公司 A kind of data block link property test method of AEP memory
CN109408277B (en) * 2018-11-02 2021-10-29 郑州云海信息技术有限公司 Method for testing link characteristics of data block of AEP memory
CN112667452A (en) * 2020-12-20 2021-04-16 苏州浪潮智能科技有限公司 Disk array testing method, system and medium
CN112667452B (en) * 2020-12-20 2022-12-16 苏州浪潮智能科技有限公司 Disk array testing method, system and medium

Also Published As

Publication number Publication date
CN103279408B (en) 2015-08-19

Similar Documents

Publication Publication Date Title
CN103488544B (en) Detect the treating method and apparatus of slow dish
CN102568522B (en) The method of testing of hard disk performance and device
CN103279408B (en) The method of testing of raid-array RAID performance
US10699798B2 (en) Testing storage device power circuitry
US20120260053A1 (en) Cascade ordering
CN107168879B (en) Method and device for generating test report of centralized configuration management system
CN109558457B (en) Data writing method, device, equipment and storage medium
CN110008129B (en) Reliability test method, device and equipment for storage timing snapshot
JP2014501997A (en) Storage location selection for data storage based on storage location attributes and data usage statistics
CN103473158A (en) Disk pressure testing method for Linux server
CN110493342B (en) File transmission method and device, electronic equipment and readable storage medium
US10592703B1 (en) Method and system for processing verification tests for testing a design under test
KR101748833B1 (en) Software failure locating method, apparatus and equipment
JP2016100006A (en) Method and device for generating benchmark application for performance test
CN105573676A (en) Method for verifying data consistency in storage system
CN115757066A (en) Hard disk performance test method, device, equipment, storage medium and program product
CN105843716A (en) IO function test method based on MLTT
CN101883019A (en) Test method for verifying video application of storage server
EP3264254B1 (en) System and method for a simulation of a block storage system on an object storage system
CN109445800A (en) A kind of version automatic deployment method and system based on distributed system
US8892956B2 (en) Electronic device and method for managing test results
WO2014118897A1 (en) Information processing device, information processing method, and information processing program
CN116069765A (en) Data migration method, device, electronic equipment and storage medium
RU2729210C1 (en) Electronic devices software testing system
CN112069014B (en) Storage system fault simulation method, device, equipment 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
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20130904

Assignee: JIANGSU DAWN INFORMATION TECHNOLOGY Co.,Ltd.

Assignor: Dawning Information Industry (Beijing) Co.,Ltd.

Contract record no.: 2017320000013

Denomination of invention: RAID (redundant array of inexpensive disk) performance testing method

Granted publication date: 20150819

License type: Exclusive License

Record date: 20170217

LICC Enforcement, change and cancellation of record of contracts on the licence for exploitation of a patent or utility model
TR01 Transfer of patent right

Effective date of registration: 20220727

Address after: 100089 building 36, courtyard 8, Dongbeiwang West Road, Haidian District, Beijing

Patentee after: Dawning Information Industry (Beijing) Co.,Ltd.

Patentee after: DAWNING INFORMATION INDUSTRY Co.,Ltd.

Address before: 100193 No. 36 Building, No. 8 Hospital, Wangxi Road, Haidian District, Beijing

Patentee before: Dawning Information Industry (Beijing) Co.,Ltd.

TR01 Transfer of patent right