CN108335722A - A kind of method of automatic test SSD interface rate - Google Patents

A kind of method of automatic test SSD interface rate Download PDF

Info

Publication number
CN108335722A
CN108335722A CN201810005159.0A CN201810005159A CN108335722A CN 108335722 A CN108335722 A CN 108335722A CN 201810005159 A CN201810005159 A CN 201810005159A CN 108335722 A CN108335722 A CN 108335722A
Authority
CN
China
Prior art keywords
testing tool
ssd
test
interface rate
interface
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
CN201810005159.0A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810005159.0A priority Critical patent/CN108335722A/en
Publication of CN108335722A publication Critical patent/CN108335722A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/56External testing equipment for static stores, e.g. automatic test equipment [ATE]; Interfaces therefor
    • G11C29/56016Apparatus features

Abstract

The present invention discloses a kind of method of automatic test SSD interface rate, is related to hard disk test technical field;Under the operating system of test machine, dispose the performance testing tool of SSD and customized interface rate testing tool, when execution performance testing tool, it is performed simultaneously interface rate testing tool, interface rate testing tool continuously carries out the order for checking SSD interface PCIE rates, while result being exported in the form of log;The method of the present invention can be write based on the carry out interface rate testing tool of python tools, realize all automations, succinct good operation, can be at different OS and under different performance tests, pressure test script, the SSD rates of automatic detection PCIE interfaces, and pass through the output directly in the form of log by test result of automatic test script, after test, it is counter to look into log, reduction of speed problem is seen if there is, the screening operation of SSD is very suitable for.

Description

A kind of method of automatic test SSD interface rate
Technical field
The present invention discloses a kind of automated testing method, is related to hard disk test technical field, specifically a kind of automatic Change the method for test SSD interface rate.
Background technology
With the continuous development of IT field technology, conventional information service and increasingly powerful cloud computing service are to service The performance requirement of device is higher and higher.SSD has the features such as memory rate is fast, and storage performance is high.As data medium, performance is straight Connecing, which influences the whole of server, is presented.As server hardware supplier, the performance test of SSD is needed in product development More inputs, so in development phase, other than testing SSD properties of product, it is also necessary to which rate is carried out to SSD interface Test, to ensure properties of product.The present invention provides a kind of method of automatic test SSD interface rate, can be based on python The carry out script edit of tool realizes that all automations, succinct good operation can be surveyed at different OS with different performances Under examination, pressure test script, the SSD rates of automatic detection PCIE interfaces, and it is by automatic test script that test result is straight It connects and is exported in the form of log, during the test, checked without interrupt test, it is counter to look into log after test, see if there is drop Fast problem is very suitable for the screening operation of SSD.
Invention content
The present invention is directed to the demand and shortcoming of current technology development, provides a kind of automatic test SSD interface rate Method, can directly be gone to check whether PCIE interface rates normal, and letter may be implemented with form of scripts during the test It is clean, time saving, accurately test out the SSD rates of PCIE interfaces, be conducive to carry out supplier management and improve quality of server and Cost performance.
A kind of method of automatic test SSD interface rate, under the operating system of test machine, the performance for disposing SSD is surveyed Trial work has and customized interface rate testing tool, when execution performance testing tool, is performed simultaneously interface rate testing tool, And in the test process of performance testing tool, interface rate testing tool continuously carries out the life for checking SSD interface PCIE rates It enables, while result being exported in the form of log;After performance testing tool is tested, check that the performance test results and PCIE connect The rating results of mouth SSD, judge whether SSD interface rate has exception.
S1:Test machine installs preset operating system, and identifies test SSD hard disks, under an operating system, installation and deployment performance Under testing tool and interface rate testing tool to system specified directory,
S2:Runnability testing tool is performed simultaneously interface rate testing tool,
S3:In entire test process, the SSD performances of performance testing tool test PCIE interfaces, and interface rate testing tool The order for checking SSD interface PCIE rates is continuously carried out, while result being exported in the form of log;
S4:After performance testing tool is tested, check that the performance test results and the rate of PCIE interfaces SSD whether there is Otherwise if reduction of speed problem is judged as that SSD interface rate is normal abnormal in the presence of SSD interface rate is judged as.
Interface rate testing tool is write using python in the method, for being tested in performance testing tool When, it synchronizes and checks SSD interface PCIE rates and export result in the form of log simultaneously.
A kind of interface rate testing tool of automatic test SSD interface rate:The self-defined interface rate test Tool makes the performance testing tool of itself and SSD be deployed under the operating system of test machine simultaneously, in execution performance testing tool When, it is performed simultaneously the interface rate testing tool, and in the test process of performance testing tool, the interface rate is surveyed Trial work tool continuously carries out the order for checking SSD interface PCIE rates, while result being exported in the form of log.
The interface rate testing tool is write using python, when being included in performance testing tool test, together Step is checked SSD interface PCIE rates and is exported the function of result in the form of log simultaneously.
The present invention has an advantageous effect in that compared with prior art:
The present invention provides a kind of method of automatic test SSD interface rate and disposes SSD's under the operating system of test machine Performance testing tool and customized interface rate testing tool when execution performance testing tool, are performed simultaneously interface rate survey Trial work has, and in the test process of performance testing tool, and interface rate testing tool, which continuously carries out, checks SSD interface PCIE speed The order of rate, while result being exported in the form of log;After performance testing tool is tested, check the performance test results and The rating results of PCIE interfaces SSD, judge whether SSD interface rate has exception;The method of the present invention can be based on python tools It carries out interface rate testing tool to write, realizes all automations, succinct good operation can be at different OS and different property It can test, under pressure test script, the SSD rates of automatic detection PCIE interfaces, and be tied test by automatic test script Fruit exports directly in the form of log, during the test, is checked without interrupt test, counter to look into log after test, see whether There is reduction of speed problem, is very suitable for the screening operation of SSD.
Description of the drawings
Fig. 1 the method for the present invention test process flow diagrams.
Specific implementation mode
The present invention provides a kind of method of automatic test SSD interface rate, under the operating system of test machine, deployment The performance testing tool of SSD and customized interface rate testing tool when execution performance testing tool, are performed simultaneously interface speed Rate testing tool, and in the test process of performance testing tool, interface rate testing tool, which continuously carries out, checks SSD interface The order of PCIE rates, while result being exported in the form of log;After performance testing tool is tested, performance test is checked As a result and the rating results of PCIE interfaces SSD, judge whether SSD interface rate has exception.
The interface rate for providing a kind of automatic test SSD interface rate corresponding with the above method simultaneously tests work Tool:The self-defined interface rate testing tool, makes it be deployed in the operation of test machine simultaneously with the performance testing tool of SSD Under system, in execution performance testing tool, it is performed simultaneously the interface rate testing tool, and in performance testing tool In test process, the interface rate testing tool continuously carries out the order for checking SSD interface PCIE rates, at the same by result with Log forms export.
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with specific embodiment, to this hair Bright further description.
Using the method for the present invention and interface rate testing tool, for carrying out operating instruction by linux system,
S1:Test machine installs linux system, and obtains root authority, and identifies test SSD hard disks, installs fio tools, then By under the specified directory under the file copy of the file of fio performance testing tools and interface rate testing tool to system,
S2:Runnability testing tool is performed simultaneously interface rate testing tool, enumerates the generation of an interface rate testing tool Code be:
04:00.0 Mass storage controller: Device 1cb0:0275
Subsystem: Device 1cb0:0034
Physical Slot: 0-2
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR+ FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 174
Region 0: Memory at c7300000 (32-bit, non-prefetchable) [size=32K]
Capabilities: [40] Power Management version 3
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+, D3cold-)
Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [48] MSI: Enable+ Count=1/1 Maskable- 64bit+
Address: 00000000fee00518 Data: 0000
Capabilities: [60] Express (v2) Endpoint, MSI 00
DevCap: MaxPayload 256 bytes, PhantFunc 0, Latency L0s <64ns, L1 unlimited
ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
DevCtl: Report errors: Correctable- Non-Fatal+ Fatal+ Unsupported-
RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop+
MaxPayload 256 bytes, MaxReadReq 4096 bytes
DevSta: CorrErr+ UncorrErr- FatalErr- UnsuppReq+ AuxPwr- TransPend-
LnkCap: Port #0, Speed 5GT/s, Width x8, ASPM L0s, Latency L0 unlimited, L1 unlimited
ClockPM- Surprise- LLActRep- BwNot-
LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk+
ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
LnkSta: Speed 5GT/s, Width x8, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
DevCap2: Completion Timeout: Range B, TimeoutDis-
DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-
LnkCtl2: Target Link Speed: 5GT/s, EnterCompliance- SpeedDis-, Selectable De-emphasis: -6dB
Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
Compliance De-emphasis: -6dB
LnkSta2: Current De-emphasis Level: -6dB
Capabilities: [100] Advanced Error Reporting
UESta: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
UEMsk: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
UESvrt: DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
CESta: RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr-
CEMsk: RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
AERCap: First Error Pointer: 00, GenCap+ CGenEn- ChkCap+ ChkEn-
Kernel driver in use: aliflash
Kernel modules: aliflash
lspci -s 04:00.0 -vvvv
S3:In entire test process, the SSD performances of performance testing tool test PCIE interfaces, and interface rate testing tool The order for checking SSD interface PCIE rates is continuously carried out, while result being exported in the form of log;
S4:After performance testing tool is tested, check that the performance test results and the rate of PCIE interfaces SSD whether there is Otherwise if reduction of speed problem is judged as that SSD interface rate is normal abnormal in the presence of SSD interface rate is judged as.
Can be at different OS and under different performance tests, pressure test script using the method for the present invention, automation The SSD rates of PCIE interfaces are detected, and by the output directly in the form of log by test result of automatic test script, are being tested In the process, it is checked without interrupt test, it is counter to look into log after test, reduction of speed problem is seen if there is, the screening of SSD is very suitable for Work.

Claims (5)

1. a kind of method of automatic test SSD interface rate, it is characterised in that under the operating system of test machine, dispose SSD Performance testing tool and customized interface rate testing tool, when execution performance testing tool, be performed simultaneously interface rate Testing tool, and in the test process of performance testing tool, interface rate testing tool, which continuously carries out, checks SSD interface PCIE The order of rate, while result being exported in the form of log;After performance testing tool is tested, the performance test results are checked And the rating results of PCIE interfaces SSD, judge whether SSD interface rate has exception.
2. according to the method described in claim 1, it is characterized in that the specific steps are:
S1:Test machine installs preset operating system, and identifies test SSD hard disks, under an operating system, installation and deployment performance test Under tool and interface rate testing tool to system specified directory,
S2:Runnability testing tool is performed simultaneously interface rate testing tool,
S3:In entire test process, the SSD performances of performance testing tool test PCIE interfaces, and interface rate testing tool The order for checking SSD interface PCIE rates is continuously carried out, while result being exported in the form of log;
S4:After performance testing tool is tested, check that the performance test results and the rate of PCIE interfaces SSD whether there is Otherwise if reduction of speed problem is judged as that SSD interface rate is normal abnormal in the presence of SSD interface rate is judged as.
3. method according to claim 1 or 2, it is characterised in that the interface rate testing tool is write using python It forms, SSD interface PCIE rates and simultaneously the output result in the form of log is checked for when performance testing tool is tested, synchronizing.
4. a kind of interface rate testing tool of automatic test SSD interface rate, it is characterised in that the self-defined interface Rate test tool makes the performance testing tool of itself and SSD be deployed under the operating system of test machine simultaneously, is surveyed in execution performance When trial work has, it is performed simultaneously the interface rate testing tool, and in the test process of performance testing tool, the interface Rate test tool continuously carries out the order for checking SSD interface PCIE rates, while result being exported in the form of log.
5. interface rate testing tool according to claim 4, it is characterised in that write, be included in using python When performance testing tool is tested, the function of checking SSD interface PCIE rates and export result in the form of log simultaneously is synchronized.
CN201810005159.0A 2018-01-03 2018-01-03 A kind of method of automatic test SSD interface rate Pending CN108335722A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810005159.0A CN108335722A (en) 2018-01-03 2018-01-03 A kind of method of automatic test SSD interface rate

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810005159.0A CN108335722A (en) 2018-01-03 2018-01-03 A kind of method of automatic test SSD interface rate

Publications (1)

Publication Number Publication Date
CN108335722A true CN108335722A (en) 2018-07-27

Family

ID=62924514

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810005159.0A Pending CN108335722A (en) 2018-01-03 2018-01-03 A kind of method of automatic test SSD interface rate

Country Status (1)

Country Link
CN (1) CN108335722A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109165126A (en) * 2018-08-17 2019-01-08 郑州云海信息技术有限公司 The method that RAID card links rate with hard disk is tested automatically under a kind of linux system
CN109460342A (en) * 2018-11-02 2019-03-12 郑州云海信息技术有限公司 Method, apparatus, equipment and the storage medium of a kind of testing hard disk performance and collector journal
CN109542790A (en) * 2018-11-26 2019-03-29 郑州云海信息技术有限公司 A kind of automated testing method and system of pressure test
CN109992420A (en) * 2019-04-08 2019-07-09 苏州浪潮智能科技有限公司 A kind of Parallel PC IE-SSD performance optimization method and system
WO2021056393A1 (en) * 2019-09-25 2021-04-01 苏州浪潮智能科技有限公司 Test method, electronic device and computer-readable storage medium
CN112667487A (en) * 2020-12-25 2021-04-16 深圳创新科技术有限公司 Method and device for executing FIO performance test by using Python script under Linux

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102053898A (en) * 2009-11-06 2011-05-11 英业达股份有限公司 Method for testing bus interface on PCIE (Peripheral Component Interface Express) slot of host and read-write test method thereof
CN102662808A (en) * 2012-03-21 2012-09-12 北京星网锐捷网络技术有限公司 Method and device for realizing hardware fault detection on PCIE (peripheral component interconnect express)
WO2014130074A1 (en) * 2013-02-21 2014-08-28 Advantest Corporation Gui implementations on central controller computer system for supporting protocol independent device testing
CN104317693A (en) * 2014-10-30 2015-01-28 浪潮电子信息产业股份有限公司 Method for automatically testing hard disk performance fluctuation
CN104660471A (en) * 2015-03-10 2015-05-27 浪潮集团有限公司 Method for automatically testing PCIE-SSD transmitting velocity and band width under Linux
CN105306306A (en) * 2015-11-12 2016-02-03 姚焕根 Link connectivity detection system and method
CN105487952A (en) * 2015-12-15 2016-04-13 浪潮电子信息产业股份有限公司 PCIE-SSD automatic test method based on FIO
CN105718346A (en) * 2016-01-22 2016-06-29 浪潮电子信息产业股份有限公司 Computer mainboard PCIe slot function test method based on UEFI
CN106126421A (en) * 2016-06-23 2016-11-16 浪潮电子信息产业股份有限公司 A kind of automatic test the method contrasting PCIE SSD performance
CN106910532A (en) * 2017-02-23 2017-06-30 郑州云海信息技术有限公司 A kind of method of automatic test SSD performances
CN107203447A (en) * 2017-05-27 2017-09-26 郑州云海信息技术有限公司 A kind of test of hard disk performance stability and show method

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102053898A (en) * 2009-11-06 2011-05-11 英业达股份有限公司 Method for testing bus interface on PCIE (Peripheral Component Interface Express) slot of host and read-write test method thereof
CN102662808A (en) * 2012-03-21 2012-09-12 北京星网锐捷网络技术有限公司 Method and device for realizing hardware fault detection on PCIE (peripheral component interconnect express)
WO2014130074A1 (en) * 2013-02-21 2014-08-28 Advantest Corporation Gui implementations on central controller computer system for supporting protocol independent device testing
CN104317693A (en) * 2014-10-30 2015-01-28 浪潮电子信息产业股份有限公司 Method for automatically testing hard disk performance fluctuation
CN104660471A (en) * 2015-03-10 2015-05-27 浪潮集团有限公司 Method for automatically testing PCIE-SSD transmitting velocity and band width under Linux
CN105306306A (en) * 2015-11-12 2016-02-03 姚焕根 Link connectivity detection system and method
CN105487952A (en) * 2015-12-15 2016-04-13 浪潮电子信息产业股份有限公司 PCIE-SSD automatic test method based on FIO
CN105718346A (en) * 2016-01-22 2016-06-29 浪潮电子信息产业股份有限公司 Computer mainboard PCIe slot function test method based on UEFI
CN106126421A (en) * 2016-06-23 2016-11-16 浪潮电子信息产业股份有限公司 A kind of automatic test the method contrasting PCIE SSD performance
CN106910532A (en) * 2017-02-23 2017-06-30 郑州云海信息技术有限公司 A kind of method of automatic test SSD performances
CN107203447A (en) * 2017-05-27 2017-09-26 郑州云海信息技术有限公司 A kind of test of hard disk performance stability and show method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
JXYWXY: "linux下如何查看PCI-E版本(1.x?2.x?3.0?),http://blog.sina.cn/dpool/blog/s/blog_413d250e0102wszj.html", 《新浪博客》 *
侯玉玲: "PCI Express接口固态硬盘管理算法的研究", 《CNKI中国硕士论文全文数据库》 *
赵雷: "块设备自动化测试系统的设计及优化", 《CNKI中国硕士论文全文数据库》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109165126A (en) * 2018-08-17 2019-01-08 郑州云海信息技术有限公司 The method that RAID card links rate with hard disk is tested automatically under a kind of linux system
CN109460342A (en) * 2018-11-02 2019-03-12 郑州云海信息技术有限公司 Method, apparatus, equipment and the storage medium of a kind of testing hard disk performance and collector journal
CN109542790A (en) * 2018-11-26 2019-03-29 郑州云海信息技术有限公司 A kind of automated testing method and system of pressure test
CN109992420A (en) * 2019-04-08 2019-07-09 苏州浪潮智能科技有限公司 A kind of Parallel PC IE-SSD performance optimization method and system
CN109992420B (en) * 2019-04-08 2021-10-22 苏州浪潮智能科技有限公司 Parallel PCIE-SSD performance optimization method and system
WO2021056393A1 (en) * 2019-09-25 2021-04-01 苏州浪潮智能科技有限公司 Test method, electronic device and computer-readable storage medium
CN112667487A (en) * 2020-12-25 2021-04-16 深圳创新科技术有限公司 Method and device for executing FIO performance test by using Python script under Linux

Similar Documents

Publication Publication Date Title
CN108335722A (en) A kind of method of automatic test SSD interface rate
US10929260B2 (en) Traffic capture and debugging tools for identifying root causes of device failure during automated testing
US9747192B2 (en) Automated operating system installation on multiple drives
US6889159B2 (en) Scalable multithreaded system testing tool
US20040015762A1 (en) Scalable system testing tools
TW201833570A (en) Real-time capture of traffic upon failure for protocol debug
CN105223889A (en) A kind of method being applicable to the automatic monitoring PMC RAID card daily record of producing line
CN107480021A (en) A kind of method and system based on test Expander backboard hard disk indication lamps under linux system
CN104317684A (en) Method for synchronously automatic testing of bandwidth and transmission rate of multiple USB (Universal Serial Bus) interfaces
US20040015744A1 (en) Scalable multithreaded network testing tool
US8495626B1 (en) Automated operating system installation
US20210111967A1 (en) Graphical user interface for traffic capture and debugging tool
CA2811617C (en) Commit sensitive tests
CN107168838A (en) A kind of RAID card Auto-Test System
CN106908711A (en) A kind of high/low temperature test device for being applied to IC tests
CN112231163A (en) Multifunctional computer detection equipment and operation method thereof
CN103425580A (en) Method for automatically and rapidly obtaining and calibrating configuration information of cloud computing device
CN110085278A (en) A kind of test method and system of eMMC power down protection
US20040015745A1 (en) Scalable socketed testing tool
US20040015755A1 (en) Scalable scatter/gather I/O testing tool
CN113204456A (en) Test method, tool, device and equipment for VPP interface of server
WO2021056913A1 (en) Fault locating method, apparatus and system based on i2c communication
US20040015761A1 (en) Scalable asynchronous I/O testing tool
US7415560B2 (en) Method of automatically monitoring computer system debugging routine
CN104678292A (en) Test method and device for CPLD (Complex Programmable Logic Device)

Legal Events

Date Code Title Description
PB01 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: 20180727