OpenSolaris2009.06にbonnie++1.03eインストール失敗
以下らを参考に、bonnie++をインストールしてみる。
http://plaza18.mbn.or.jp/~moriban/linux/UsageOfBonnie.html
Linux Tips – bonnie++の使用方法
年越しそばと初詣は絶対に欠かせない: ディスクIO性能(2) - BonnieとIOZoneの比較
hoge@solaris:~/Downloads$ wget http://www.coker.com.au/bonnie++/bonnie++-1.03e.tgz hoge@solaris:~/Downloads$ tar -zxvf bonnie++-1.03e.tgz hoge@solaris:~/Downloads$ cd bonnie++-1.03e hoge@solaris:~/Downloads/bonnie++-1.03e$ ./configure hoge@solaris:~/Downloads/bonnie++-1.03e$ emacs bonnie.h
hoge@solaris:~/Downloads/bonnie++-1.03e$ diff -c bonnie.h bonnie.h~ *** bonnie.h 2010-06-13 04:38:48.168543963 +0900 --- bonnie.h~ 2010-06-13 04:36:02.784705500 +0900 *************** *** 14,20 **** // data includes index to which directory (6 bytes) and terminating '\0' for // the name and pointer to file name #define MaxDataPerFile (MaxNameLen + 6 + 1 + 4) ! #define MinTime (0.01) #define Seeks (8192) #define UpdateSeek (10) #define SeekProcCount (3) --- 14,20 ---- // data includes index to which directory (6 bytes) and terminating '\0' for // the name and pointer to file name #define MaxDataPerFile (MaxNameLen + 6 + 1 + 4) ! #define MinTime (0.5) #define Seeks (8192) #define UpdateSeek (10) #define SeekProcCount (3)
で、makeすりゅ^^
hoge@solaris:~/Downloads/bonnie++-1.03e$ make g++ -O2 -DNDEBUG -Wall -W -Wshadow -Wpointer-arith -Wwrite-strings -pedantic -ffor-scope -c bon_io.cpp bon_io.cpp: In member function `int CFileOp::m_open(const char*, int, bool)': bon_io.cpp:398: error: `O_DIRECT' undeclared (first use this function) bon_io.cpp:398: error: (Each undeclared identifier is reported only once for each function it appears in.) make: *** [bon_io.o] Error 1
あれ、エラーだ><
ん〜、http://opensolaris.org/jive/thread.jspa?messageID=320537で、パッケージ作成されているかたもいるから、1.9辺りだと大丈夫なのかな?*1