man iozone
1. 输出格式
-R Generate Excel report. Iozone will generate an Excel compatible report to
standard out. This file may be imported with Microsoft Excel (space delimited)
and used to create a graph of the filesystem performance. Note: The 3D graphs
are column oriented. You will need to select this when graphing as the default
in Excel is row oriented data.
-b filename
Used to specify a filename that will be used for output of an Excel compatible
file that contains the results.
-M Iozone will call uname() and will put the string in the output file.2. 基本参数
-a Used to select full automatic mode. Produces output that covers all tested file
operations for record sizes of 4k to 16M for file sizes of 64k to 512M.
-i # Used to specify which tests to run. (0=write/rewrite, 1=read/re-read, 2=random-
read/write, 3=Read-backwards, 4=Re-write-record, 5=stride-read, 6=fwrite/re-
fwrite, 7=fread/Re-fread, 8=mixed workload, 9=pwrite/Re-pwrite, 10=pread/Re-
pread, 11=pwritev/Re-pwritev, 12=preadv/Re-preadv). One will always need to
specify 0 so that any of the following tests will have a file to measure.
-i # -i # -i # is also supported so that one may select more than one test.
-s # Used to specify the size, in Kbytes, of the file to test. One may also specify
-s #k (size in Kbytes) or -s #m (size in Mbytes) or -s #g (size in Gbytes).
-g # Set maximum file size (in Kbytes) for auto mode. One may also specify -g #k
(size in Kbytes) or -g #m (size in Mbytes) or -g #g (size in Gbytes). See -n
for minimum file size.
-n # Set minimum file size (in Kbytes) for auto mode. One may also specify -n #k
(size in Kbytes) or -n #m (size in Mbytes) or -n #g (size in Gbytes). See -g
for maximum file size.
|
-r # Used to specify the record size , in Kbytes, to test. One may also specify -r #k
(size in Kbytes) or -r #m (size in Mbytes) or -r #g (size in Gbytes).
-q # Set maximum record size (in Kbytes) for auto mode. One may also specify -q #k
(size in Kbytes) or -q #m (size in Mbytes) or -q #g (size in Gbytes). See -y
for minimum record size.
-y # Set minimum record size (in Kbytes) for auto mode. One may also specify -y #k
(size in Kbytes) or -y #m (size in Mbytes) or -y #g (size in Gbytes). See -q
for maximum record size.
|
-f filename
Used to specify the filename for the temporary file under test. This is useful
when the unmount option is used. When testing with unmount between tests it is
necessary for the temporary file under test to be in a directory that can be
unmounted. It is not possible to unmount the current working directory as the
process Iozone is running in this directory.
-F filename filename filename ?
Specify each of the temporary file names to be used in the throughput testing.
The number of names should be equal to the number of processes or threads that
are specified.
-w Do not unlink temporary files when finished using them.3. 文件读写方法(read/write, mmap, aio)
-B Use mmap() files. This causes all of the temporary files being measured to be
created and accessed with the mmap() interface. Some applications prefer to
treat files as arrays of memory. These applications mmap() the file and then
just access the array with loads and stores to perform file I/O.
-H # Use POSIX async I/O with # async operations. Iozone will use POSIX async I/O
with a bcopy from the async buffers back into the applications buffer. Some
versions of MSC NASTRAN perform I/O this way. This technique is used by appli‐
cations so that the async I/O may be performed in a library and requires no
changes to the applications internal model.
-k # Use POSIX async I/O (no bcopy) with # async operations. Iozone will use POSIX
async I/O and will not perform any extra bcopys . The buffers used by Iozone
will be handed to the async I/O system call directly.
-Z Enable mixing of mmap I/O and file I/O.4. 文件打开参数 (direct_io, O_SYNC, ....) cache /buffer 相关
-D Use msync(MS_ASYNC) on mmap files. This tells the operating system that all the