CN105260281A - Iozone-based PCIE SSD card performance test method - Google Patents

Iozone-based PCIE SSD card performance test method Download PDF

Info

Publication number
CN105260281A
CN105260281A CN201510577370.6A CN201510577370A CN105260281A CN 105260281 A CN105260281 A CN 105260281A CN 201510577370 A CN201510577370 A CN 201510577370A CN 105260281 A CN105260281 A CN 105260281A
Authority
CN
China
Prior art keywords
test
pciessd
iozone
performance test
pcie
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
CN201510577370.6A
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 CN201510577370.6A priority Critical patent/CN105260281A/en
Publication of CN105260281A publication Critical patent/CN105260281A/en
Pending legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention discloses PCIE? The SSD card performance test method is characterized by comprising the following implementation processes: identify PCIE connected to the server through PCIE slot? An SSD; for PCIE? The SSD is partitioned, mounted and formatted; according to the actual configuration modification, transmitting the test parameters to the performance test script; and starting a performance test and outputting a result. The method improves the limitation of the iozone test command, and enriches the iozone test environment through the setting and modification of the early-stage test parameters and the configuration files. Can multiple PCIE's be addressed simultaneously? The SSD performs multi-mode read and write tests of multiple threads. The number of threads, the size of a test block, the size of a test file, the test mode and the like in the test process can be manually adjusted according to actual requirements. Can flexibly adjust the test parameters and configuration files of the iozone, and can be applied to a plurality of PCIE? The SSD card performs multiple modes of read and write testing of multiple threads.

Description

A kind of method of the PCIE SSD card performance test based on iozone
Technical field
The present invention relates to computer server technical field, be specifically related to a kind of method of the PCIESSD card performance test based on iozone.
Background technology
Along with the development of IT field technology, conventional informationization service and the increasingly powerful performance requirement of cloud computing service to server more and more higher.PCIESSD is as data carrier, and the entirety that its performance directly affects server presents.As server hardware supplier, when product development, more input is needed for the performance test of hard disk.
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.
Iozone is the benchmark instrument of a file system, can test the readwrite performance of different operating system file systems, can test Read, write, re-read, re-write, readbackwards, readstrided, fread, fwrite, randomread, pread, mmap, the performance of the hard disk under the pattern that aio_read, aio_write etc. are different.
But iozone only provides simple parameter, wall scroll iozone order has very large test to limit to, and as tested one piece of hard disk, p-wire number of passes controls difficulty etc.
Based on above-mentioned technology, if can shell script be passed through, revise test file according to real server configuration, and can manual adjustment member parameter, the hard disk performance test for diversified configuration offers convenience and higher efficiency by this.
Summary of the invention
The technical problem to be solved in the present invention is: for above weak point, and it is a kind of practical for providing, and can expand, make it the method adapting to diversified performance test demand to the test parameter of iozone.
The technical solution adopted in the present invention is:
Based on a method for the PCIESSD card performance test of iozone, the implementation procedure of described method is:
1) PCIESSD that book server is connected by PCIE slot is identified;
2) subregion is carried out to PCIESSD, carry and format;
3) according to actual disposition amendment, test parameter is passed to performance test script;
4) performance test is started, and Output rusults.
Described as follows by PCIE slot connection PCIESSD process:
Identify the PCIESSD that book server is all;
Judge input parameter number, when not meeting, export usage backed off after random;
Identify all drives.
It is described that test parameter to be passed to performance test script process according to actual disposition amendment as follows:
Determine the memory disc number of testing;
Test file size;
Test block size;
Test total Thread Count, the Thread Count according to each hard disk of hard disk quantity and input determines;
According to the Thread Count that each memory disc is tested, determine test file.
After described script is complete, in file with hddext4 beginning file for net result.
Beneficial effect of the present invention is:
The inventive method can carry out the readwrite performance test of the various modes of multiple thread simultaneously to multiple PCIESSD.Thread Count in test process, test block size, test file size, test pattern etc. all can carry out manual adjustments according to the actual requirements.Improve the restricted of iozone test command, by test parameter and the setting of configuration file and amendment in early stage, enrich the test environment of iozone.The readwrite tests of the various modes of multiple thread can be carried out to multiple PCIESSD simultaneously.Thread Count in test process, test block size, test file size, test pattern etc. all can carry out manual adjustments according to the actual requirements.Test parameter and the configuration file of iozone can be adjusted flexibly, multiple PCIESSD card is carried out to the readwrite tests of the various modes of multiple thread simultaneously.Thread Count in test process, test block size, test file size, test pattern etc. all can carry out manual adjustments according to the actual requirements.
Accompanying drawing explanation
Fig. 1 is the inventive method realization flow figure.
Embodiment
Below according to Figure of description, in conjunction with embodiment, the present invention is further described:
Embodiment 1:
As shown in Figure 1, a kind of method of the PCIESSD card performance test based on iozone, the implementation procedure of described method is as follows:
1) PCIESSD that book server is connected by PCIE slot is identified;
2) subregion is carried out to PCIESSD, carry and format;
3) according to actual disposition amendment, test parameter is passed to performance test script;
4) performance test is started, and Output rusults.
Embodiment 2:
On the basis of embodiment 1, connect PCIESSD process by PCIE slot described in the present embodiment as follows:
1) PCIESSD that book server is all is identified
#!/bin/bash
# judges input parameter number, exports usage backed off after random when not meeting
if[$#-ne2];then
echo“Usage:./$0RECSIZETHREADS_PERFHDD
exit0;
fi
# identifies all drives
functionget_disk()
{
fdisk-l|grep"Disk/dev/sd"|awk'{print$2|"cut-b8"}'>>/root/1.txt
foriin`cat/root/1.txt`
do
echo"/dev/sd$i">>/root/disk.lst
done
}
Embodiment 3:
On the basis of embodiment 1, described in the present embodiment, subregion is carried out to PCIESSD, format and carry process as follows:
# subregion
functionfdisk_disk()
{
fordiskin`cat/root/disk.lst`
do
# is to PCIESSD subregion
echo-e"fdisk$disknow..."
parted-s$diskmklabelgptmkpart$disk"1"1100gb
echo-e"Done"
fi
done
}
# formats
functionmkfs_disk()
{
foriin`cat/root/1.txt`
do
if[$i=a]
then
mkfs.ext4/dev/sd$i"3"
else
mkfs.ext4/dev/sd$i"1"
fi
done
}
# carry
functionmount_disk()
{
foriin`cat/root/1.txt`
if[$i=a]
then
mkdir/mnt/sd$i"3"
mount/dev/sd$i"3"/mnt/sd$i"3"
else
mkdir/mnt/sd$i"1"
mount/dev/sd$i"1"/mnt/sd$i"1"
fi
}
Embodiment 4:
On the basis of embodiment 1, the present embodiment
It is described that test parameter to be passed to performance test script process according to actual disposition amendment as follows:
functioniozone_disk()
{
Count=`cat/root/disk.txt|wc – l`# determines the memory disc number of testing
FILESIZE=10g# test file size
RECSIZE=$ 1# test block size
THREADS=`echo " $ 2* $ count " | bc`# tests total Thread Count, and the Thread Count according to each hard disk of hard disk quantity and input determines
OUTPUTFILE=
The Thread Count that # tests according to each memory disc, determines test file
for((I=0;I<=$2;I++))
do
forJin`cat/root/1.txt`
do
FILE=$FILE"""/mnt/sd$J”1”/k${I}"
done
done
echo$FILE
forTIMESin{1..2}
do
OUTPUTFILE="hddext4_${THREADS}thrd_${FILESIZE}_recsize_${RECSIZE}_sep"
echo"ReadingandWritingtestStarting...">>$OUTPUTFILE
./iozone-r${RECSIZE}-s$FILESIZE-t$THREADS-F$FILE-i0-i1-breport.xls-c-+n-e>>$OUTPUTFILE
echo"ReadingandWritingtestFinished...">>$OUTPUTFILE
echo"">>$OUTPUTFILE
exit1
done
}
Embodiment 5:
On the basis of above-described embodiment, the present embodiment master routine is as follows:
# is executing block in order
get_disk
fdisk_disk
mkfs_disk
mount_disk
iozone_disk
Embodiment 6:
On the basis of embodiment 5, after script described in the present embodiment is complete, in file with hddext4 beginning file for net result.
Above embodiment is only for illustration of the present invention; and be not limitation of the present invention; the those of ordinary skill of relevant technical field; without departing from the spirit and scope of the present invention; can also make a variety of changes and modification; therefore all equivalent technical schemes also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.

Claims (4)

1. based on a method for the PCIESSD card performance test of iozone, it is characterized in that, the implementation procedure of described method is:
1) PCIESSD that book server is connected by PCIE slot is identified;
2) subregion is carried out to PCIESSD, carry and format;
3) according to actual disposition amendment, test parameter is passed to performance test script;
4) performance test is started, and Output rusults.
2. the method for a kind of PCIESSD card performance test based on iozone according to claim 1, is characterized in that, described as follows by PCIE slot connection PCIESSD process:
Identify the PCIESSD that book server is all;
Judge input parameter number, when not meeting, export usage backed off after random;
Identify all drives.
3. the method for a kind of PCIESSD card performance test based on iozone according to claim 1, is characterized in that, described test parameter to be passed to performance test script process according to actual disposition amendment as follows:
Determine the memory disc number of testing;
Test file size;
Test block size;
Test total Thread Count, the Thread Count according to each hard disk of hard disk quantity and input determines;
According to the Thread Count that each memory disc is tested, determine test file.
4., according to the method for claim 1,2 or 3 arbitrary described a kind of PCIESSD card performance tests based on iozone, it is characterized in that: after described script is complete, in file with the file of hddext4 beginning for net result.
CN201510577370.6A 2015-09-11 2015-09-11 Iozone-based PCIE SSD card performance test method Pending CN105260281A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510577370.6A CN105260281A (en) 2015-09-11 2015-09-11 Iozone-based PCIE SSD card performance test method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510577370.6A CN105260281A (en) 2015-09-11 2015-09-11 Iozone-based PCIE SSD card performance test method

Publications (1)

Publication Number Publication Date
CN105260281A true CN105260281A (en) 2016-01-20

Family

ID=55099981

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510577370.6A Pending CN105260281A (en) 2015-09-11 2015-09-11 Iozone-based PCIE SSD card performance test method

Country Status (1)

Country Link
CN (1) CN105260281A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106126421A (en) * 2016-06-23 2016-11-16 浪潮电子信息产业股份有限公司 Method for automatically testing and comparing PCIE-SSD performance
CN107122288A (en) * 2017-05-08 2017-09-01 郑州云海信息技术有限公司 A kind of reading and writing data method of testing that meteorological platform application is simulated based on IOzone
WO2020000955A1 (en) * 2018-06-29 2020-01-02 郑州云海信息技术有限公司 Production line test method, system and device for pcie switch product, and medium
CN111858309A (en) * 2020-06-19 2020-10-30 浪潮电子信息产业股份有限公司 Iozone testing method, device, equipment and storage medium
CN112650678A (en) * 2020-12-24 2021-04-13 北京睿芯高通量科技有限公司 Jenkins-based automatic test system and method for audio and video accelerator card product

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6401222B1 (en) * 1996-10-11 2002-06-04 Phillip M. Adams Defective floppy diskette controller detection apparatus and method
CN101872320A (en) * 2010-04-16 2010-10-27 浪潮电子信息产业股份有限公司 Method for reliability, performance test and statistic of SSD(Solid State Disk)
CN104809042A (en) * 2015-04-27 2015-07-29 浪潮电子信息产业股份有限公司 Iozone-based hard disk performance test method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6401222B1 (en) * 1996-10-11 2002-06-04 Phillip M. Adams Defective floppy diskette controller detection apparatus and method
CN101872320A (en) * 2010-04-16 2010-10-27 浪潮电子信息产业股份有限公司 Method for reliability, performance test and statistic of SSD(Solid State Disk)
CN104809042A (en) * 2015-04-27 2015-07-29 浪潮电子信息产业股份有限公司 Iozone-based hard disk performance test method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106126421A (en) * 2016-06-23 2016-11-16 浪潮电子信息产业股份有限公司 Method for automatically testing and comparing PCIE-SSD performance
CN107122288A (en) * 2017-05-08 2017-09-01 郑州云海信息技术有限公司 A kind of reading and writing data method of testing that meteorological platform application is simulated based on IOzone
WO2020000955A1 (en) * 2018-06-29 2020-01-02 郑州云海信息技术有限公司 Production line test method, system and device for pcie switch product, and medium
US11604750B2 (en) 2018-06-29 2023-03-14 Zhengzhou Yunhai Information Technology Co., Ltd. Production line test method, system and device for PCIE switch product, and medium
CN111858309A (en) * 2020-06-19 2020-10-30 浪潮电子信息产业股份有限公司 Iozone testing method, device, equipment and storage medium
CN112650678A (en) * 2020-12-24 2021-04-13 北京睿芯高通量科技有限公司 Jenkins-based automatic test system and method for audio and video accelerator card product
CN112650678B (en) * 2020-12-24 2024-04-19 北京中科通量科技有限公司 Jenkins-based audio and video acceleration card product automatic test system and method

Similar Documents

Publication Publication Date Title
CN104809042A (en) Iozone-based hard disk performance test method
CN105260281A (en) Iozone-based PCIE SSD card performance test method
US9810729B2 (en) Tester with acceleration for packet building within a FPGA block
CN104360919A (en) Method for automatically testing performance, function and stability of SSD
CN104850479A (en) FIO-based hard disk automatic testing method
CN106095528B (en) A method of detection virtual machine drive
US9645911B2 (en) System and method for debugging firmware/software by generating trace data
CN105487952A (en) PCIE-SSD automatic testing method based on FIO
CN105224459A (en) Method for testing reading and writing BIOS configuration function of BMC through OEM command under LINUX platform
CN106126421A (en) Method for automatically testing and comparing PCIE-SSD performance
CN106933711A (en) A kind of PCIe3.0 Tx signal method for automatic measurement
CN104484685A (en) Method and system for issuing smart cards in batched mode
CN106093897A (en) The test system of a kind of radar system and method for testing
CN108231132B (en) NAND flash memory verification device and verification system
US8874966B1 (en) Storage device error simulator tool
CN103425580A (en) Method for automatically and rapidly obtaining and calibrating configuration information of cloud computing device
CN113282555A (en) Data processing method, device, equipment and storage medium
KR20220161200A (en) Systems and methods for concurrent and automated testing of zoned namespace solid state drives
CN202030403U (en) Elevator rapid debugging device
CN105183641A (en) Data consistency check method and system for kernel module
CN103594121A (en) Memory test method, memory test device and adapter thereof
CN104765668B (en) Method for verifying stability of NFS server
CN105468488A (en) Method, device and system of diskless CPU (Central Processing Unit) on the basis of IB (InfiniBand) network
CN104978250A (en) Iozone-based HBA card performance test method
CN105843716A (en) IO function test method based on MLTT

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: 20160120