CN105487952A - PCIE-SSD automatic testing method based on FIO - Google Patents

PCIE-SSD automatic testing method based on FIO Download PDF

Info

Publication number
CN105487952A
CN105487952A CN201510928968.5A CN201510928968A CN105487952A CN 105487952 A CN105487952 A CN 105487952A CN 201510928968 A CN201510928968 A CN 201510928968A CN 105487952 A CN105487952 A CN 105487952A
Authority
CN
China
Prior art keywords
test
pcie
ssd
fio
testing method
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
CN201510928968.5A
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 Electronic Information Industry Co Ltd
Original Assignee
Inspur 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 Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201510928968.5A priority Critical patent/CN105487952A/en
Publication of CN105487952A publication Critical patent/CN105487952A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a PCIE-SSD automatic test method based on FIO, belonging to the PCIE-SSD automatic test field, aiming at solving the problem of low quality and efficiency of PCIE-SSD performance and stability test, the adopted technical scheme comprises the following steps: (1) modifying the test script parameters according to the test requirements; (2) the script automatically selects a corresponding test module according to the parameters; (3) the test module automatically starts testing according to the parameters; (4) the test is completed and the result is output to the log. The module variables and parameters are initially defined before step (1).

Description

A kind of PCIE-SSD automated testing method based on FIO
Technical field
The present invention relates to PCIE-SSD automatic test field, specifically a kind of PCIE-SSD automated testing method based on FIO.
Background technology
Along with the high speed development of IT industry, the development of information-based, large data and cloud computing requires more and more higher to server performance.The carrier that PCIE-SSD stores as data, the entirety that performance index directly affect server presents.As domestically leading server hardware supplier, tide is also in the quality improved constantly PCIE-SSD performance test and efficiency.
Shell script is similar to the batch processing under Windows/Dos, namely puts in advance in a file with all kinds of order, facilitates a program file of disposable execution, mainly facilitates keeper to carry out arranging or manage.But it is more powerful than the batch processing under Windows, than higher by the program efficiency of other programs editor.
FIO is the benchmark instrument of a file system, can test the readwrite performance of various operating system file system.The PCIE-SSD performance test under different test block size, different mode can be carried out.But FIO only provides simple parameter, the use of single command has very large test to limit to, and is difficult to performance and the stability test of accomplishing PCIE-SSD to be carried out to comparatively system.
How can pass through the test script of shell language compilation robotization, and the adjustment manually carrying out test parameter makes the technical problem to be solved in the present invention.Greatly will improve quality and the efficiency of PCIE-SSD performance and stability test.
Summary of the invention
Technical assignment of the present invention is for above deficiency, provides a kind of PCIE-SSD automated testing method based on FIO, solves the quality of PCIE-SSD performance and stability test and inefficient problem.
Technical assignment of the present invention realizes in the following manner:
Based on a PCIE-SSD automated testing method of FIO, step is:
(1) according to testing requirement amendment test script parameter;
(2) script selects corresponding test module automatically according to parameter;
(3) test module starts test automatically according to parameter;
(4) complete test and result is outputted to daily record.
Before carrying out step (1), original definition is carried out to module variable and partial parameters.
A kind of PCIE-SSD automated testing method based on FIO of the present invention has the following advantages: be applicable to different PCIE-SSD model and configuration, only needs according to testing requirement amendment parameter.Solve the test limitation using FIO single command.Enrich means of testing, improve testing efficiency and test mass, better achieve PCIE-SSD automatic test.
Accompanying drawing explanation
Below in conjunction with accompanying drawing, the present invention is further described.
Accompanying drawing 1 is a kind of schematic flow sheet of the PCIE-SSD automated testing method based on FIO.
Embodiment
With reference to Figure of description and specific embodiment, a kind of PCIE-SSD automated testing method based on FIO of the present invention is described in detail below.
Embodiment:
A kind of PCIE-SSD automated testing method based on FIO of the present invention, step is:
(1) according to testing requirement amendment test script parameter;
(2) script selects corresponding test module automatically according to parameter;
(3) test module starts test automatically according to parameter;
(4) complete test and result is outputted to daily record.
Before carrying out step (1), carry out original definition to module variable and partial parameters, running IOengine as acquiescence is libaio pattern, and code is:
IS_FRAG=false
IS_STRESS=false
IS_BASE=false
IS_FILESYSTEM=false
IS_IOPS=false
IO_ENGINE=libaio
FILE_SIZE=100%
Usage illustrates, is described the available parameter of script, and perform iotest.sh – h meeting screen print, code is:
usage(){
echo"$0[-f][-s][-eio_engine][-h][-b][-ddev_name][-m][-ppartion][-wworkdir][-r][-iiops]"
echo"-ffragment"
echo"-sstresstest"
echo"-eioenginetype,defaulttypeislibaio"
echo"-brawdevicebasetest"
echo"example:"
echo"rawdevicefragment:nohup&>/dev/nullshiotest.sh-f-d/dev/sda&"
echo"rawdevicebasetest:nohup&>/dev/nullshiotest.sh-b-d/dev/sda&"
echo"Ifyouhaveanyquestion,contactwithme:miaoywinspur.com"
exit
Apply mechanically getopts mode, define script command line parameter, such as performing iotest.sh – b can automatically by " IS_BASE=true ", and code is:
whilegetopts"hsfbe:d:mp:w:ri:"arg
do
case$argin
h)
usage;;
s)
IS_STRESS=true;;
f)
IS_FRAG=true;;
b)
IS_BASE=true;;
w)
workdir=${OPTARG};;
r)
IS_IOPS=true;;
i)
define_iops=${OPTARG};;
esac
done
According to the judgement of if statement, call base_test test module, code is:
if${IS_FRAG};then
fragment
fi
if${IS_BASE};then
base_test
fi
if${IS_IOPS};then
fixed_iops_test
fi
Utilize for loop nesting, also Output rusults is to log shelves to adopt the tactful different pieces of information block size of different threads difference read-write to carry out test, and code is:
base_test(){
forRWinwriterandwritereadrandread
do
forBSin4k16k64k512k
do
forTHREADSin128163264256
do
if[$THREADS-le32];then
fio--readwrite=${RW}--bs=${BS}--numjobs=${THREADS}--runtime=300s${PARA_LINE}--filename=${DEV_LIST}--name=${RW}_${BS}_${THREADS}|tee-a${RW}.log
else
iodepth=$(($THREADS/32))
PARA_LINE2="--end_fsync=0--group_reporting--direct=1--ioengine=${IO_ENGINE}--iodepth=$iodepth--time_based--invalidate=1--norandommap--randrepeat=0--exitall--size=${FILE_SIZE}"
fio--readwrite=${RW}--bs=${BS}--numjobs=32--runtime=300s${PARA_LINE2}--filename=${DEV_LIST}--name=${RW}_${BS}_${THREADS}|tee-a${RW}.log
fi
done
done
sleep60s
done
Run bandwidth test according to parameters, code is:
fio--readwrite=read--bs=512k--direct=1--runtime=300s--end_fsync=0--ioengine=${IO_ENGINE}--time_based--invalidate=1--norandommap--randrepeat=0--group_reporting--numjobs=1--size=${FILE_SIZE}--filename=${DEV_LIST}--name=BW_read|tee-aBW_read.log
sleep60s
fio--readwrite=write--bs=512k--direct=1--runtime=300s--end_fsync=0--ioengine=${IO_ENGINE}--time_based--invalidate=1--norandommap--randrepeat=0--group_reporting--numjobs=1--size=${FILE_SIZE}--filename=${DEV_LIST}--name=BW_write|tee-aBW_write.log
sleep60s
Utilize the tactful operation stability test of different pieces of information block size, different threads and different read-write, code is:
#steady
iostat-xm1>4k_rw_iops&
fio--readwrite=randrw--rwmixread=70--bs=4k--runtime=3000s--numjobs=32${PARA_LINE}--filename=${DEV_LIST}--name=4k_rw_iops|tee-a4k_rw_iops.log
kill`pidofiostat`>/dev/null
sleep30s
iostat-xm1>16k_w_iops&
fio--readwrite=randwrite--bs=16k--runtime=3000s--numjobs=32${PARA_LINE}--filename=${DEV_LIST}--name=16k_w_iops|tee-a16k_w_iops.log
kill`pidofiostat`>/dev/null
By embodiment above, described those skilled in the art can be easy to realize the present invention.But should be appreciated that the present invention is not limited to above-mentioned embodiment.On the basis of disclosed embodiment, described those skilled in the art can the different technical characteristic of combination in any, thus realizes different technical schemes.Except the technical characteristic described in instructions, be the known technology of those skilled in the art.

Claims (2)

1., based on a PCIE-SSD automated testing method of FIO, it is characterized in that step is:
(1) according to testing requirement amendment test script parameter;
(2) script selects corresponding test module automatically according to parameter;
(3) test module starts test automatically according to parameter;
(4) complete test and result is outputted to daily record.
2. a kind of PCIE-SSD automated testing method based on FIO according to claim 1, is characterized in that carrying out original definition to module variable and partial parameters before carrying out step (1).
CN201510928968.5A 2015-12-15 2015-12-15 PCIE-SSD automatic testing method based on FIO Pending CN105487952A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510928968.5A CN105487952A (en) 2015-12-15 2015-12-15 PCIE-SSD automatic testing method based on FIO

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510928968.5A CN105487952A (en) 2015-12-15 2015-12-15 PCIE-SSD automatic testing method based on FIO

Publications (1)

Publication Number Publication Date
CN105487952A true CN105487952A (en) 2016-04-13

Family

ID=55674945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510928968.5A Pending CN105487952A (en) 2015-12-15 2015-12-15 PCIE-SSD automatic testing method based on FIO

Country Status (1)

Country Link
CN (1) CN105487952A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107545927A (en) * 2017-08-25 2018-01-05 郑州云海信息技术有限公司 A kind of SSD automatic performance method of testings realized based on fio
CN107799158A (en) * 2017-11-23 2018-03-13 郑州云海信息技术有限公司 A kind of NVMe SSD IO delays automated testing method
CN108335722A (en) * 2018-01-03 2018-07-27 郑州云海信息技术有限公司 A kind of method of automatic test SSD interface rate
CN108777158A (en) * 2018-06-05 2018-11-09 深圳忆联信息***有限公司 Test the method, apparatus and computer equipment of solid state disk Trim performances
CN109086176A (en) * 2018-07-26 2018-12-25 郑州云海信息技术有限公司 A kind of SSD steady-state method of test, device, equipment and storage medium based on FIO
US20190272116A1 (en) * 2018-03-02 2019-09-05 Shenzhen Shichuangyi Electronics Co., Ltd Batch automatic test method for solid state disks and batch automatic test device for solid state disks
CN110659171A (en) * 2019-09-25 2020-01-07 苏州浪潮智能科技有限公司 Test method, electronic device and computer readable storage medium

Citations (1)

* 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 hard disk automatic testing method

Patent Citations (1)

* 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 hard disk automatic testing method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107545927A (en) * 2017-08-25 2018-01-05 郑州云海信息技术有限公司 A kind of SSD automatic performance method of testings realized based on fio
CN107799158A (en) * 2017-11-23 2018-03-13 郑州云海信息技术有限公司 A kind of NVMe SSD IO delays automated testing method
CN108335722A (en) * 2018-01-03 2018-07-27 郑州云海信息技术有限公司 A kind of method of automatic test SSD interface rate
US20190272116A1 (en) * 2018-03-02 2019-09-05 Shenzhen Shichuangyi Electronics Co., Ltd Batch automatic test method for solid state disks and batch automatic test device for solid state disks
US10768852B2 (en) * 2018-03-02 2020-09-08 Shenzhen Shichuangyi Electronics Co., Ltd Batch automatic test method for solid state disks and batch automatic test device for solid state disks
CN108777158A (en) * 2018-06-05 2018-11-09 深圳忆联信息***有限公司 Test the method, apparatus and computer equipment of solid state disk Trim performances
CN108777158B (en) * 2018-06-05 2020-12-01 深圳忆联信息***有限公司 Method and device for testing Trim performance of solid state disk and computer equipment
CN109086176A (en) * 2018-07-26 2018-12-25 郑州云海信息技术有限公司 A kind of SSD steady-state method of test, device, equipment and storage medium based on FIO
CN110659171A (en) * 2019-09-25 2020-01-07 苏州浪潮智能科技有限公司 Test method, electronic device and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN105487952A (en) PCIE-SSD automatic testing method based on FIO
CN104850479A (en) FIO-based hard disk automatic testing method
CN106156278B (en) Database data reading and writing method and device
CN106708718B (en) Service framework interface test method and device
US8898642B2 (en) Profiling and sequencing operators executable in an emulated computing system
CN106682036A (en) Data exchange system and exchange method thereof
CN104809042A (en) Iozone-based hard disk performance test method
CN109189479A (en) A kind of parallel automatic verification method for processor instruction set
CN106919697B (en) Method for simultaneously importing data into multiple Hadoop assemblies
CN102542116B (en) Method and device of DFM (Design for Manufacturability) analysis automation
CN105389236A (en) HBA card automatic testing method based on FIO
CN105260281A (en) Iozone-based PCIE SSD card performance test method
CN105591779A (en) Method and device for inspecting network element
CN103425580A (en) Method for automatically and rapidly obtaining and calibrating configuration information of cloud computing device
CN112559525B (en) Data checking system, method, device and server
CN106293862B (en) A kind of analysis method and device of expandable mark language XML data
CN110968339B (en) Method and device for front-end building tool and electronic equipment
CN105242947A (en) Method for upgrading BIOSs in batches
CN115757174A (en) Database difference detection method and device
CN103605612A (en) Method for rapidly selecting automatic test case
CN110414097B (en) IMA system resource allocation verification method and system, and computer readable storage medium
CN114647588A (en) Interface test method and device
WO2013049175A1 (en) Abstracting computational instructions to improve performance
CN110399298A (en) A kind of test method and device
CN107948227B (en) Performance optimization method and device of distributed system platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for 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: 20160413