CN104572386A - Method for automatically testing HBA card bandwidth under Linux - Google Patents
Method for automatically testing HBA card bandwidth under Linux Download PDFInfo
- Publication number
- CN104572386A CN104572386A CN201510009099.6A CN201510009099A CN104572386A CN 104572386 A CN104572386 A CN 104572386A CN 201510009099 A CN201510009099 A CN 201510009099A CN 104572386 A CN104572386 A CN 104572386A
- Authority
- CN
- China
- Prior art keywords
- test
- hba
- linux
- automatically
- cassette tape
- 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
Links
Landscapes
- Debugging And Monitoring (AREA)
- Recording Or Reproducing By Magnetic Means (AREA)
Abstract
The invention discloses a method for automatically testing HBA card bandwidth under Linux. The method for automatically testing the HBA card bandwidth under the Linux includes that based on a Linux operating system, using the system to command cat/proc/partations and fdisk-l to capture information of memory discs inserted in all the HBA ports through bash script, automatically mounting and formatting all the memory discs, and using a test tool FIO to automatically test the bandwidth and transmission speed rate performance of each HBA port according to set memory disc test parameters and test block size. The test method is suitable for all the processor platforms in the current industries, does not need complex environment building, tool mounting and parameter setting, and realizes simplicity, time saving, automatic test and result storage, and precise performance index.
Description
Technical field
The present invention relates to computer technology, a kind of method that specifically under Linux, test HBA cassette tape is wide automatically.
Background technology
HBA(Host Bus Adapter) i.e. host bus adaptor, be one provides I/O (I/O) to process and the circuit board of physical connection or integrated circuit adapter between server and memory storage.Because HBA alleviates the burden of primary processor in data storage and search task, it can improve the performance of server.HBA and the disk subsystem be attached thereto sometimes together be referred to as a disk channel.
Host bus adaptor (Host Bus Adaptor) HBA is within the storage system for connecting computer-internal bus and storage networking.HBA is the physical connection between the I/O passage of server internal and the I/O passage of storage system.The most frequently used server internal I/O passage is PCI and Sbus, and they are communications protocol of connection server CPU and peripherals.In fact the I/O passage of storage system is exactly optical-fibre channel.And the effect of HBA is exactly realize inner passage agreement PCI or Sbus and FC (Fibre Channel: optical-fibre channel, but optical-fibre channel does not represent necessarily to be needed to use optical fiber as transmission medium, so can not be interpreted as that FC is exactly optical fiber Fiber here) conversion between agreement.
Current industry is in server HBA interface bandwidth and transfer rate performance test, and many use manual installation Open-Source Tools FIO Wireless Test Toolsets, investigate from grinding server HBA interface bandwidth and transfer rate test performance.But according to different server, HBA card quantity is different, and HBA interface is tested one by one, and often kind of test pattern parameter and block size parameter need one by one manually input to test, and workload is large, consumption manpower consuming time.
Summary of the invention
The bright technical matters existed for prior art of we, provides a kind of method that under Linux, test HBA cassette tape is wide automatically.
The method that under a kind of Linux of the present invention, test HBA cassette tape is wide automatically, the technical scheme solving the problems of the technologies described above employing is as follows: the method that under described Linux, test HBA cassette tape is wide automatically, based on linux operating system, by bash script, utilize system issue orders cat/proc/partations and fdisk-l capture all HBA interfaces the disc information of inserting, automatic carry also formats all memory discs, according to the memory disc test parameter set and test block size, testing tool FIO is utilized automatically to test HBA interface bandwidth and transfer rate performance.
Preferably, capture all HBA interfaces the disc information of inserting, refer to and accurately capture hard disk and memory disc details, the information of crawl is analyzed, distinguish hard disk and memory disc.
Preferably, automatic carry also formats all memory discs, refers to select each HBA memory disc that interface connects according to disc information Automatic sieve, automatically by all memory disc carries under (SuSE) Linux OS; All memory disc automatic formats are changed into the file system format can having given play to maximum bandwidth BW and transfer rate IOPS.
Preferably, Auto-mounting testing tool FIO, all test parameters and test block size have set while erecting tools.
Preferably, described test parameter comprises read-write mode read, write, random read, random write.
Preferably, described test block size comprises 4k, 8k, 16k, 32k, 64k, 128k, 256k, 512k, 1024k.
Preferably, by FIO__HBA_testtime.txt recording test time, record floating-point operation test result by FIO_HBA.csv.
The beneficial effect that the method that under a kind of Linux of the present invention, test HBA cassette tape is wide automatically compared with prior art has is: this method of testing is applicable to all processor platforms in current industry, achieve without the need to loaded down with trivial details environmental structure, instrument installation, optimum configurations, succinctly, save time, automatic test and result preserve, and performance index is accurate; The method passes through automated system operation FIO program, without the need to artificial guard during test, and automatic logging test results, test log and test duration; Without the need to all HBA memory discs that interface connects of manual identification carry and arrange any test parameter, meet Servers-all testing requirement;
This method of testing, by changing the Operating Complexity of traditional HBA interface test method, realizes robotization completely, saves test environment and builds the time, obtain stable results of property; Be applicable to current all types server HBA interface bandwidth and transfer rate performance test, there is good universal and generalization, can more scientific, the more effective performance assessing HBA card interface, promote the total quality of Company server platform.
Accompanying drawing explanation
Accompanying drawing 1 is the process flow diagram of the method that test HBA cassette tape is wide automatically under described Linux.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly understand, below in conjunction with specific embodiment, and with reference to accompanying drawing, the method that under a kind of Linux of the present invention, test HBA cassette tape is wide is automatically further described.
The method that under Linux of the present invention, test HBA cassette tape is wide automatically, based on linux operating system, by bash script, utilize system issue orders cat/proc/partations and fdisk-l capture all HBA interfaces the disc information of inserting, automatic carry also formats all memory discs, according to the memory disc test parameter set and test block size, testing tool FIO is utilized automatically to test HBA interface bandwidth and transfer rate performance.
The method that under Linux of the present invention, test HBA cassette tape is wide automatically, be as the criterion with the disc information captured, the intertwining mistake of artificial test storage can not be produced, ensure that the steady state (SS) of test environment, and without the need to guard, automatic preservation bandwidth BW and transfer rate IOPS test result, recording test time and log, fully achieve robotization, succinct, save time, easy to operate, save manpower, also ensure the accuracy of HBA interface bandwidth and transfer rate test performance simultaneously.
Embodiment:
The method that under a kind of Linux described in the present embodiment, test HBA cassette tape is wide automatically, can test HBA interface bandwidth and the transfer rate performance of Servers-all automatically; By under linux operating system, perform instruction cat/proc/partations, fdisk – l, demidecode, df-h, accurate crawl hard disk and memory disc details, the information of crawl is analyzed, distinguish hard disk and memory disc, and go out each HBA memory disc that interface connects according to this category information automatic screening, automatically by all memory disc carries under (SuSE) Linux OS, then all memory disc automatic formats are changed into the file system format can having given play to maximum bandwidth BW and transfer rate IOPS, directly perform test procedure.
In the method that under Linux described in the present embodiment, test HBA cassette tape is wide automatically, Auto-mounting testing tool FIO, 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, can meet the testing requirement under all situations.
The method that under Linux described in the present embodiment, test HBA cassette tape is wide automatically, its idiographic flow as shown in Figure 1, by uning auto_run_fio.shell, obtain disc format information, check disk number, and obtain disk carry information, check disc information, then automatic distinguishing hard disk and memory disc, the all memory discs of carry also format, finally utilize FIO instrument Auto-mounting and test parameter is set, automatically test, simultaneously by FIO__HBA_testtime.txt recording test time, wide and the transfer rate performance test of HBA cassette tape terminates, floating-point operation test result is recorded by FIO_HBA.csv.
This HBA card interface bandwidth and transfer rate method of testing, 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 memory disc, carry also formats memory disc, then Auto-mounting Disk bandwidth and transfer rate testing tool FIO and setting parameter, meet each platform needs in current industry completely, succinctly, save time, easy to operate, realize real full-automation many HBA interface bandwidth and transfer rate calculation performance test, real result is accurate.Can pass through the method, whether assessment testing service applicator platform HBA interface bandwidth and transfer rate performance reach standard.
Use the method that under Linux described in the present embodiment, test HBA cassette tape is wide automatically, specific operation process is as follows:
1) get out Test Host platform, Test Host installs (SuSE) Linux OS;
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 HBA card interfaces are connected memory disc;
5) under linux system, run terminal terminal program, under terminal, perform following operation:
A) #cd/root/Desktop carriage return
B) # ./auto_run carriage return
6) Terminal display carry memory disc start to format one by one automatically, has formatd the test block size that rear appearance has been arranged;
7) there will be the FIO_HBA_testtime.txt file of writing time under now/root/Desktop/result file;
8) Test Host continued synchronization runs all HBA interface bandwidths and transfer rate performance test;
9) after and transfer rate performance test wide until HBA cassette tape completes, FIO_HBA.csv file is checked under/root/Desktop/result, record read, write, random read and random write bandwidth and the transmission rate value of all test block sizes in file record, unit is MB/s; Check/var/log/messages file, do not report an error record, and in whole test process, Test Host platform stable is run, and does not occur the abnormal occurrencies such as deadlock, power down.
Above-mentioned steps one to three content is get out Linux test platform, and copies floating-point operation auto_run.sh script and FIO instrument; Then, under linux system, run terminal terminal program, under terminal, run auto_run.sh script.
The side that under Linux of the present invention, test HBA cassette tape is wide automatically, be applicable to all kinds of server sync and automatically test multiple HBA interface bandwidth and transfer rate, 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.
Above-mentioned embodiment is only concrete case of the present invention; scope of patent protection of the present invention includes but not limited to above-mentioned embodiment; any claims according to the invention and any person of an ordinary skill in the technical field to its suitable change done or replacement, all should fall into scope of patent protection of the present invention.
Claims (7)
1. the method that under a Linux, test HBA cassette tape is wide automatically, it is characterized in that, the method that under described Linux, test HBA cassette tape is wide automatically, based on linux operating system, by bash script, utilize system issue orders cat/proc/partations and fdisk-l capture all HBA interfaces the disc information of inserting, automatic carry also formats all memory discs, according to the memory disc test parameter set and test block size, testing tool FIO is utilized automatically to test HBA interface bandwidth and transfer rate performance.
2. a kind of method that test HBA cassette tape is wide automatically under Linux according to claim 1, it is characterized in that, capture all HBA interfaces the disc information of inserting, refer to and accurately capture hard disk and memory disc details, the information of crawl is analyzed, distinguishes hard disk and memory disc.
3. a kind of method that test HBA cassette tape is wide automatically under Linux according to claim 2, it is characterized in that, automatic carry also formats all memory discs, refers to select each HBA memory disc that interface connects according to disc information Automatic sieve, automatically by all memory disc carries under (SuSE) Linux OS; All memory disc automatic formats are changed into the file system format can having given play to maximum bandwidth BW and transfer rate IOPS.
4. a kind of method that test HBA cassette tape is wide automatically under Linux according to claim 3, it is characterized in that, Auto-mounting testing tool FIO, all test parameters and test block size have set while erecting tools.
5. a kind of method that test HBA cassette tape is wide automatically under Linux according to claim 4, it is characterized in that, described test parameter comprises read-write mode read, write, random read, random write.
6. a kind of method that test HBA cassette tape is wide automatically under Linux according to claim 4, it is characterized in that, described test block size comprises 4k, 8k, 16k, 32k, 64k, 128k, 256k, 512k, 1024k.
7. a kind of method that test HBA cassette tape is wide automatically under Linux according to claim 4, is characterized in that, by FIO__HBA_testtime.txt recording test time, records floating-point operation test result by FIO_HBA.csv.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510009099.6A CN104572386B (en) | 2015-01-08 | 2015-01-08 | Automatically the wide method of HBA cassette tapes is tested under a kind of Linux |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510009099.6A CN104572386B (en) | 2015-01-08 | 2015-01-08 | Automatically the wide method of HBA cassette tapes is tested under a kind of Linux |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104572386A true CN104572386A (en) | 2015-04-29 |
CN104572386B CN104572386B (en) | 2017-11-10 |
Family
ID=53088520
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510009099.6A Active CN104572386B (en) | 2015-01-08 | 2015-01-08 | Automatically the wide method of HBA cassette tapes is tested under a kind of Linux |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104572386B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104978250A (en) * | 2015-06-23 | 2015-10-14 | 浪潮电子信息产业股份有限公司 | Iozone-based HBA card performance test method |
CN106528354A (en) * | 2016-10-12 | 2017-03-22 | 郑州云海信息技术有限公司 | Automation method for programming memory power source fru id |
CN108874645A (en) * | 2018-06-12 | 2018-11-23 | 郑州云海信息技术有限公司 | A kind of method and system for integrating FIO performance data |
CN108959055A (en) * | 2018-07-25 | 2018-12-07 | 郑州云海信息技术有限公司 | Readwrite performance test method, device and the equipment of xfs file system |
CN109446010A (en) * | 2018-11-01 | 2019-03-08 | 郑州云海信息技术有限公司 | A kind of AEP memory pressure stability test method and system |
CN109741780A (en) * | 2019-01-07 | 2019-05-10 | 东莞记忆存储科技有限公司 | A kind of method and its system based on linux system test SSD performance |
CN110543396A (en) * | 2019-09-06 | 2019-12-06 | 深圳市安信达存储技术有限公司 | device and method for testing hard disk by PCIe expansion cluster |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103970570A (en) * | 2014-05-16 | 2014-08-06 | 浪潮电子信息产业股份有限公司 | Testing method for compatibility adaptation between disk array and mainframe |
US20140298101A1 (en) * | 2013-03-29 | 2014-10-02 | Inventec Corporation | Distributed pressure testing system and method |
CN104268076A (en) * | 2014-09-23 | 2015-01-07 | 浪潮电子信息产业股份有限公司 | Testing method suitable for automatically testing memory bandwidth of each processor platform |
-
2015
- 2015-01-08 CN CN201510009099.6A patent/CN104572386B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140298101A1 (en) * | 2013-03-29 | 2014-10-02 | Inventec Corporation | Distributed pressure testing system and method |
CN103970570A (en) * | 2014-05-16 | 2014-08-06 | 浪潮电子信息产业股份有限公司 | Testing method for compatibility adaptation between disk array and mainframe |
CN104268076A (en) * | 2014-09-23 | 2015-01-07 | 浪潮电子信息产业股份有限公司 | Testing method suitable for automatically testing memory bandwidth of each processor platform |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104978250A (en) * | 2015-06-23 | 2015-10-14 | 浪潮电子信息产业股份有限公司 | Iozone-based HBA card performance test method |
CN106528354A (en) * | 2016-10-12 | 2017-03-22 | 郑州云海信息技术有限公司 | Automation method for programming memory power source fru id |
CN106528354B (en) * | 2016-10-12 | 2019-09-17 | 郑州云海信息技术有限公司 | A kind of automatic method of burning memory power fru id |
CN108874645A (en) * | 2018-06-12 | 2018-11-23 | 郑州云海信息技术有限公司 | A kind of method and system for integrating FIO performance data |
CN108959055A (en) * | 2018-07-25 | 2018-12-07 | 郑州云海信息技术有限公司 | Readwrite performance test method, device and the equipment of xfs file system |
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 |
CN109741780A (en) * | 2019-01-07 | 2019-05-10 | 东莞记忆存储科技有限公司 | A kind of method and its system based on linux system test SSD performance |
CN110543396A (en) * | 2019-09-06 | 2019-12-06 | 深圳市安信达存储技术有限公司 | device and method for testing hard disk by PCIe expansion cluster |
CN110543396B (en) * | 2019-09-06 | 2021-03-02 | 深圳市安信达存储技术有限公司 | Device and method for testing hard disk by PCIe expansion cluster |
Also Published As
Publication number | Publication date |
---|---|
CN104572386B (en) | 2017-11-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104572386A (en) | Method for automatically testing HBA card bandwidth under Linux | |
CN104660471A (en) | Method for automatically testing PCIE-SSD transmission rate and bandwidth under Linux | |
US10896113B2 (en) | Method for implementing backplane lighting for multiple NVMe hard disks | |
US10929260B2 (en) | Traffic capture and debugging tools for identifying root causes of device failure during automated testing | |
CN104317684A (en) | Method for synchronously and automatically testing bandwidths and transmission rates of multiple USB interfaces | |
CN102568522B (en) | The method of testing of hard disk performance and device | |
CN107832179A (en) | A kind of PCIe Error Enabling method of testings | |
CN111400121B (en) | Server hard disk slot positioning and maintaining method | |
CN105468482A (en) | Hard disk position identification and fault diagnosis method and server device | |
CN114528792A (en) | Chip verification method and device, electronic equipment and storage medium | |
CN112000535A (en) | SAS Expander card-based hard disk abnormity identification method and processing method | |
US8843781B1 (en) | Managing drive error information in data storage systems | |
CN105138293A (en) | Disk performance evaluation method based on database | |
CN107480017A (en) | The batch-testing device and method of PCIE outer plug-in cards | |
CN107273251A (en) | A kind of method of testing of the racks of Rack in a production environment JBOD storages | |
CN110413463A (en) | A kind of SMART information inspection method of hard disk | |
CN113590405A (en) | Hard disk error detection method and device, storage medium and electronic device | |
US10002062B2 (en) | Quasi disk drive for testing disk interface performance | |
TWI742461B (en) | System for detecting installation state of hard disk | |
CN204086415U (en) | Fault wave recording device | |
CN113204475B (en) | Lighting device and method for hard disk of server backboard and server | |
WO2023050671A1 (en) | Server fault locating method and apparatus, electronic device, and storage medium | |
CN110998509B (en) | Method, equipment and system for acquiring optical module link negotiation information | |
CN111209146A (en) | RAID card aging test method and system | |
CN109683053A (en) | A kind of interface test system and test method based on interface equipment factory test |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |