CN104317684A - Method for synchronously and automatically testing bandwidths and transmission rates of multiple USB interfaces - Google Patents

Method for synchronously and automatically testing bandwidths and transmission rates of multiple USB interfaces Download PDF

Info

Publication number
CN104317684A
CN104317684A CN201410507454.8A CN201410507454A CN104317684A CN 104317684 A CN104317684 A CN 104317684A CN 201410507454 A CN201410507454 A CN 201410507454A CN 104317684 A CN104317684 A CN 104317684A
Authority
CN
China
Prior art keywords
test
bandwidth
usb interface
transfer rate
usb
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
CN201410507454.8A
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 CN201410507454.8A priority Critical patent/CN104317684A/en
Publication of CN104317684A publication Critical patent/CN104317684A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method for synchronously and automatically testing the bandwidth and transmission rate of a plurality of USB interfaces, which comprises the steps of executing instructions cat/proc/parameters, fdisk-l, demomidode and df-h under a Linux operating system, accurately capturing detailed information of a hard disk and a U disk, analyzing the captured information, distinguishing the hard disk from the U disk, automatically screening the U disk connected with each USB interface according to the information, automatically mounting all the U disks under the Linux operating system, automatically formatting all the U disks into a file system format capable of giving out the maximum bandwidth BW and transmission rate IOPS, directly executing a test program, and automatically installing a disk bandwidth and transmission rate test tool FIO and parameter setting. The technical scheme adopted by the invention completely meets the requirements of each platform in the industry at present, is simple, time-saving and easy to operate, realizes the real full-automatic multi-USB interface bandwidth and transmission rate calculation performance test, and has real and accurate results. Therefore, whether the bandwidth and the transmission rate performance of the USB interface of the test server platform meet the standard or not is evaluated.

Description

A kind of method of the synchronous multiple USB interface bandwidth of test and transfer rate automatically
Technical field
The present invention relates to server USB interface bandwidth technologies field, be specifically related to a kind of method of the synchronous multiple USB interface bandwidth of test and transfer rate automatically, be applicable to all kinds of server.
Background technology
Current industry is in server USB interface bandwidth and transfer rate performance test, many uses manual installation Open-Source Tools FIO Wireless Test Toolset, investigate from grinding server USB interface bandwidth and transfer rate test performance, but according to different server, USB interface quantity is different, and need all kinds of test parameter be manually set, workload is large, consumption manpower consuming time.
Summary of the invention
The technical problem to be solved in the present invention is: the invention provides and be a kind ofly suitable for the method that all kinds of server sync tests multiple USB interface bandwidth and transfer rate automatically, in order to realize succinct, save time, mode automatically, and be applicable to all processor platform servers of current industry, result compared with normal manual mode indifference, greatly reduces the cost of time and human resources.
The technical solution adopted in the present invention is:
A kind of method of the synchronous multiple USB interface bandwidth of test and transfer rate automatically, by performing instruction cat/proc/partations under linux operating system, fdisk – l, demidecode, df-h, accurate crawl hard disk and USB flash disk details, the information of crawl is analyzed, distinguish hard disk and USB flash disk, and go out according to this category information automatic screening USB flash disk that each USB interface connects, automatically by all USB flash disk carries under (SuSE) Linux OS, then all USB flash disk automatic formats are changed into the file system format can having given play to maximum bandwidth BW and transfer rate IOPS, direct execution test procedure, Auto-mounting Disk bandwidth and transfer rate testing tool FIO and setting parameter.
Testing tool FIO Auto-mounting, need not manual installation in addition, all test parameters such as read-write mode read, write, random read, random write and test block size 4k, 8k, 16k, 32k, 64k, 128k, 256k, 512k, 1024k have set while erecting tools, meet the testing requirement under all situations.
Described method testing standard is: after USB interface bandwidth and transfer rate have been tested, in the file of current script place /result under check FIO_USB.csv file, read, write, random read, random write bandwidth of each test block size and transfer rate numerical value in file record, unit MB/s, tester table stable operation in whole test process, there is not the abnormal occurrencies such as deadlock, power down, and survey USB interface bandwidth and transfer rate performance number is greater than 80% of this server platform USB interface theoretical value.
The operation steps of described method is:
1) Linux test platform (comprise Test Host platform, install (SuSE) Linux OS on Test Host) is got out;
2) power on Test Host start, enters operating system, uses root user to log in;
3) auto_run script and FIO instrument are copied on linux system desktop;
4) all USB interface are connected USB flash disk;
5) under linux system, run terminal terminal program, under terminal, perform following operation:
#cd/root/Desktop carriage return
# ./auto_run carriage return
Terminal display carry USB flash disk start to format one by one automatically, has formatd the test block size that rear appearance has been arranged;
6) there will be the FIO_U_testtime.txt file of writing time under now/root/Desktop/result file;
7) test machine continued synchronization runs all USB interface bandwidth and transfer rate performance test;
8) after USB bandwidth and transfer rate performance test complete, FIO_USB.csv file is checked under/root/Desktop/result, record read, write, random read and random write bandwidth and the transmission rate value of all block sizes in file record, unit is MB/s.Check/var/log/messages file, do not report an error record, and tester table stable operation in whole test process, there is not the abnormal occurrencies such as deadlock, power down.
Beneficial effect of the present invention:
Technical scheme that the present invention adopts, meets each platform needs in current industry completely, succinct, save time, easy to operate, realize real full-automatic multi-USB interface bandwidth and transfer rate calculates performance test, real result is accurate.Whether assessment testing service applicator platform USB interface bandwidth and transfer rate performance reach standard whereby.
This program realizes each processor platform universal method first in USB interface test, has broken the limitation of traditional USB interface bandwidth and transfer rate performance test.Next improves the method to USB interface performance test in current industry, complexity is simplified, manually can only build test environment, installation testing instrument, calculates test parameter and is improved as full automation; Last test result is also comparatively directly perceived, can directly weigh USB interface performance, whether reach industry internal standard; This kind of method of testing is applicable to various Linux operations popular at present simultaneously.
Accompanying drawing explanation
Fig. 1 is auto_run script realization flow figure of the present invention;
Fig. 2 is test flow chart of the present invention.
Embodiment
Below according to Figure of description, in conjunction with specific embodiments, the present invention is further described:
A kind of method of the synchronous multiple USB interface bandwidth of test and transfer rate automatically, by performing instruction cat/proc/partations under linux operating system, fdisk – l, demidecode, df-h, accurate crawl hard disk and USB flash disk details, the information of crawl is analyzed, distinguish hard disk and USB flash disk, and go out according to this category information automatic screening USB flash disk that each USB interface connects, automatically by all USB flash disk carries under (SuSE) Linux OS, then all USB flash disk automatic formats are changed into the file system format can having given play to maximum bandwidth BW and transfer rate IOPS, direct execution test procedure, Auto-mounting Disk bandwidth and transfer rate testing tool FIO and setting parameter.
Testing tool FIO Auto-mounting, need not manual installation in addition, all test parameters such as read-write mode read, write, random read, random write and test block size 4k, 8k, 16k, 32k, 64k, 128k, 256k, 512k, 1024k have set while erecting tools, meet the testing requirement under all situations.
Described method testing standard is:
After USB interface bandwidth and transfer rate have been tested, in the file of current script place /result under check FIO_USB.csv file, read, write, random read, random write bandwidth of each test block size and transfer rate numerical value in file record, unit MB/s, tester table stable operation in whole test process, there is not the abnormal occurrencies such as deadlock, power down, and survey USB interface bandwidth and transfer rate performance number is greater than 80% of this server platform USB interface theoretical value.
The operation steps of described method is:
1) Linux test platform (comprise Test Host platform, install (SuSE) Linux OS on Test Host) is got out;
2) power on Test Host start, enters operating system, uses root user to log in;
3) auto_run script and FIO instrument are copied on linux system desktop;
4) all USB interface are connected USB flash disk;
5) under linux system, run terminal terminal program, under terminal, perform following operation:
#cd/root/Desktop carriage return
# ./auto_run carriage return
Terminal display carry USB flash disk start to format one by one automatically, has formatd the test block size that rear appearance has been arranged;
6) there will be the FIO_U_testtime.txt file of writing time under now/root/Desktop/result file;
7) test machine continued synchronization runs all USB interface bandwidth and transfer rate performance test;
8) after USB bandwidth and transfer rate performance test complete, FIO_USB.csv file is checked under/root/Desktop/result, record read, write, random read and random write bandwidth and the transmission rate value of all block sizes in file record, unit is MB/s.Check/var/log/messages file, do not report an error record, and tester table stable operation in whole test process, there is not the abnormal occurrencies such as deadlock, power down.
Embodiment test data:
The test result that FIO_USB.csv deposits:
The FIO Test Result
Mode BW(MB/S) IOPS
randread-4k 9.9 2497
randread-64k 150 2345
randread-128k 275.6 2153
randread-256k 474 1851
randwrite-4k 9.4 2370
randwrite-64k 143.3 2239
randwrite-128k 251.7 1966
randwrite-256k 403 1574
read-4k 461.3 115341
read-64k 1458.7 23337
read-128k 1462.7 11701
read-256k 1464.2 5859
write-4k 409.6 102403
write-64k 1426.5 22823
write-128k 1435.7 11480
write-256k 1438.1 5755
The test duration record that FIO_U_testtime.txt deposits:
Thu Jan 24 10:39:46 EST 2013
Thu Jan 25 12:49:50 EST 2013
This USB interface bandwidth and transfer rate test procedure, bash script is adopted to realize automatic capturing disk number, all disk carry information, all disc format information and all disk type informations, automatic distinguishing hard disk and USB flash disk, carry also formats USB flash disk, then Auto-mounting Disk bandwidth and transfer rate testing tool FIO and setting parameter.

Claims (3)

1. the method for the synchronous multiple USB interface bandwidth of test and transfer rate automatically, it is characterized in that: by performing instruction cat/proc/partations under linux operating system, fdisk – l, demidecode, df-h, accurate crawl hard disk and USB flash disk details, the information of crawl is analyzed, distinguish hard disk and USB flash disk, and go out according to this category information automatic screening USB flash disk that each USB interface connects, automatically by all USB flash disk carries under (SuSE) Linux OS, then all USB flash disk automatic formats are changed into the file system format can having given play to maximum bandwidth BW and transfer rate IOPS, direct execution test procedure, Auto-mounting Disk bandwidth and transfer rate testing tool FIO and setting parameter.
2. the method for a kind of synchronous multiple USB interface bandwidth of test and transfer rate automatically according to claim 1, it is characterized in that, described method testing standard is: after USB interface bandwidth and transfer rate have been tested, in the file of current script place /result under check FIO_USB.csv file, the read of each test block size in file record, write, random read, random write bandwidth and transfer rate numerical value, unit MB/s, tester table stable operation in whole test process, do not occur crashing, the abnormal occurrencies such as power down, and survey USB interface bandwidth and transfer rate performance number is greater than 80% of this server platform USB interface theoretical value.
3. a kind of synchronous method of automatically testing multiple USB interface bandwidth and transfer rate according to claim 1 or 2, it is characterized in that, the operation steps of described method is:
1) Linux test platform is got out;
2) power on Test Host start, enters operating system, uses root user to log in;
3) auto_run script and FIO instrument are copied on linux system desktop;
4) all USB interface are connected USB flash disk;
5) under linux system, run terminal terminal program, under terminal, perform following operation:
#cd/root/Desktop carriage return
# ./auto_run carriage return
Terminal display carry USB flash disk start to format one by one automatically, has formatd the test block size that rear appearance has been arranged;
6) there will be the FIO_U_testtime.txt file of writing time under now/root/Desktop/result file;
7) test machine continued synchronization runs all USB interface bandwidth and transfer rate performance test;
8) after USB bandwidth and transfer rate performance test complete, FIO_USB.csv file is checked under/root/Desktop/result, record read, write, random read and random write bandwidth and the transmission rate value of all block sizes in file record, unit is MB/s; Check/var/log/messages file, do not report an error record, and tester table stable operation in whole test process, there is not the abnormal occurrence of deadlock, power down.
CN201410507454.8A 2014-09-28 2014-09-28 Method for synchronously and automatically testing bandwidths and transmission rates of multiple USB interfaces Pending CN104317684A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410507454.8A CN104317684A (en) 2014-09-28 2014-09-28 Method for synchronously and automatically testing bandwidths and transmission rates of multiple USB interfaces

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410507454.8A CN104317684A (en) 2014-09-28 2014-09-28 Method for synchronously and automatically testing bandwidths and transmission rates of multiple USB interfaces

Publications (1)

Publication Number Publication Date
CN104317684A true CN104317684A (en) 2015-01-28

Family

ID=52372919

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410507454.8A Pending CN104317684A (en) 2014-09-28 2014-09-28 Method for synchronously and automatically testing bandwidths and transmission rates of multiple USB interfaces

Country Status (1)

Country Link
CN (1) CN104317684A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104660471A (en) * 2015-03-10 2015-05-27 浪潮集团有限公司 Method for automatically testing PCIE-SSD transmission rate and bandwidth under Linux
CN105260141A (en) * 2015-10-27 2016-01-20 浪潮电子信息产业股份有限公司 Method for degrading hard disk interface rate
CN105700980A (en) * 2016-04-27 2016-06-22 浪潮电子信息产业股份有限公司 Method for realizing automatic mounting of USB flash disk and testing speed of USB port
CN105893198A (en) * 2016-04-29 2016-08-24 浪潮电子信息产业股份有限公司 Method and device for testing KVM stability
CN106502844A (en) * 2016-10-11 2017-03-15 郑州云海信息技术有限公司 A kind of method of the sAS port bandwidths of test RAID memory Is O
CN107402858A (en) * 2017-08-01 2017-11-28 郑州云海信息技术有限公司 A kind of application method and device of FIO testing tools
CN107590035A (en) * 2017-07-19 2018-01-16 郑州云海信息技术有限公司 A kind of server USB automatic test approach
CN108279933A (en) * 2018-01-25 2018-07-13 郑州云海信息技术有限公司 A kind of method of automatic carry USB flash disk under Linux system
CN108874645A (en) * 2018-06-12 2018-11-23 郑州云海信息技术有限公司 A kind of method and system for integrating FIO performance data
CN109446010A (en) * 2018-11-01 2019-03-08 郑州云海信息技术有限公司 A kind of AEP memory pressure stability test method and system
CN114627571A (en) * 2022-03-18 2022-06-14 广州文远知行科技有限公司 Data uploading method and device, vehicle and storage medium
CN112540881B (en) * 2019-09-20 2023-11-14 深圳宏芯宇电子股份有限公司 Storage device test management method and storage device test management system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1553334A (en) * 2003-06-05 2004-12-08 英业达股份有限公司 System for detecting master USB interface transfer rate and method thereof
TW200500843A (en) * 2003-06-25 2005-01-01 Genesys Logic Inc Method using low-speed test machine to test high-speed USB transmission chip and test circuit for same
KR20050072615A (en) * 2004-01-07 2005-07-12 삼성전자주식회사 Usb port testing jig
CN101071389A (en) * 2007-07-16 2007-11-14 威盛电子股份有限公司 Formating and testing method
US20090300171A1 (en) * 2008-05-28 2009-12-03 Bhame William H Remotely managed test and monitoring device functionality with multi-faceted communication capability
CN102158374A (en) * 2011-05-12 2011-08-17 瑞斯康达科技发展股份有限公司 Bandwidth speed limiting testing method and testing device
CN103744696A (en) * 2013-12-26 2014-04-23 浪潮电子信息产业股份有限公司 Linux based USB bus width testing method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1553334A (en) * 2003-06-05 2004-12-08 英业达股份有限公司 System for detecting master USB interface transfer rate and method thereof
TW200500843A (en) * 2003-06-25 2005-01-01 Genesys Logic Inc Method using low-speed test machine to test high-speed USB transmission chip and test circuit for same
KR20050072615A (en) * 2004-01-07 2005-07-12 삼성전자주식회사 Usb port testing jig
CN101071389A (en) * 2007-07-16 2007-11-14 威盛电子股份有限公司 Formating and testing method
US20090300171A1 (en) * 2008-05-28 2009-12-03 Bhame William H Remotely managed test and monitoring device functionality with multi-faceted communication capability
CN102158374A (en) * 2011-05-12 2011-08-17 瑞斯康达科技发展股份有限公司 Bandwidth speed limiting testing method and testing device
CN103744696A (en) * 2013-12-26 2014-04-23 浪潮电子信息产业股份有限公司 Linux based USB bus width testing method

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104660471A (en) * 2015-03-10 2015-05-27 浪潮集团有限公司 Method for automatically testing PCIE-SSD transmission rate and bandwidth under Linux
CN105260141A (en) * 2015-10-27 2016-01-20 浪潮电子信息产业股份有限公司 Method for degrading hard disk interface rate
CN105700980A (en) * 2016-04-27 2016-06-22 浪潮电子信息产业股份有限公司 Method for realizing automatic mounting of USB flash disk and testing speed of USB port
CN105893198A (en) * 2016-04-29 2016-08-24 浪潮电子信息产业股份有限公司 Method and device for testing KVM stability
CN106502844A (en) * 2016-10-11 2017-03-15 郑州云海信息技术有限公司 A kind of method of the sAS port bandwidths of test RAID memory Is O
CN107590035A (en) * 2017-07-19 2018-01-16 郑州云海信息技术有限公司 A kind of server USB automatic test approach
CN107402858A (en) * 2017-08-01 2017-11-28 郑州云海信息技术有限公司 A kind of application method and device of FIO testing tools
CN108279933A (en) * 2018-01-25 2018-07-13 郑州云海信息技术有限公司 A kind of method of automatic carry USB flash disk under Linux system
CN108874645A (en) * 2018-06-12 2018-11-23 郑州云海信息技术有限公司 A kind of method and system for integrating FIO performance data
CN109446010A (en) * 2018-11-01 2019-03-08 郑州云海信息技术有限公司 A kind of AEP memory pressure stability test method and system
CN109446010B (en) * 2018-11-01 2021-10-29 郑州云海信息技术有限公司 AEP memory pressure performance stability testing method and system
CN112540881B (en) * 2019-09-20 2023-11-14 深圳宏芯宇电子股份有限公司 Storage device test management method and storage device test management system
CN114627571A (en) * 2022-03-18 2022-06-14 广州文远知行科技有限公司 Data uploading method and device, vehicle and storage medium
CN114627571B (en) * 2022-03-18 2024-05-24 广州文远知行科技有限公司 Data uploading method and device, vehicle and storage medium

Similar Documents

Publication Publication Date Title
CN104317684A (en) Method for synchronously and automatically testing bandwidths and transmission rates of multiple USB interfaces
CN104660471A (en) Method for automatically testing PCIE-SSD transmission rate and bandwidth under Linux
US10929260B2 (en) Traffic capture and debugging tools for identifying root causes of device failure during automated testing
CN102568522B (en) The method of testing of hard disk performance and device
CN101093462B (en) Automatization method for testing schooling pressure on database application
CN104572386B (en) Automatically the wide method of HBA cassette tapes is tested under a kind of Linux
CN104268076A (en) Testing method suitable for automatically testing memory bandwidth of each processor platform
CN103578568A (en) Method and apparatus for testing performances of solid state disks
CN107068199B (en) Performance test method of SSD (solid State disk)
CN104850480A (en) Method and device for testing performance of hard disk of high-density storage server
CN111722877B (en) PCIE configuration identification method and related assembly
CN109684150B (en) Performance test system, test method and simulation platform of storage particle controller
CN107193699A (en) One kind tests the wide time-delay method of HCA cassette tapes automatically by RDMA modes
CN103984619A (en) Performance monitoring method of network storage system
CN103984613A (en) Method for automatically testing floating point calculation performance of CPU (Central Processing Unit)
CN104360921A (en) Method, device and system for monitoring performance of mobile terminal
CN110865944A (en) Data analysis method and device for test case, storage medium and test equipment
CN111400154A (en) Performance test method and related device for solid state disk
CN114528792A (en) Chip verification method and device, electronic equipment and storage medium
CN112269697A (en) Equipment storage performance testing method, system and related device
CN105138293A (en) Disk performance evaluation method based on database
CN107273251A (en) A kind of method of testing of the racks of Rack in a production environment JBOD storages
CN114265733A (en) Automatic testing method and device for abnormal power failure of solid state disk
CN102222517B (en) Cluster harddisk automation test method and system
CN116244133A (en) Hard disk test management method, system, terminal and storage 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20150128

RJ01 Rejection of invention patent application after publication