- 実行
$ ./bonnie++ -d /tmp
- 指定可能なオプション
- -bオプション : write時にバッファキャッシュを使わないよう指定する。
(Linuxでは本オプションを指定しても効果無し?)
- -dオプション : 測定対象のディレクトリを指定する。
- -nオプション : メタデータ操作のベンチマーク実行時に作成する一時ファイルのファイル数・ファイルサイズ・ディレクトリ数を指定する。
例えば、「-n 256:4096:512:16」と指定した場合、「ファイル数 256*1024、最大ファイルサイズ 4096byte、最小ファイルサイズ 512byte、ディレクトリ数 16」の条件下で、メタデータ操作のベンチマークが実行される。
「-n 16:0:0:4」と指定した場合は、「ファイル数 16*1024、ファイルサイズ 0byte、ディレクトリ数 4」の条件下で実行される。この際、1ディレクトリ配下のファイル数は「16*1024 / 4」になる。
本オプションを指定しない場合、デフォルト値の「16:0:0:1」=「ファイル数 16*1024、ファイルサイズ 0byte、ディレクトリ数 1」の条件下で実行される。
- -qオプション : 実行経過を表示しない。
- -rオプション : メモリサイズを指定する。単位はMB。
- -sオプション : シーケンシャルアクセスのベンチマーク実行時に作成する一時ファイルの最大サイズを指定する。単位はMB。
デフォルトでは、バッファキャッシュによる測定誤差を小さくするため、実メモリサイズの2倍の一時ファイルが測定時に作成される。測定対象のパーティションの空き容量に注意が必要。
デフォルトより小さいサイズを指定する場合、「-s 512 -r 256」というように-rオプションと組み合わせて使用する。
- -uオプション : 実行ユーザを指定する。通常は一般ユーザで実行。rootユーザで実行する場合には、「-u root」オプションを付けることが必要。
- -xオプション : 連続して測定する場合、実行回数を指定する。
- 実行結果例
Writing with putc()...done
Writing intelligently...done
Rewriting...done
Reading with getc()...done
Reading intelligently...done
start 'em...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.03 ------Sequential Output------ --Sequential Input- --Random-
-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
banlinux 1G 20296 82 24762 12 11088 5 20206 70 33167 6 202.2 0
------Sequential Create------ --------Random Create--------
-Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP
16 33876 99 187797 99 49498 99 34445 99 248845 100 48371 100
banlinux,1G,20296,82,24762,12,11088,5,20206,70,33167,6,202.2,0,16,33876,99,187797,99,49498
,99,34445,99,248845,100,48371,100
- ベンチマークの実行内容・結果の見方
シーケンシャルアクセスのベンチマーク
- Writing with putc() : キャラクタ単位の書き込み
- Writing intelligently : ブロック単位の書き込み
- Rewriting : ブロック単位の再書き込み
- Reading with getc() : キャラクタ単位の読み込み
- Reading intelligently : ブロック単位の読み込み
ランダムアクセスのベンチマーク
- start 'em : ファイルのランダムシーク
メタデータ操作のベンチマーク
- Create files in sequential order : 規則性のあるファイル名順でファイル作成
- Stat files in sequential order : 規則性のあるファイル名順でファイル情報の取得
- Delete files in sequential order : 規則性のあるファイル名順でファイル削除
- Create files in random order : ランダムなファイル名順でファイル作成
- Stat files in random order : ランダムなファイル名順でファイル情報の取得
- Delete files in random order : ランダムなファイル名順でファイル削除
- 性能測定結果一覧
|