CN105302725A - Automatic file system performance testing method based on Iozone - Google Patents
Automatic file system performance testing method based on Iozone Download PDFInfo
- Publication number
- CN105302725A CN105302725A CN201510764829.3A CN201510764829A CN105302725A CN 105302725 A CN105302725 A CN 105302725A CN 201510764829 A CN201510764829 A CN 201510764829A CN 105302725 A CN105302725 A CN 105302725A
- Authority
- CN
- China
- Prior art keywords
- blocks
- iozone
- parameter
- file
- files
- 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
Links
Abstract
The invention discloses an automatic file system performance testing method based on Iozone, and belongs to the field of file testing. The method comprises the steps that a thread count range parameter and a file block size range parameter are assigned or defaulted, all thread counts and file block sizes which need to be tested are analyzed with an Iozone tool according to a progressive increase rule, all testing data are stored with two arrays, the thread counts are traversed through an outer loop, the file block sizes are traversed through an inner loop, all the testing items are completed, and results are output into a file. According to the automatic file system performance testing method based on the Iozone, the file block sizes and the thread counts are allowed to be progressively increased within a certain range, testing of all performance data is completed in the one-time testing process, and the testing efficiency is improved.
Description
Technical field
The present invention discloses a kind of file system performance automatic test approach, belongs to file field tests, specifically a kind of file system performance automatic test approach based on Iozone.
Background technology
File system is method and the data structure of the file of operating system on clear and definite memory device or subregion; The i.e. method of constituent act on a storage device.Be in charge of in operating system and be called file management system with the software mechanism of storage file information, be called for short file system.File system is made up of three parts: the interface of file system, to software assembly, object and the attribute of object manipulation and management.Specifically, file system is responsible for user and sets up file, stored in, read, amendment, dump file, the access of control documents, cancels file etc. when user does not re-use.The function of file system and performance test, be the operations such as the interfaces such as the read-write by calling Virtual File System read and write, thus complete the test to file system.Need the performance index of the test file system when different blocks of files size and different threads number under normal circumstances.Current once test constantly can only increase progressively test by Thread Count when blocks of files size is constant, or file block size constantly increases progressively when Thread Count is constant, the performance test that blocks of files size and Thread Count can increase progressively automatically cannot be completed in a test process.For the problems referred to above, the present invention devises a kind of file system performance automatic test approach based on Iozone, based on Iozone, blocks of files size and Thread Count is allowed to increase progressively all within the specific limits, thus different blocks of files size can be completed test in the performance data of the situation of different threads number in a test process, improve testing efficiency.
Summary of the invention
The present invention is directed in prior art and constantly can only increase progressively test by Thread Count when blocks of files size is constant, or file block size constantly increases progressively when Thread Count is constant, the problem of the performance test that blocks of files size and Thread Count can increase progressively automatically cannot be completed in a test process, a kind of file system performance automatic test approach based on Iozone is provided, based on Iozone, blocks of files size and Thread Count is allowed to increase progressively all within the specific limits, thus different blocks of files size can be completed test in the performance data of the situation of different threads number in a test process, improve testing efficiency.
The concrete scheme that the present invention proposes is:
A kind of file system performance automatic test approach based on Iozone:
Specify or default line number of passes range parameter and blocks of files magnitude range parameter, Iozone instrument is utilized to resolve all Thread Count and the blocks of files size that need test respectively according to increasing progressively rule, and use two number groups to preserve all test datas respectively, interior loop traversal blocks of files size from initial line number of passes, automatically increased step by step by blocks of files size again, blocks of files size has traveled through, automatic increment thread number, outer loop traversal Thread Count, complete all test items, and output results in file.
The described rule that increases progressively increases progressively step by step for Thread Count and blocks of files size, and rear primary parameter is 2 times of front primary parameter.
The described rule that increases progressively increases progressively step by step for Thread Count and blocks of files size, when designated parameter is not the multiple of 2, adds 1 be used as parameter use according to rear primary parameter on designated parameter basis.
Described default line number of passes range parameter and blocks of files magnitude range parameter, refer to Thread Count default scoping 1-64, blocks of files size is 1KB-4MB byte, and file size least unit is KB byte.
Usefulness of the present invention is:
The invention provides a kind of file system performance automatic test approach based on Iozone, specify or default line number of passes range parameter and blocks of files magnitude range parameter, Iozone instrument is utilized to resolve all Thread Count and the blocks of files size that need test respectively according to increasing progressively rule, and use two number groups to preserve all test datas respectively, interior loop traversal blocks of files size from initial line number of passes, automatically increased step by step by blocks of files size again, blocks of files size has traveled through, automatic increment thread number, outer loop traversal Thread Count, complete all test items, and output results in file, complete all test items, and output results in file, the present invention allows blocks of files size and Thread Count to increase progressively within the specific limits, all properties data test is completed in a test process, improve testing efficiency.
Accompanying drawing explanation
Fig. 1 existing file system performance method of testing schematic diagram;
Fig. 2 the inventive method file system performance automatic test approach schematic diagram.
Embodiment
A kind of file system performance automatic test approach based on Iozone:
Specify or default line number of passes range parameter and blocks of files magnitude range parameter, Iozone instrument is utilized to resolve all Thread Count and the blocks of files size that need test respectively according to increasing progressively rule, and use two number groups to preserve all test datas respectively, interior loop traversal blocks of files size from initial line number of passes, automatically increased step by step by blocks of files size again, blocks of files size has traveled through, automatic increment thread number, outer loop traversal Thread Count, complete all test items, and output results in file.
The described rule that increases progressively increases progressively step by step for Thread Count and blocks of files size, and rear primary parameter is 2 times of front primary parameter.
The described rule that increases progressively increases progressively step by step for Thread Count and blocks of files size, when designated parameter is not the multiple of 2, adds 1 use as parameter according to rear primary parameter on designated parameter basis.
Described default line number of passes range parameter and blocks of files magnitude range parameter, refer to Thread Count default scoping 1-64, blocks of files size is 1KB-4MB byte, and file size least unit is KB byte.
According to said method, with reference to accompanying drawing, the present invention will be further described.
Do not use default line number of passes scope, concrete Thread Count scope is selected once to need from 8 to 128, file size needs the file system performance test from 4KB to 4MB, Iozone instrument is utilized to resolve all Thread Count and the blocks of files size that need test respectively according to increasing progressively rule, and use two number groups to preserve all test datas respectively, interior loop traversal blocks of files size from initial line number of passes, automatically increased step by step by blocks of files size again, blocks of files size has traveled through, automatic increment thread number, outer loop traversal Thread Count, complete all test items, and output results in file,
When wherein initial line number of passes is 8, blocks of files size is increased progressively by interior loop, traversal execution thread number is the performance test of 8, automatically increased step by step by blocks of files size again, blocks of files size has traveled through, automatic increment thread number, outer loop traversal Thread Count, complete all test items, and output results in file.
When above-mentioned test is carried out, when parameter is the multiple of 2, then can specify increase progressively rule increase progressively step by step for Thread Count and blocks of files size, rear primary parameter is 2 times of front primary parameter.
When above-mentioned test is carried out, when designated parameter is not the multiple of 2, increases progressively rule and increase progressively step by step for Thread Count and blocks of files size, on designated parameter basis, add 1 according to rear primary parameter and use as parameter.
Can be known by accompanying drawing and find out, the present invention allows blocks of files size and Thread Count to increase progressively within the specific limits, completes all properties data test, improve testing efficiency in a test process.
Claims (4)
1., based on a file system performance automatic test approach of Iozone, it is characterized in that
Specify or default line number of passes range parameter and blocks of files magnitude range parameter, Iozone instrument is utilized to resolve all Thread Count and the blocks of files size that need test respectively according to increasing progressively rule, and use two number groups to preserve all test datas respectively, interior loop traversal blocks of files size from initial line number of passes, automatically increased step by step by blocks of files size again, blocks of files size has traveled through, automatic increment thread number, outer loop traversal Thread Count, complete all test items, and output results in file.
2. a kind of file system performance automatic test approach based on Iozone according to claim 1, increase progressively rule described in it is characterized in that and increase progressively step by step for Thread Count and blocks of files size, rear primary parameter is 2 times of front primary parameter.
3. a kind of file system performance automatic test approach based on Iozone according to claim 1, increase progressively rule described in it is characterized in that to increase progressively step by step for Thread Count and blocks of files size, when designated parameter is not the multiple of 2, on designated parameter basis, adds 1 according to rear primary parameter and use as parameter.
4. a kind of file system performance automatic test approach based on Iozone according to any one of claim 1-3, it is characterized in that described default line number of passes range parameter and blocks of files magnitude range parameter, refer to Thread Count default scoping 1-64, blocks of files size is 1KB-4MB byte, and file size least unit is KB byte.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510764829.3A CN105302725A (en) | 2015-11-11 | 2015-11-11 | Automatic file system performance testing method based on Iozone |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510764829.3A CN105302725A (en) | 2015-11-11 | 2015-11-11 | Automatic file system performance testing method based on Iozone |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105302725A true CN105302725A (en) | 2016-02-03 |
Family
ID=55200014
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510764829.3A Pending CN105302725A (en) | 2015-11-11 | 2015-11-11 | Automatic file system performance testing method based on Iozone |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105302725A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107122288A (en) * | 2017-05-08 | 2017-09-01 | 郑州云海信息技术有限公司 | A kind of reading and writing data method of testing that meteorological platform application is simulated based on IOzone |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050256898A1 (en) * | 2004-05-07 | 2005-11-17 | Etsutaro Akagawa | Computer system including file sharing device and a migration method |
CN104809042A (en) * | 2015-04-27 | 2015-07-29 | 浪潮电子信息产业股份有限公司 | Iozone-based hard disk performance testing method |
CN104850479A (en) * | 2015-05-15 | 2015-08-19 | 浪潮电子信息产业股份有限公司 | FIO-based hardware automatic testing method |
-
2015
- 2015-11-11 CN CN201510764829.3A patent/CN105302725A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050256898A1 (en) * | 2004-05-07 | 2005-11-17 | Etsutaro Akagawa | Computer system including file sharing device and a migration method |
CN104809042A (en) * | 2015-04-27 | 2015-07-29 | 浪潮电子信息产业股份有限公司 | Iozone-based hard disk performance testing method |
CN104850479A (en) * | 2015-05-15 | 2015-08-19 | 浪潮电子信息产业股份有限公司 | FIO-based hardware automatic testing method |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107122288A (en) * | 2017-05-08 | 2017-09-01 | 郑州云海信息技术有限公司 | A kind of reading and writing data method of testing that meteorological platform application is simulated based on IOzone |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108133732B (en) | Performance test method, device and equipment of flash memory chip and storage medium | |
KR101903577B1 (en) | Internally preconditioning solid state drives for various workloads | |
CN108549610B (en) | NVMe extension implementation method and solid state disk | |
US20170075805A1 (en) | Garbage collection in ssd drives | |
US10203899B2 (en) | Method for writing data into flash memory apparatus, flash memory apparatus, and storage system | |
CN110377233B (en) | SSD (solid State disk) reading performance optimization method and device, computer equipment and storage medium | |
KR102430198B1 (en) | A method of organizing an address mapping table in a flash storage device | |
CN106708912B (en) | Junk file identification and management method, identification device, management device and terminal | |
US20200042538A1 (en) | Methods and apparatus to partition a database | |
CN105302714A (en) | Method and apparatus for monitoring memory leak in test process | |
Hardock et al. | Noftl: Database systems on ftl-less flash storage | |
CN103914483A (en) | File storage method and device and file reading method and device | |
CN104424256A (en) | Method and device for generating Bloom filter | |
CN108664577B (en) | File management method and system based on FLASH idle area | |
JP2018524689A5 (en) | ||
US20180364304A1 (en) | Stimulus generation for component-level verification | |
US9524236B1 (en) | Systems and methods for performing memory management based on data access properties | |
CN105302725A (en) | Automatic file system performance testing method based on Iozone | |
US20190018857A1 (en) | Defragmenting files having file blocks in multiple point-in-time copies | |
US20160378508A1 (en) | Jni object access | |
CN106528436B (en) | Data storage device and data maintenance method thereof | |
CN105279166A (en) | File management method and system | |
CN105094742A (en) | Data writing method and device | |
US10198209B2 (en) | Memory storage recycling | |
CN110659194A (en) | Dynamic memory detection method, device 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160203 |