CN109741780A - A kind of method and its system based on linux system test SSD performance - Google Patents

A kind of method and its system based on linux system test SSD performance Download PDF

Info

Publication number
CN109741780A
CN109741780A CN201910012108.5A CN201910012108A CN109741780A CN 109741780 A CN109741780 A CN 109741780A CN 201910012108 A CN201910012108 A CN 201910012108A CN 109741780 A CN109741780 A CN 109741780A
Authority
CN
China
Prior art keywords
test
fio
disk
performance
linux system
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
CN201910012108.5A
Other languages
Chinese (zh)
Inventor
刘雄雅
朱振武
王俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongguan Memory Storage Technology Co Ltd
Original Assignee
Dongguan Memory Storage 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 Dongguan Memory Storage Technology Co Ltd filed Critical Dongguan Memory Storage Technology Co Ltd
Priority to CN201910012108.5A priority Critical patent/CN109741780A/en
Publication of CN109741780A publication Critical patent/CN109741780A/en
Pending legal-status Critical Current

Links

Abstract

The present invention relates to a kind of methods and its system based on linux system test SSD performance;Wherein, the method based on linux system test SSD performance, comprising the following steps: S1 installs FIO testing tool;S2 obtains current drive list, and eliminating system disk, filters out tested disk;S3 does the test of the pretreatment before performance test to tested disk;S4 generates FIO test profile according to demand, and test result is imported into document;S5 draws a diagram information according to the result data in document.The present invention solves the problems, such as to need to take considerable time to the analysis and arrangement of test result after performance test, its is one-touch to install, tests, automatically analyzing the performance test results, the testing time is greatly saved, improves testing efficiency, it being capable of preferably meet demand.

Description

A kind of method and its system based on linux system test SSD performance
Technical field
The present invention relates to SSD storing technology fields, more specifically refer to a kind of based on linux system test SSD performance Method and its system.
Background technique
In existing technology, based on the performance for testing SSD under linux system, mainly surveyed by tools such as FIO It tries, it is more than the parameter being related to due to FIO tool and miscellaneous, it is after the completion of testing as a result, manually can only go to analyze by log, work Amount seems heavy and inefficient, therefore is unable to satisfy demand.
Summary of the invention
It is an object of the invention to overcome the deficiencies of existing technologies, provide a kind of based on linux system test SSD performance Method and its system.
To achieve the above object, the present invention is used in lower technical solution:
A method of SSD performance is tested based on linux system, comprising the following steps:
S1 installs FIO testing tool;
S2 obtains current drive list, and eliminating system disk, filters out tested disk;
S3 does the test of the pretreatment before performance test to tested disk;
S4 generates FIO test profile according to demand, and test result is imported into document;
S5 draws a diagram information according to the result data in document.
Its further technical solution are as follows: before the S1, comprising: build test environment, and input the IP of storage server Address and logon account.
Its further technical solution are as follows: before the S1, further includes: by FIO application and its asynchronous I/O engine Libaio.so.1 file and FIO test script import in storage server, and can hold to FIO and libaio.so.1 addition Row permission.
Its further technical solution are as follows: after the S3, further includes: execute FIO performance test script, disk to be measured is carried out Performance test.
Its further technical solution are as follows: in the S4, generate FIO test profile according to demand, and by test result Document is imported into according to bandwidth, input-output operation number per second and delay parameter information.
A kind of system based on linux system test SSD performance, including Host host, interchanger, storage server, peace Unit is filled, acquiring unit handles test cell, generates import unit and drawing unit;The interchanger and the Host host It is connected with storage server;The installation unit, acquiring unit handle test cell, generate import unit and drawing unit is equal It is connect with the storage server.
Its further technical solution are as follows: the Host host is for executing FIO performance test script, in storage server Disk to be measured be tested for the property;The interchanger, for Host host and storage server composition test local area network;It is described to deposit Storage server is for providing the test environment of disk to be measured.
Its further technical solution are as follows: the agreement of the local area network is ICP/IP protocol.
Its further technical solution are as follows: further include:
The installation unit, for installing FIO testing tool;
The acquiring unit filters out tested disk for obtaining current drive list, and eliminating system disk;
The processing test cell, for doing the test of the pretreatment before performance test to tested disk;
Test result for generating FIO test profile according to demand, and is imported into text by the generation import unit Shelves;
The drawing unit, for being drawn a diagram information according to the result data in document.
Its further technical solution are as follows: in the generation import unit, FIO test profile is generated according to demand, and Test result is imported into document according to bandwidth, input-output operation number per second and delay parameter information.
Compared with the prior art, the invention has the advantages that: solve after performance test to the analysis of test result and Arrangement needs the problem of taking considerable time, one-touch to install, test, automatically analyzing the performance test results, is greatly saved Testing time improves testing efficiency, being capable of preferably meet demand.
The invention will be further described in the following with reference to the drawings and specific embodiments.
Detailed description of the invention
Fig. 1 is a kind of method flow diagram that SSD performance is tested based on linux system of the present invention;
Fig. 2 is a kind of system block diagram that SSD performance is tested based on linux system of the present invention.
10 Host host, 20 interchanger
30 storage server, 40 installation unit
50 acquiring units 60 handle test cell
70 generate 80 drawing unit of import unit
Specific embodiment
In order to more fully understand technology contents of the invention, combined with specific embodiments below to technical solution of the present invention into One step introduction and explanation, but not limited to this.
Such as Fig. 1 to specific embodiment shown in Fig. 2, wherein as shown in Figure 1, the invention discloses one kind to be based on Linux system The method of unified test examination SSD performance, comprising the following steps:
S1 installs FIO testing tool;
S2 obtains current drive list, and eliminating system disk, filters out tested disk;
S3 does the test of the pretreatment before performance test to tested disk;
S4 generates FIO test profile according to demand, and test result is imported into document;
S5 draws a diagram information according to the result data in document.
Wherein, before S1, comprising: successfully build test environment, open Xshell software, select SSH, and input storage The IP address and logon account of server.
Further, before the S1, further includes:, will using Xshell software after being successfully logged onto storage server FIO application program and its asynchronous I/O engine libaio.so.1 file and FIO test script import in storage server, and benefit The chmod order carried with Linux shell adds executable permission to FIO, libaio.so.1.
Wherein, FIO test script can be write on Xshell software, FIO software can be used directly it and answer without installation With program and corresponding asynchronous I/O engine file (libaio.so.1).
Wherein, after the S3, further includes: execute FIO performance test script, be tested for the property to disk to be measured.
Wherein, in the S4, FIO test profile is generated according to demand, and by test result according to bandwidth, per second Input-output operation number and delay parameter information imported into document.
Further, FIO readwrite tests script model: safety erasing is write totally, and the ratio of writing accounts for 100%, and mode is sequence It writes 2 times, queue depth 32, single thread, IO size is 128k, and checking algorithm is MD5 verification, and ignores IO error or number According to inconsistent situation and continue to issue IO, the bandwidth per second for recording primary SSD to be measured, IOPS and delay etc..
Inventive energy testing process and Partial key code are as follows:
Step1: safety erasing SSD, key code are as follows:
hdparm--user-master u--security-erase sugon$Hard_Disk
Step2: automatic installation FIO tool, key code are as follows:
Step3: current drive list, and eliminating system disk are obtained automatically, filters out tested disk, key code is as follows:
Step4: jumping and executes subfunction set_HDD (), and the purpose of the subfunction is before doing performance test to tested disk Pretreatment test.
Step5: jumping and executes subfunction Configure (), the subfunction can to according to configuration file (demand) from It is dynamic to generate FIO test parameter.
Step6: jumping and executes subfunction Running (), which can be by test result according to bandwidth, per second The parametric results such as input-output operation number, delay are directed respectively into document.
Step7: jumping and executes subfunction jitter_plot (), which can be according to the result data in document Automatically it draws a diagram.
The present invention, which is solved, inputs parameter and the relatively more very expenses of output result parameter by the FIO that manual operation is analyzed When laborious problem.
As shown in Fig. 2, the invention also discloses a kind of system based on linux system test SSD performance, including Host master Machine 10, interchanger 20, storage server 30, installation unit 40, acquiring unit 50 handle test cell 60, generate import unit 70 and drawing unit 80;The interchanger 20 is connect with the Host host 10 and storage server 30;The installation unit 40, acquiring unit 50 handles test cell 60, generate import unit 70 and drawing unit 80 with the storage server 30 Connection.
Wherein, the Host host 10 is for executing FIO performance test script, to the disk to be measured in storage server 30 into Row performance test;The interchanger 20, for Host host 10 and the composition test local area network of storage server 30;The storage clothes Business device 30 is for providing the test environment of disk to be measured.
Further, it for the model of Host host 10, in the present embodiment, is not strictly required, it can be according to demand To configure.
Wherein, the agreement of the local area network is ICP/IP protocol.
Further, it for the model of interchanger 20, in the present embodiment, is not strictly required, it can be according to demand To configure.
Wherein, the system further include:
The installation unit 40, for installing FIO testing tool;
The acquiring unit 50 filters out tested disk for obtaining current drive list, and eliminating system disk;
The processing test cell 60, for doing the test of the pretreatment before performance test to tested disk;
The generation import unit 70 for generating FIO test profile according to demand, and test result is imported into Document;
The drawing unit 80, for being drawn a diagram information according to the result data in document.
Further, in the generation import unit 70, FIO test profile is generated according to demand, and test is tied Fruit imported into document according to bandwidth, input-output operation number per second and delay parameter information.
In conclusion needing what is taken considerable time to ask the analysis of test result and arrangement after solving performance test Topic, it is one-touch to install, test, automatically analyzing the performance test results, the testing time is greatly saved, improves testing efficiency, It being capable of preferably meet demand.
It is above-mentioned that technology contents of the invention are only further illustrated with embodiment, in order to which reader is easier to understand, but not It represents embodiments of the present invention and is only limitted to this, any technology done according to the present invention extends or recreation, by of the invention Protection.Protection scope of the present invention is subject to claims.

Claims (10)

1. a kind of method based on linux system test SSD performance, which comprises the following steps:
S1 installs FIO testing tool;
S2 obtains current drive list, and eliminating system disk, filters out tested disk;
S3 does the test of the pretreatment before performance test to tested disk;
S4 generates FIO test profile according to demand, and test result is imported into document;
S5 draws a diagram information according to the result data in document.
2. a kind of method based on linux system test SSD performance according to claim 1, which is characterized in that the S1 Before, comprising: build test environment, and input the IP address and logon account of storage server.
3. a kind of method based on linux system test SSD performance according to claim 2, which is characterized in that the S1 Before, further includes: FIO application and its asynchronous I/O engine libaio.so.1 file and FIO test script are imported into storage clothes It is engaged in device, and executable permission is added to FIO and libaio.so.1.
4. a kind of method based on linux system test SSD performance according to claim 1, which is characterized in that the S3 Later, further includes: execute FIO performance test script, disk to be measured is tested for the property.
5. a kind of method based on linux system test SSD performance according to claim 1, which is characterized in that the S4 In, according to demand generate FIO test profile, and by test result according to bandwidth, input-output operation number per second and Delay parameter information imported into document.
6. a kind of system based on linux system test SSD performance, which is characterized in that including Host host, interchanger, storage Server, installation unit, acquiring unit handle test cell, generate import unit and drawing unit;The interchanger and institute Host host is stated to connect with storage server;The installation unit, acquiring unit handle test cell, generate import unit, and Drawing unit is connect with the storage server.
7. a kind of system based on linux system test SSD performance according to claim 6, which is characterized in that described Host host is tested for the property the disk to be measured in storage server for executing FIO performance test script;The exchange Machine, for Host host and storage server composition test local area network;The storage server is for providing the test of disk to be measured Environment.
8. a kind of system based on linux system test SSD performance according to claim 7, which is characterized in that the office The agreement of domain net is ICP/IP protocol.
9. a kind of system based on linux system test SSD performance according to claim 6, which is characterized in that also wrap It includes:
The installation unit, for installing FIO testing tool;
The acquiring unit filters out tested disk for obtaining current drive list, and eliminating system disk;
The processing test cell, for doing the test of the pretreatment before performance test to tested disk;
Test result for generating FIO test profile according to demand, and is imported into document by the generation import unit;
The drawing unit, for being drawn a diagram information according to the result data in document.
10. a kind of system based on linux system test SSD performance according to claim 9, which is characterized in that described It generates in import unit, generates FIO test profile according to demand, and test result is defeated according to bandwidth, input per second Number of operations and delay parameter information imported into document out.
CN201910012108.5A 2019-01-07 2019-01-07 A kind of method and its system based on linux system test SSD performance Pending CN109741780A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910012108.5A CN109741780A (en) 2019-01-07 2019-01-07 A kind of method and its system based on linux system test SSD performance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910012108.5A CN109741780A (en) 2019-01-07 2019-01-07 A kind of method and its system based on linux system test SSD performance

Publications (1)

Publication Number Publication Date
CN109741780A true CN109741780A (en) 2019-05-10

Family

ID=66363644

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910012108.5A Pending CN109741780A (en) 2019-01-07 2019-01-07 A kind of method and its system based on linux system test SSD performance

Country Status (1)

Country Link
CN (1) CN109741780A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110491438A (en) * 2019-07-19 2019-11-22 苏州浪潮智能科技有限公司 A kind of hard disk stability drop test method, system, terminal and storage medium
CN110990203A (en) * 2019-11-05 2020-04-10 深圳佰维存储科技股份有限公司 Solid state disk testing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572386A (en) * 2015-01-08 2015-04-29 浪潮电子信息产业股份有限公司 Method for automatically testing HBA card bandwidth under Linux
CN104660471A (en) * 2015-03-10 2015-05-27 浪潮集团有限公司 Method for automatically testing PCIE-SSD transmitting velocity and band width under Linux
CN107704350A (en) * 2017-10-12 2018-02-16 郑州云海信息技术有限公司 A kind of automatic test SSD Qos method of testing

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572386A (en) * 2015-01-08 2015-04-29 浪潮电子信息产业股份有限公司 Method for automatically testing HBA card bandwidth under Linux
CN104660471A (en) * 2015-03-10 2015-05-27 浪潮集团有限公司 Method for automatically testing PCIE-SSD transmitting velocity and band width under Linux
CN107704350A (en) * 2017-10-12 2018-02-16 郑州云海信息技术有限公司 A kind of automatic test SSD Qos method of testing

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110491438A (en) * 2019-07-19 2019-11-22 苏州浪潮智能科技有限公司 A kind of hard disk stability drop test method, system, terminal and storage medium
CN110990203A (en) * 2019-11-05 2020-04-10 深圳佰维存储科技股份有限公司 Solid state disk testing method and device

Similar Documents

Publication Publication Date Title
CN110309071B (en) Test code generation method and module, and test method and system
CN107341098B (en) Software performance testing method, platform, equipment and storage medium
WO2021003818A1 (en) Interface test case generating method and apparatus, computer device, and storage medium
TWI564732B (en) A method and apparatus for monitoring user requests to run in a decentralized system
US9465718B2 (en) Filter generation for load testing managed environments
WO2018120721A1 (en) Method and system for testing user interface, electronic device, and computer readable storage medium
US7747986B2 (en) Generating static performance modeling factors in a deployed system
CN101882105A (en) Method for testing response time of Web page under concurrent environment
CN107423181A (en) The automated testing method and device of a kind of uniform storage device
CN103744759A (en) Method for verifying unattended disk performance and stability under Linux system
US20210248023A1 (en) Verifying application behavior based on distributed tracing
US10296445B2 (en) Automated system documentation generation
CN108923997B (en) Cloud service node automatic testing method and device based on python
CN114281680B (en) Web automatic testing method and system
CN104268076A (en) Memory bandwidth automatically testing method applicable to various processor platforms
US9946638B1 (en) System and method for end to end performance response time measurement based on graphic recognition
CN106656927A (en) Method and device for enabling Linux account to be added to AD domain
CN109741780A (en) A kind of method and its system based on linux system test SSD performance
CN110018935A (en) Store apparatus testing method, system, device and computer readable storage medium
CN112650676A (en) Software testing method, device, equipment and storage medium
CN107329914A (en) It is a kind of that the out of order method and device of hard disk is detected based on linux system
CN113179194A (en) OPC protocol gateway test system and method
CN107832176A (en) Hard disk pressure automatic test approach and system under a kind of Windows
US8850407B2 (en) Test script generation
CN101883019A (en) Test method for verifying video application of storage server

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

Application publication date: 20190510

RJ01 Rejection of invention patent application after publication