-ベンチマーク・テスト-

   
 UNIXBENCH

 実は 密かにFreeBSD機のカーネル再構築を考えてます( ̄∇ ̄)
 
 せっかくやるからには、体感だけではなく 目に見える数字で結果が出せないものかと・・・
 そっか!ベンチマーク・テスト!!!
 ・・・って事で 実際 FreeBSDサーバで実験する前に このVineサーバでUNIXBENCHの予行練習をしようと思います。


 /usr/local/src に unixbench-4.0.1.tgz を落としました。

[root@server2 src]# wget http://www.tux.org/pub/tux/benchmarks/System/unixbench/unixbench-4.0.1.tgz
--23:24:05-- http://www.tux.org/pub/tux/benchmarks/System/unixbench/unixbench-4.0.1.tgz
=> `unixbench-4.0.1.tgz'
www.tux.org をDNSに問いあわせています... 完了しました。
www.tux.org[199.184.165.135]:80 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 200 OK
長さ: 48,170 [application/x-gzip]

100%[========================================================>] 48,170 30.33K/s ETA 00:00

23:24:07 (30.33 KB/s) - `unixbench-4.0.1.tgz' を保存しました [48170/48170]

[root@server2 src]# tar zxvf unixbench-4.0.1.tgz
unixbench-4.0.1/
unixbench-4.0.1/old-doc/
unixbench-4.0.1/old-doc/bench3.doc
unixbench-4.0.1/old-doc/bench.doc
unixbench-4.0.1/README
unixbench-4.0.1/Run
unixbench-4.0.1/pgms/
unixbench-4.0.1/pgms/byte.logo
unixbench-4.0.1/pgms/cleanup.sh
unixbench-4.0.1/pgms/index.awk
unixbench-4.0.1/pgms/index.base
unixbench-4.0.1/pgms/index.sh
unixbench-4.0.1/pgms/loopm.awk
unixbench-4.0.1/pgms/loops.awk
unixbench-4.0.1/pgms/multi.sh
unixbench-4.0.1/pgms/report.awk
unixbench-4.0.1/pgms/report.sh
unixbench-4.0.1/pgms/tst.sh
unixbench-4.0.1/pgms/unixbench.logo
unixbench-4.0.1/pgms/fs.awk
unixbench-4.0.1/results/
unixbench-4.0.1/src/
unixbench-4.0.1/src/arith.c
unixbench-4.0.1/src/context1.c
unixbench-4.0.1/src/execl.c
unixbench-4.0.1/src/getopt.c
unixbench-4.0.1/src/hanoi.c
unixbench-4.0.1/src/limit.c
unixbench-4.0.1/src/looper.c
unixbench-4.0.1/src/pipe.c
unixbench-4.0.1/src/spawn.c
unixbench-4.0.1/src/syscall.c
unixbench-4.0.1/src/timeit.c
unixbench-4.0.1/src/dhry_2.c
unixbench-4.0.1/src/dummy.c
unixbench-4.0.1/src/fstime.c
unixbench-4.0.1/src/big.c
unixbench-4.0.1/src/dhry_1.c
unixbench-4.0.1/src/dhry.h
unixbench-4.0.1/testdir/
unixbench-4.0.1/testdir/dc.dat
unixbench-4.0.1/testdir/cctest.c
unixbench-4.0.1/testdir/sort.src
unixbench-4.0.1/tmp/
unixbench-4.0.1/Makefile

[root@server2 src]# cd unixbench-4.0.1
[root@server2 unixbench-4.0.1]# make
Checking distribution of files
./pgms exists
./src exists
./testdir exists
./old-doc exists
./tmp exists
./results exists
gcc -o ./pgms/arithoh -DTIME -O2 -fomit-frame-pointer -fforce-addr -fforce-mem -ffast-math -m486 -Da
rithoh ./src/arith.c
gcc -o ./pgms/register -DTIME -O2 -fomit-frame-pointer -fforce-addr -fforce-mem -ffast-math -m486 -D
datum=register ./src/arith.c
gcc -o ./pgms/short -DTIME -O2 -fomit-frame-pointer -fforce-addr -fforce-mem -ffast-math -m486 -Ddat
um=short ./src/arith.c
gcc -o ./pgms/int -DTIME -O2 -fomit-frame-pointer -fforce-addr -fforce-mem -ffast-math -m486 -Ddatum
=int ./src/arith.c
gcc -o ./pgms/long -DTIME -O2 -fomit-frame-pointer -fforce-addr -fforce-mem -ffast-math -m486 -Ddatu
m=long ./src/arith.c
gcc -o ./pgms/float -DTIME -O2 -fomit-frame-pointer -fforce-addr -fforce-mem -ffast-math -m486 -Ddat
um=float ./src/arith.c
gcc -o ./pgms/double -DTIME -O2 -fomit-frame-pointer -fforce-addr -fforce-mem -ffast-math -m486 -Dda
tum=double ./src/arith.c
gcc -o ./pgms/hanoi -DTIME -O2 -fomit-frame-pointer -fforce-addr -fforce-mem -ffast-math -m486 ./src
/hanoi.c
gcc -o ./pgms/syscall -DTIME -O2 -fomit-frame-pointer -fforce-addr -fforce-mem -ffast-math -m486 ./s
rc/syscall.c
gcc -o ./pgms/context1 -DTIME -O2 -fomit-frame-pointer -fforce-addr -fforce-mem -ffast-math -m486 ./
src/context1.c
gcc -o ./pgms/pipe -DTIME -O2 -fomit-frame-pointer -fforce-addr -fforce-mem -ffast-math -m486 ./src/
pipe.c
gcc -o ./pgms/spawn -DTIME -O2 -fomit-frame-pointer -fforce-addr -fforce-mem -ffast-math -m486 ./src
/spawn.c
gcc -o ./pgms/execl -DTIME -O2 -fomit-frame-pointer -fforce-addr -fforce-mem -ffast-math -m486 ./src
/execl.c
In file included from ./src/execl.c:30:
src/big.c: In function `dummy':
src/big.c:268: warning: passing arg 2 of `signal' from incompatible pointer type
src/big.c:269: warning: passing arg 2 of `signal' from incompatible pointer type
src/big.c:350: warning: passing arg 2 of `signal' from incompatible pointer type
src/big.c: In function `onalarm':
src/big.c:389: warning: passing arg 2 of `signal' from incompatible pointer type
src/big.c: In function `getwork':
src/big.c:439: warning: passing arg 2 of `fprintf' from incompatible pointer type
/tmp/cc629QzZ.o: In function `getwork':
/tmp/cc629QzZ.o(.text+0xee5): the `gets' function is dangerous and should not be used.
cd ./src; gcc -c -DTIME -DHZ= -O2 -fomit-frame-pointer -fforce-addr -fforce-mem -ffast-math -m486 dh
ry_1.c
cd ./src; gcc -c -DTIME -DHZ= -O2 -fomit-frame-pointer -fforce-addr -fforce-mem -ffast-math -m486 dh
ry_2.c
gcc -o ./pgms/dhry2 -DTIME -O2 -fomit-frame-pointer -fforce-addr -fforce-mem -ffast-math -m486 ./src
/dhry_1.o ./src/dhry_2.o
cd ./src; rm -f dhry_1.o dhry_2.o
cd ./src; gcc -c -DTIME -DREG=register -DHZ= -O2 -fomit-frame-pointer -fforce-addr -fforce-mem -ffas
t-math -m486 dhry_1.c
cd ./src; gcc -c -DTIME -DREG=register -DHZ= -O2 -fomit-frame-pointer -fforce-addr -fforce-mem -ffas
t-math -m486 dhry_2.c
gcc -o ./pgms/dhry2reg -DTIME -O2 -fomit-frame-pointer -fforce-addr -fforce-mem -ffast-math -m486 ./
src/dhry_1.o ./src/dhry_2.o
cd ./src; rm -f dhry_1.o dhry_2.o
gcc -o ./pgms/looper -DTIME -O2 -fomit-frame-pointer -fforce-addr -fforce-mem -ffast-math -m486 ./sr
c/looper.c
gcc -o ./pgms/fstime -DTIME -O2 -fomit-frame-pointer -fforce-addr -fforce-mem -ffast-math -m486 -Daw
k=1 ./src/fstime.c
gcc -o ./pgms/fsbuffer -DTIME -O2 -fomit-frame-pointer -fforce-addr -fforce-mem -ffast-math -m486 -D
awk=1 \
-DFSBUFFER ./src/fstime.c
gcc -o ./pgms/fsdisk -DTIME -O2 -fomit-frame-pointer -fforce-addr -fforce-mem -ffast-math -m486 -Daw
k=1 \
-DFSDISK ./src/fstime.c