Article Title: Iozone for linux hard disk performance testing. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
The boss said that iozone is very good. Compared with other software, iozone provides the best functions. It is used by professional testing companies. In addition, the aio (asynchronous) feature above linux2.4 is well supported ..
However, it is not easy to use. No information ..
During the test, note that the size of the test file must exceed your memory size. Otherwise, linux will cache your read/write content. This will make the value very unauthentic.
Common iozone parameters.
-A full test. For example, the block size is automatically added.
-I N is used to select test items. For example, Read/Write/Random is commonly used as 0 1 2. You can specify-I 0-I 1-i2. For details, see man.
-R block size specifies the size of the block for one write/read operation.
-S file size: Specifies the size of the test file.
-F filename: Specifies the name of the test file, which will be automatically deleted after completion (this file must specify the hard disk you want to test)
-F file1 file2. .. specify the name of the file to be tested under multiple threads.
Batch test items:
-G-n specifies the size range of the test file. The maximum size of the test file is 4 GB.
-Y-q: specify the size range of the test block.
Output:
Below are several log record parameters. It seems that to output the data into an image for analysis, you need to specify the-a test to output the data.
-R: generate Excel to standard output
-B specifies the output to the specified file. For example,-Rb ttt.xls
My test instances:
#./Iozone-a-n 512 m-g 4g-I 0-I 1-I 5-f/mnt/iozone-Rb./iozone.xls
Note: perform a full test. The minimum test file is MB until 4G is tested. The test read, write, and Strided Read. The test place is under mnt. Generate an Excel file.