fioのあまり使わないオプションを試す(前)

備忘録

--cmdhelp で出てくるサブコマンドではなく --help で出てくるほう

--crctest

  • Test speed of checksum functions
  • チェックサムの計算スピードでいいんかな
[comicsong@comicsong fio]$ fio --crctest
md5:              391.00 MB/sec
crc64:            262.93 MB/sec
crc32:            231.37 MB/sec
crc32c:          6337.89 MB/sec
crc16:            253.15 MB/sec
crc7:             296.96 MB/sec
sha1:             293.34 MB/sec
sha256:           115.25 MB/sec
sha512:           187.89 MB/sec
xxhash:          3704.94 MB/sec
murmur3:         1817.99 MB/sec
jhash:           1285.14 MB/sec
fnv:             4753.50 MB/sec

--cpuclock-test

  • Perform test/validation of CPU clock
  • CPUのクロック速度計測
[comicsong@comicsong fio]$ fio --cpuclock-test
cs: reliable_tsc: yes
time     11788 cycles[0]=2493
time     11788 cycles[1]=2493
.
.
.
time     11788 cycles[48]=2494
time     11788 cycles[49]=2494
time     11788 avg: 2493
time     11788 min=2493, max=2494, mean=2493.160000, S=0.007407
time     11788 inv_cycles_per_usec=6729
time     11788 cycles_start=2558090280267038
cs: Testing 4 CPUs
cs: cpu  2: 71837406 clocks seen, first 2558090280570351
cs: cpu  1: 72369018 clocks seen, first 2558090280565014
cs: cpu  0: 75182683 clocks seen, first 2558090280552639
cs: cpu  3: 73019098 clocks seen, first 2558090283188198
cs: Pass!
  • 50回計測。 /proc/cpuinfo の値はこんななのでほぼ近似値
[comicsong@comicsong fio]$ cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 42
model name      : Intel(R) Core(TM) i3-2100T CPU @ 2.50GHz
stepping        : 7
microcode       : 0x29
cpu MHz         : 1600.000
cache size      : 3072 KB
physical id     : 0
siblings        : 4
core id         : 0
//後略
  • cpu MHz の値とはズレている
  • 内容を読み取るのではなく何か実行させ、実クロックを計測と思われる

--showcmd

  • Turn a job file into command line options
  • jobファイルに指定された内容をコマンドライン形式にして表示。テスト自体は実行されず
[comicsong@comicsong fio]$ fio fio.ini --showcmd
fio --directory=/mnt/SSD/fio/tmp/ --size=5m --numjobs=4 --iodepth=1 --time_based --runtime=5 --overwrite=1 --ioengine=libaio --bs=4k --group_reporting --direct=1 --name=test

--eta=

  • When ETA estimate should be printed
  • 終了予定時間の表示、例えば10分のjobを開始したときに実行中出る表示の差はこんな感じに

  • never 指定

[comicsong@comicsong fio]$ fio fio.ini --runtime=600 --eta=never
test: (g=0): rw=read, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=1
...
fio-2.13-18-gc915
Starting 4 processes
  • always 指定
[comicsong@comicsong fio]$ fio fio.ini --runtime=600 --eta=always
test: (g=0): rw=read, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=1
...
fio-2.13-18-gc915
Starting 4 processes
Jobs: 4 (f=4): [R(4)] [1.2% done] [74352KB/0KB/0KB /s] [18.6K/0/0 iops] [eta 09m:54s]

--eta-newline=time

  • Force a new line for every 'time' period passed
  • ETAを表示させる場合、指定の秒数で行更新させる
  • 指定しない場合は行の更新はなし、また--eta=neverの場合は特に何も表示/更新されない
[comicsong@comicsong fio]$ fio fio.ini --runtime=600 --eta=always --eta-newline=5
test: (g=0): rw=read, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=1
...
fio-2.13-18-gc915
Starting 4 processes
Jobs: 4 (f=4): [R(4)] [1.3% done] [62948KB/0KB/0KB /s] [15.8K/0/0 iops] [eta 09m:53s]
Jobs: 4 (f=4): [R(4)] [2.3% done] [62456KB/0KB/0KB /s] [15.7K/0/0 iops] [eta 09m:47s]
Jobs: 4 (f=4): [R(4)] [3.3% done] [74064KB/0KB/0KB /s] [18.6K/0/0 iops] [eta 09m:41s]
Jobs: 4 (f=4): [R(4)] [4.3% done] [72924KB/0KB/0KB /s] [18.3K/0/0 iops] [eta 09m:35s]
Jobs: 4 (f=4): [R(4)] [5.3% done] [73384KB/0KB/0KB /s] [18.4K/0/0 iops] [eta 09m:29s]
Jobs: 4 (f=4): [R(4)] [6.3% done] [72464KB/0KB/0KB /s] [18.2K/0/0 iops] [eta 09m:23s]
Jobs: 4 (f=4): [R(4)] [7.3% done] [70652KB/0KB/0KB /s] [17.7K/0/0 iops] [eta 09m:17s]

次回へ続く