tarball installation:
wget http://www.iozone.org/src/current/iozone3_414.tar
tar xvf iozone3_414.tar && cd iozone3_414/src/current && make linux
(for x64 use linux-AMD64)
-a #auto mode will test below matrix:
-s # file size in Kb
-i # Test 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=random_mix,
9=pwrite/Re-pwrite,
10=pread/Re-pread
11=pwritev/Re-pwritev,
12=preadv/Re-preadv
-o # Writes are synch (O_SYNC)
wget http://www.iozone.org/src/current/iozone3_414.tar
tar xvf iozone3_414.tar && cd iozone3_414/src/current && make linux
(for x64 use linux-AMD64)
-a #auto mode will test below matrix:
- record size from 4k to 16M
- file size from 64k to 512M
-g #set maximum file size (in Kbytes) for auto
mode (or #m or #g)
所以為了避免 linux 的 catch 機制,我們可以將要測試的檔案設定為記憶體的兩倍。
所以就是
iozone -a -g 8G (如果你的系統記憶體是 4G 的話)
其他模式的參數 -h 也可以看到,下面列有趣的....:
-i # Test 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=random_mix,
9=pwrite/Re-pwrite,
10=pread/Re-pread
11=pwritev/Re-pwritev,
12=preadv/Re-preadv
-o # Writes are synch (O_SYNC)
留言
張貼留言