benchmark:benchmark:filebench

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
benchmark:benchmark:filebench [2017/02/20 10:07] – [WML ファイル] tenforwardbenchmark:benchmark:filebench [2017/02/20 11:13] (現在) tenforward
行 33: 行 33:
 define fileset name=bigfileset,path=$dir,size=$meanfilesize,entries=$nfiles,dirwidth=$meandirwidth,prealloc=80 define fileset name=bigfileset,path=$dir,size=$meanfilesize,entries=$nfiles,dirwidth=$meandirwidth,prealloc=80
 ``` ```
-ファイルセット名 (name): bigfileset + 
-パス (path): $dir 変数 +ファイルセット名 (name): bigfileset 
-サイズ (size): $meanfilesize 変数 (平均ファイルサイズ) +パス (path): $dir 変数 
-ファイル数 (entories): $nfiles 変数 (ファイルセットで作成できる最大ファイル数) +サイズ (size): $meanfilesize 変数 (平均ファイルサイズ) 
-ディレクトリごとのファイル数 (dirwidth): $meandirwidth 変数 (平均数。ファイルの合計数とこの指定から必要なディレクトリを計算する) +ファイル数 (entories): $nfiles 変数 (ファイルセットで作成できる最大ファイル数) 
-テスト開始前に作成するファイル数 (realloc): 80 +ディレクトリごとのファイル数 (dirwidth): $meandirwidth 変数 (平均数。ファイルの合計数とこの指定から必要なディレクトリを計算する) 
 +テスト開始前に作成するファイル数 (realloc): 80 %
  
 次はプロセスとスレッドを定義して、スレッド内で行う処理を順に定義。 次はプロセスとスレッドを定義して、スレッド内で行う処理を順に定義。
行 66: 行 67:
 ``` ```
  
-これは `flowop` の次にある命令を見れば大体やってくることわかるんじゃないかな。`fileset` で指定したファイルセット内で処理します。`fd` はたくさん処理しているファイルがある時に同じファイルに対して処理を行うことを保証するために指定。+これは `flowop` の次にある命令を見れば大体やってくることわかるんじゃないかな。`fileset` で指定したファイルセット内で処理す。`fd` はたくさん処理しているファイルがある時に同じファイルに対して処理を行うことを保証するために指定。
  
 残りはヘルプ。 残りはヘルプ。
行 76: 行 77:
 ``` ```
  
-上記のファイルを適当なディレクトリに `fileserver.f` として (必要な部分を変更して) 保存してインタラクティブに実行していく。+## インタラクティブ実行 
 + 
 +上記のファイルを適当なディレクトリに `fileserver.f` として (必要な部分を変更して) 保存してインタラクティブに実行していく。(`/usr/share/filebench/workload` 内にあるファイルならパス指定は不要)
  
 コマンド実行後、filebench のプロンプトに入るので `load` コマンドで WML ファイルをロード。 コマンド実行後、filebench のプロンプトに入るので `load` コマンドで WML ファイルをロード。
行 159: 行 162:
 ``` ```
  
 +## 非インタラクティブモードで実行
 +
 +引数で WML ファイルを指定して実行できるが、WML ファイル内に `run` コマンドの記述が必要。
 +
 +末尾に
 +```
 +run 60
 +```
 +
 +を追加して `-f ./fileserver.f` で指定。
 +
 +```
 +$ sudo filebench -f fileserver.f 
 +Filebench Version 1.4.9.1
 +13500: 0.000: Allocated 170MB of shared memory
 +13500: 0.001: Creating/pre-allocating files and filesets
 +13500: 0.017: Fileset bigfileset: 10000 files, 0 leafdirs, avg dir width = 20, avg dir depth = 3.1, 1240.757MB
 +13500: 0.321: Removed any existing fileset bigfileset in 1 seconds
 +13500: 0.321: making tree for filset /data/bigfileset
 +13500: 0.373: Creating fileset bigfileset...
 +13500: 4.512: Preallocated 7979 of 10000 of fileset bigfileset in 5 seconds
 +13500: 4.512: waiting for fileset pre-allocation to finish
 +13503: 4.524: Starting 1 filereader instances
 +13504: 4.600: Starting 50 filereaderthread threads
 +13500: 5.644: Running...
 +```
  • benchmark/benchmark/filebench.1487585268.txt.gz
  • 最終更新: 2017/02/20 10:07
  • by tenforward