PostMark 超簡易マニュアル

PostMarkとは

ファイルシステムのベンチマークです. ファイル操作を繰り返し, その性能を測ります.

PostMarkの入手/コンパイル/実行

こんな感じです.

Unix 系の場合.

	$ wget http://www.netapp.com/ftp/postmark-1_5.c
	$ gcc -O postmark-1_5.c -o postmark
	$ ./postmark
	

WindowNT系 & Visual C++の場合.

	http://www.netapp.com/ftp/postmark-1_5.c をローカルに保存.
	C:\postmark>cl postmark-1_5.c
	C:\postmark>postmark-1_5.exe
cl.exe (VC++の command line compiler)は "C:\Program Files\Microsoft Visual Studio\VC98\bin\cl.exe" などにあります.
path が通っていなければ, 通しておいてください.

PostMarkをとりあえず実行してみる

$ ./postmark
で, 実行する.
pm>
という プロンプトが出るので, "show", "run", "quit" と打ち込む.
実行するとこんな感じ↓です. 赤フォント部がユーザの入力. 緑フォント部がベンチマーク設定の表示. 青フォント部が測定結果の表示.

	[sane@hostname ~/postmark]$ ./postmark
	PostMark v1.5 : 3/27/01
	pm>show
	Current configuration is:
	The base number of files is 500
	Transactions: 500
	Files range between 500 bytes and 9.77 kilobytes in size
	Working directory: /home/sane/postmark
	Block sizes are: read=512 bytes, write=512 bytes
	Biases are: read/append=5, create/delete=5
	Using Unix buffered file I/O
	Random number generator seed is 42
	Report format is verbose.
	pm>run
	Creating files...Done
	Performing transactions..........Done
	Deleting files...Done
	Time:
		1 seconds total
		1 seconds of transactions (500 per second)

	Files:
		764 created (764 per second)
			Creation alone: 500 files (500 per second)
			Mixed with transactions: 264 files (264 per second)
		243 read (243 per second)
		257 appended (257 per second)
		764 deleted (764 per second)
			Deletion alone: 528 files (528 per second)
			Mixed with transactions: 236 files (236 per second)

	Data:
		1.36 megabytes read (1.36 megabytes per second)
		4.45 megabytes written (4.45 megabytes per second)
	pm>quit
	[sane@hostname ~/postmark]$

てな感じで測定ができました.
ただし, この測定は著しい問題があります. 測定時間が1秒しかありません!

PostMarkの出力結果の意味

各測定結果の意味はこんな↓感じ

ベンチマークの各種設定

先ほどの測定は, オペレーション回数が 500しかないので, 計測としては不十分です.
試行回数を 10000回にするには,
pm>set transactions 10000
とします.
ほどよい回数で実行してみてください. こんな↓感じ. まだ少ないので, もっと増やした方がいいですね.

	[sane@hostname ~/postmark]$ ./postmark
	PostMark v1.5 : 3/27/01
	pm>set transactions 10000
	pm>show
	Current configuration is:
	The base number of files is 500
	Transactions: 10000
	Files range between 500 bytes and 9.77 kilobytes in size
	Working directory: /home/sane/postmark
	Block sizes are: read=512 bytes, write=512 bytes
	Biases are: read/append=5, create/delete=5
	Using Unix buffered file I/O
	Random number generator seed is 42
	Report format is verbose.
	pm>run
	Creating files...Done
	Performing transactions..........Done
	Deleting files...Done
	Time:
		8 seconds total
		8 seconds of transactions (1250 per second)

	Files:
		5564 created (695 per second)
			Creation alone: 500 files (500 per second)
			Mixed with transactions: 5064 files (633 per second)
		4999 read (624 per second)
		4967 appended (620 per second)
		5564 deleted (695 per second)
			Deletion alone: 628 files (628 per second)
			Mixed with transactions: 4936 files (617 per second)

	Data:
		32.12 megabytes read (4.02 megabytes per second)
		35.61 megabytes written (4.45 megabytes per second)
	pm>quit
	[sane@hostname ~/postmark]$

とりあえず, どんな感じがつかめましたか?
さらに詳しい説明は, 簡易でない方のPostMarkの説明 を読んでください.