UnixBenchをダウンロード、インストール、実行したときのメモを残します。
環境:
Redhat Enterprise Linux 6.2
UnixBench5.1.3
実行日:2012/12/25
1.ダウンロード
2.インストール
ダウンロードしたUnixBenchを tar -xzvf で解凍する。
# tar -zxvf UnixBench5.1.3.tgz UnixBench/ UnixBench/README UnixBench/src/ UnixBench/src/looper.c UnixBench/src/time-polling.c UnixBench/src/arith.c UnixBench/src/hanoi.c UnixBench/src/timeit.c UnixBench/src/dhry_1.c UnixBench/src/dhry.h UnixBench/src/dhry_2.c UnixBench/src/fstime.c UnixBench/src/syscall.c UnixBench/src/execl.c UnixBench/src/context1.c UnixBench/src/whets.c UnixBench/src/dummy.c UnixBench/src/big.c UnixBench/src/spawn.c UnixBench/src/pipe.c UnixBench/src/ubgears.c UnixBench/pgms/ UnixBench/pgms/index.base UnixBench/pgms/gfx-x11 UnixBench/pgms/multi.sh UnixBench/pgms/unixbench.logo UnixBench/pgms/tst.sh UnixBench/WRITING_TESTS UnixBench/.project UnixBench/Run UnixBench/testdir/ UnixBench/testdir/sort.src UnixBench/testdir/cctest.c UnixBench/testdir/dc.dat UnixBench/testdir/large.txt UnixBench/.cproject UnixBench/results/ UnixBench/Makefile UnixBench/USAGE |
make する
# cd UnixBench # make Checking distribution of files ./pgms exists ./src exists ./testdir exists ./results exists gcc -o ./pgms/arithoh -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall -Darithoh ./src/arith.c gcc -o ./pgms/register -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall -Ddatum='register int' ./src/arith.c gcc -o ./pgms/short -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall -Ddatum=short ./src/arith.c gcc -o ./pgms/int -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall -Ddatum=int ./src/arith.c gcc -o ./pgms/long -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall -Ddatum=long ./src/arith.c gcc -o ./pgms/float -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall -Ddatum=float ./src/arith.c gcc -o ./pgms/double -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall -Ddatum=double ./src/arith.c gcc -o ./pgms/hanoi -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/hanoi.c gcc -o ./pgms/syscall -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/syscall.c ./src/syscall.c: In function ‘main’: ./src/syscall.c:93: 警告: null argument where non-null required (argument 2) gcc -o ./pgms/context1 -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/context1.c gcc -o ./pgms/pipe -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/pipe.c gcc -o ./pgms/spawn -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/spawn.c gcc -o ./pgms/execl -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/execl.c cd ./src; gcc -c -DTIME -Wall -pedantic -ansi -DHZ= -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall dhry_1.c cd ./src; gcc -c -DTIME -Wall -pedantic -ansi -DHZ= -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall dhry_2.c gcc -o ./pgms/dhry2 -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/dhry_1.o ./src/dhry_2.o cd ./src; rm -f dhry_1.o dhry_2.o cd ./src; gcc -c -DTIME -Wall -pedantic -ansi -DREG=register -DHZ= -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall dhry_1.c -o dhry_1_reg.o cd ./src; gcc -c -DTIME -Wall -pedantic -ansi -DREG=register -DHZ= -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall dhry_2.c -o dhry_2_reg.o gcc -o ./pgms/dhry2reg -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/dhry_1_reg.o ./src/dhry_2_reg.o cd ./src; rm -f dhry_1_reg.o dhry_2_reg.o gcc -o ./pgms/looper -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/looper.c gcc -o ./pgms/fstime -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/fstime.c gcc -o ./pgms/whetstone-double -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall -DDP -DUNIX -DUNIXBENCH ./src/whets.c -lm |
UnixBenchを実行します。
# ./Run make all make[1]: Entering directory `/img/UnixBench/UnixBench' Checking distribution of files ./pgms exists ./src exists ./testdir exists ./tmp exists ./results exists make[1]: Leaving directory `/img/UnixBench/UnixBench' sh: 3dinfo: command not found # # # # # # # ##### ###### # # #### # # # # ## # # # # # # # ## # # # # # # # # # # # ## ##### ##### # # # # ###### # # # # # # ## # # # # # # # # # # # # ## # # # # # # # ## # # # # #### # # # # # ##### ###### # # #### # # Version 5.1.3 Based on the Byte Magazine Unix Benchmark Multi-CPU version Version 5 revisions by Ian Smith, Sunnyvale, CA, USA January 13, 2011 johantheghost at yahoo period com 1 x Dhrystone 2 using register variables 1 2 3 4 5 6 7 8 9 10 1 x Double-Precision Whetstone 1 2 3 4 5 6 7 8 9 10 1 x Execl Throughput 1 2 3 1 x File Copy 1024 bufsize 2000 maxblocks 1 2 3 1 x File Copy 256 bufsize 500 maxblocks 1 2 3 1 x File Copy 4096 bufsize 8000 maxblocks 1 2 3 1 x Pipe Throughput 1 2 3 4 5 6 7 8 9 10 1 x Pipe-based Context Switching 1 2 3 4 5 6 7 8 9 10 1 x Process Creation 1 2 3 1 x System Call Overhead 1 2 3 4 5 6 7 8 9 10 1 x Shell Scripts (1 concurrent) 1 2 3 1 x Shell Scripts (8 concurrent) 1 2 3 ======================================================================== BYTE UNIX Benchmarks (Version 5.1.3) System: linuxtest.localdomain: GNU/Linux OS: GNU/Linux -- 2.6.32-220.el6.x86_64 -- #1 SMP Wed Nov 9 08:03:13 EST 2011 Machine: x86_64 (x86_64) Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8") CPU 0: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz (3992.1 bogomips) x86-64, MMX, Physical Address Ext, SYSCALL/SYSRET 01:30:53 up 1:12, 2 users, load average: 0.03, 0.10, 0.31; runlevel 5 ------------------------------------------------------------------------ Benchmark Run: 日 12月 23 2012 01:30:53 - 01:59:34 1 CPU in system; running 1 parallel copy of tests Dhrystone 2 using register variables 27853286.9 lps (10.0 s, 7 samples) Double-Precision Whetstone 3036.4 MWIPS (9.9 s, 7 samples) Execl Throughput 3123.7 lps (29.8 s, 2 samples) File Copy 1024 bufsize 2000 maxblocks 591611.7 KBps (30.0 s, 2 samples) File Copy 256 bufsize 500 maxblocks 160634.5 KBps (30.0 s, 2 samples) File Copy 4096 bufsize 8000 maxblocks 1566307.6 KBps (30.0 s, 2 samples) Pipe Throughput 1142636.8 lps (10.0 s, 7 samples) Pipe-based Context Switching 247016.3 lps (10.0 s, 7 samples) Process Creation 8801.0 lps (30.0 s, 2 samples) Shell Scripts (1 concurrent) 3890.8 lpm (60.0 s, 2 samples) Shell Scripts (8 concurrent) 518.1 lpm (60.0 s, 2 samples) System Call Overhead 1991757.3 lps (10.0 s, 7 samples) System Benchmarks Index Values BASELINE RESULT INDEX Dhrystone 2 using register variables 116700.0 27853286.9 2386.7 Double-Precision Whetstone 55.0 3036.4 552.1 Execl Throughput 43.0 3123.7 726.4 File Copy 1024 bufsize 2000 maxblocks 3960.0 591611.7 1494.0 File Copy 256 bufsize 500 maxblocks 1655.0 160634.5 970.6 File Copy 4096 bufsize 8000 maxblocks 5800.0 1566307.6 2700.5 Pipe Throughput 12440.0 1142636.8 918.5 Pipe-based Context Switching 4000.0 247016.3 617.5 Process Creation 126.0 8801.0 698.5 Shell Scripts (1 concurrent) 42.4 3890.8 917.6 Shell Scripts (8 concurrent) 6.0 518.1 863.5 System Call Overhead 15000.0 1991757.3 1327.8 ======== System Benchmarks Index Score 1037.9 |
[redhat linux 技術ドキュメント トップ]
[FAQ CENTER トップ]