teketeke_55の日記

技術メモとか

DISK I/Oベンチツールいろいろ

dbench

# dbench -c client.txt -t 10 -D /mnt/export 10
  • t 計測時間
  • D 計測先ディレクトリ 同時接続数

※3系と4系で計測方法が違うらしく値が大分違うので注意

dbench version 4.00 - Copyright Andrew Tridgell 1999-2004

Running for 10 seconds with load 'client.txt' and minimum warmup 2 secs
3 of 10 processes prepared for launch   0 sec
10 of 10 processes prepared for launch   0 sec
releasing clients
  10      1810   262.88 MB/sec  warmup   1 sec  latency 54.300 ms
  10      9807   224.97 MB/sec  execute   1 sec  latency 37.396 ms
  10     13966   233.49 MB/sec  execute   2 sec  latency 30.681 ms
  10     18061   231.44 MB/sec  execute   3 sec  latency 23.400 ms
  10     22207   225.88 MB/sec  execute   4 sec  latency 28.072 ms
  10     23953   198.01 MB/sec  execute   5 sec  latency 634.421 ms
  10     23953   165.05 MB/sec  execute   6 sec  latency 1634.541 ms
  10     24123   142.74 MB/sec  execute   7 sec  latency 2598.435 ms
  10     24123   124.91 MB/sec  execute   8 sec  latency 3598.555 ms
  10     26088   123.33 MB/sec  execute   9 sec  latency 3943.949 ms
  10  cleanup  10 sec
   0  cleanup  10 sec

 Operation      Count    AvgLat    MaxLat
 ----------------------------------------
 NTCreateX      42036     0.334  2454.248
 Close          30810     0.009    17.086
 Rename          1798     0.190    13.080
 Unlink          8616     0.456    19.247
 Qpathinfo      37945     0.123    25.095
 Qfileinfo       6644     0.006    13.420
 Qfsinfo         7125     0.505    37.045
 Sfileinfo       3434     0.541    28.061
 Find           14830     0.131    20.061
 WriteX         20872     0.561  2416.200
 ReadX          66937     0.092  2422.614
 LockX            144     0.004     0.052
 UnlockX          144     0.002     0.003
 Flush           2987    15.936  3943.943

Throughput 123.329 MB/sec  10 clients  10 procs  max_latency=3943.949 ms

bonnie++

# bonnie++ /tmp -s 512 -r 256 -u user

-s 作成する1時ファイル
-r 使用するメモリ
-u ユーザー指定

Using uid:500, gid:501.
Writing a byte at a time...done
Writing intelligently...done
Rewriting...done
Reading a byte at a time...done
Reading intelligently...done
start 'em...done...done...done...done...done...
Create files in sequential order...done.
Stat files in sequential order...done.
Delete files in sequential order...done.
Create files in random order...done.
Stat files in random order...done.
Delete files in random order...done.
Version  1.96       ------Sequential Output------ --Sequential Input- --Random-
Concurrency   1     -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
SL6            512M   498  91 71340  22 34535   7  2237  99 +++++ +++ +++++ +++
Latency               154ms     126ms    2119ms    5017us     205us   15444us
Version  1.96       ------Sequential Create------ --------Random Create--------
SL6                 -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                 16 15657  88 +++++ +++ +++++ +++ 17319  96 +++++ +++ +++++ +++
Latency             22609us     615us    1960us    1480us      92us    2110us

hdparm

# hdparm -fTt /dev/mapper/vg_sl6-lv_root
  • f 終了時に、デバイスのバッファキャッシュを同期、消去する。この操作は、 -t および -T のタイミングでも実行される。
  • T ベンチマーク及び比較目的で、キャッシュ読み込みを測定する
  • t ベンチマーク及び比較目的で、デバイス読み込みを測定する。
/dev/mapper/vg_sl6-lv_root:
 Timing cached reads:   5038 MB in  2.00 seconds = 2521.13 MB/sec
 Timing buffered disk reads:  214 MB in  3.03 seconds =  70.70 MB/sec