2016年9月27日火曜日

[XenServer] UnixBench


 I was successful to install end execute UnixBench on  XenServer 6.5.\


○ Environment:

CPU : AMD FX-9590 (4.7 GHz)
Hypervisor : Citrix  XenServer 6.5
OS : Stretch (Debian)

Stretch is running with 2 CPUs And 2GB memory on XenServer.

○install UnixBench.

[root@servername ~]# wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/byte-unixbench/UnixBench5.1.3.tgz
--2016-09-27 12:01:43--  https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/byte-unixbench/UnixBench5.1.3.tgz
Resolving storage.googleapis.com (storage.googleapis.com)... 74.125.23.128, 2404:6800:4008:c01::80
Connecting to storage.googleapis.com (storage.googleapis.com)|74.125.23.128|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 143259 (140K) [application/octet-stream]
Saving to: UnixBench5.1.3.tgz 2019

UnixBench5.1.3.tgz  100%[===================>] 139.90K   586KB/s    in 0.2s   

2016-09-27 12:01:45 (586 KB/s) - UnixBench5.1.3.tgz saved [143259/143259] [root@servername ~]#tar zxvf ./UnixBench5.1.3.tgz -C /usr/local/

○Execute UnixBench

[root@servername ~]# cd /usr/local/UnixBench
[root@servername ~]# ./Run
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 \u2018main\u2019:
./src/syscall.c:93:21: warning: null argument where non-null required (argument 2) [-Wnonnull]
                     execl("/bin/true", (char *) 0);
                     ^~~~~
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
In file included from ./src/execl.c:34:0:
./src/big.c: In function \u2018getwork\u2019:
./src/big.c:452:11: warning: variable \u2018c\u2019 set but not used [-Wunused-but-set-variable]
     char  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
make all
make[1]: Entering directory '/usr/local/UnixBench'
Checking distribution of files
./pgms  exists
./src  exists
./testdir  exists
./results  exists
make[1]: Leaving directory '/usr/local/UnixBench'
sh: 1: 3dinfo: 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

2 x Dhrystone 2 using register variables  1 2 3 4 5 6 7 8 9 10

2 x Double-Precision Whetstone  1 2 3 4 5 6 7 8 9 10

2 x Execl Throughput  1 2 3

2 x File Copy 1024 bufsize 2000 maxblocks  1 2 3

2 x File Copy 256 bufsize 500 maxblocks  1 2 3

2 x File Copy 4096 bufsize 8000 maxblocks  1 2 3

2 x Pipe Throughput  1 2 3 4 5 6 7 8 9 10

2 x Pipe-based Context Switching  1 2 3 4 5 6 7 8 9 10

2 x Process Creation  1 2 3

2 x System Call Overhead  1 2 3 4 5 6 7 8 9 10

2 x Shell Scripts (1 concurrent)  1 2 3

2 x Shell Scripts (8 concurrent)  1 2 3

========================================================================
   BYTE UNIX Benchmarks (Version 5.1.3)

   System: BandaAceh: GNU/Linux
   OS: GNU/Linux -- 4.3.0-1-amd64 -- #1 SMP Debian 4.3.5-1 (2016-02-06)
   Machine: x86_64 (unknown)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: AMD FX(tm)-9590 Eight-Core Processor (9380.0 bogomips)
          Hyper-Threading, x86-64, MMX, AMD MMX, Physical Address Ext, SYSCALL/SYSRET
   CPU 1: AMD FX(tm)-9590 Eight-Core Processor (9380.0 bogomips)
          Hyper-Threading, x86-64, MMX, AMD MMX, Physical Address Ext, SYSCALL/SYSRET
   12:46:36 up  1:07,  1 user,  load average: 3.27, 1.22, 0.60; runlevel 5

------------------------------------------------------------------------
Benchmark Run: Tue Sep 27 2016 12:46:36 - 13:14:44
2 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       37698819.4 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     4648.1 MWIPS (9.7 s, 7 samples)
Execl Throughput                                946.5 lps   (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        316189.3 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           86468.0 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        828011.4 KBps  (30.0 s, 2 samples)
Pipe Throughput                              512535.0 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                  63324.0 lps   (10.0 s, 7 samples)
Process Creation                               1725.9 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   5501.0 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                   1055.3 lpm   (60.0 s, 2 samples)
System Call Overhead                         509390.6 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   37698819.4   3230.4
Double-Precision Whetstone                       55.0       4648.1    845.1
Execl Throughput                                 43.0        946.5    220.1
File Copy 1024 bufsize 2000 maxblocks          3960.0     316189.3    798.5
File Copy 256 bufsize 500 maxblocks            1655.0      86468.0    522.5
File Copy 4096 bufsize 8000 maxblocks          5800.0     828011.4   1427.6
Pipe Throughput                               12440.0     512535.0    412.0
Pipe-based Context Switching                   4000.0      63324.0    158.3
Process Creation                                126.0       1725.9    137.0
Shell Scripts (1 concurrent)                     42.4       5501.0   1297.4
Shell Scripts (8 concurrent)                      6.0       1055.3   1758.8
System Call Overhead                          15000.0     509390.6    339.6
                                                                   ========
System Benchmarks Index Score                                         606.5

------------------------------------------------------------------------
Benchmark Run: Tue Sep 27 2016 13:14:44 - 13:42:53
2 CPUs in system; running 2 parallel copies of tests

Dhrystone 2 using register variables       77572329.0 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     9325.4 MWIPS (9.8 s, 7 samples)
Execl Throughput                               3223.2 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        481966.9 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          130799.5 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       1351926.1 KBps  (30.0 s, 2 samples)
Pipe Throughput                              734678.3 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 134536.7 lps   (10.0 s, 7 samples)
Process Creation                               5801.5 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   8146.8 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                   1084.0 lpm   (60.1 s, 2 samples)
System Call Overhead                         901477.2 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   77572329.0   6647.2
Double-Precision Whetstone                       55.0       9325.4   1695.5
Execl Throughput                                 43.0       3223.2    749.6
File Copy 1024 bufsize 2000 maxblocks          3960.0     481966.9   1217.1
File Copy 256 bufsize 500 maxblocks            1655.0     130799.5    790.3
File Copy 4096 bufsize 8000 maxblocks          5800.0    1351926.1   2330.9
Pipe Throughput                               12440.0     734678.3    590.6
Pipe-based Context Switching                   4000.0     134536.7    336.3
Process Creation                                126.0       5801.5    460.4
Shell Scripts (1 concurrent)                     42.4       8146.8   1921.4
Shell Scripts (8 concurrent)                      6.0       1084.0   1806.7
System Call Overhead                          15000.0     901477.2    601.0
                                                                   ========
System Benchmarks Index Score                                        1113.0

------------------------------------------------------------------------
Benchmark Run: Mon Oct 03 2016 09:19:18 - 09:47:38
8 CPUs in system; running 1 parallel copy of tests
The result of the case of allocation 8 CPU and 15 GB Memory to Stretch.
Dhrystone 2 using register variables       40947340.1 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     4407.1 MWIPS (10.9 s, 7 samples)
Execl Throughput                                542.9 lps   (29.8 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        426851.1 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          113232.8 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       1042961.7 KBps  (30.0 s, 2 samples)
Pipe Throughput                              671837.6 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                  43131.9 lps   (10.0 s, 7 samples)
Process Creation                               1074.5 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   4607.3 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                   1830.9 lpm   (60.0 s, 2 samples)
System Call Overhead                         546894.8 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   40947340.1   3508.8
Double-Precision Whetstone                       55.0       4407.1    801.3
Execl Throughput                                 43.0        542.9    126.2
File Copy 1024 bufsize 2000 maxblocks          3960.0     426851.1   1077.9
File Copy 256 bufsize 500 maxblocks            1655.0     113232.8    684.2
File Copy 4096 bufsize 8000 maxblocks          5800.0    1042961.7   1798.2
Pipe Throughput                               12440.0     671837.6    540.1
Pipe-based Context Switching                   4000.0      43131.9    107.8
Process Creation                                126.0       1074.5     85.3
Shell Scripts (1 concurrent)                     42.4       4607.3   1086.6
Shell Scripts (8 concurrent)                      6.0       1830.9   3051.6
System Call Overhead                          15000.0     546894.8    364.6
                                                                   ========
System Benchmarks Index Score                                         613.2

------------------------------------------------------------------------
Benchmark Run: Mon Oct 03 2016 09:47:38 - 10:15:53
8 CPUs in system; running 8 parallel copies of tests

Dhrystone 2 using register variables      218684221.3 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                    30972.0 MWIPS (9.7 s, 7 samples)
Execl Throughput                               6237.2 lps   (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        505477.7 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          135568.9 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       1383821.7 KBps  (30.0 s, 2 samples)
Pipe Throughput                             4042237.9 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 564378.2 lps   (10.0 s, 7 samples)
Process Creation                               9520.7 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                  16182.0 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                   2216.4 lpm   (60.1 s, 2 samples)
System Call Overhead                        1980170.7 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0  218684221.3  18739.0
Double-Precision Whetstone                       55.0      30972.0   5631.3
Execl Throughput                                 43.0       6237.2   1450.5
File Copy 1024 bufsize 2000 maxblocks          3960.0     505477.7   1276.5
File Copy 256 bufsize 500 maxblocks            1655.0     135568.9    819.1
File Copy 4096 bufsize 8000 maxblocks          5800.0    1383821.7   2385.9
Pipe Throughput                               12440.0    4042237.9   3249.4
Pipe-based Context Switching                   4000.0     564378.2   1410.9
Process Creation                                126.0       9520.7    755.6
Shell Scripts (1 concurrent)                     42.4      16182.0   3816.5
Shell Scripts (8 concurrent)                      6.0       2216.4   3693.9
System Call Overhead                          15000.0    1980170.7   1320.1
                                                                   ========
System Benchmarks Index Score                                        2322.4

○ Reference:

1. http://blog.idcf.jp/entry/cloud/unixbench/
2. http://www.bravotouring.com/%7Eyano/diary/it/20130314unixbench.html






0 件のコメント:

コメントを投稿