使用unixBench测试服务器性能

UnixBench是一款不错的Linux下的VPS性能测试软件,现在说一下具体用法。
UnixBench 4.10 下载地址: http://licess.googlecode.com/files/unixbench-4.1.0-wht.tar.gz
 
系安装过程
[root@linuxserver /]# wget http://licess.googlecode.com/files/unixbench-4.1.0-wht.tar.gz
--15:37:15--  http://licess.googlecode.com/files/unixbench-4.1.0-wht.tar.gz
Resolving licess.googlecode.com... 72.14.203.82
Connecting to licess.googlecode.com|72.14.203.82|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 69272 (68K) [application/x-gzip]
Saving to: `unixbench-4.1.0-wht.tar.gz'
100%[=======================================>] 69,272       149K/s   in 0.5s
15:37:17 (149 KB/s) - `unixbench-4.1.0-wht.tar.gz' saved [69272/69272]
[root@linuxserver /]# tar xzf unixbench-4.1.0-wht.tar.gz
[root@linuxserver /]# ls
bin                      media                sbin
boot                     misc                 selinux
data                     mnt                  srv
dev                      net                  sys
etc                      opt                  tmp
home                     proc                 unixbench-4.1.0-wht-2
kloxo-install-master.sh  program-install      unixbench-4.1.0-wht.tar.gz
lib                      program-install.zip  usr
lost+found               root                 var
[root@linuxserver /]# cd unixbench-4.1.0-wht-2/
[root@linuxserver unixbench-4.1.0-wht-2]# make
Checking distribution of files
./pgms  exists
./src  exists
./testdir  exists
./tmp  exists
./results  exists
gcc -o ./pgms/arithoh -DTIME -Wall -pedantic -ansi  -Darithoh ./src/arith.c
gcc -o ./pgms/register -DTIME -Wall -pedantic -ansi  -Ddatum='register int' ./src/arith.c
gcc -o ./pgms/short -DTIME -Wall -pedantic -ansi  -Ddatum=short ./src/arith.c
gcc -o ./pgms/int -DTIME -Wall -pedantic -ansi  -Ddatum=int ./src/arith.c
gcc -o ./pgms/long -DTIME -Wall -pedantic -ansi  -Ddatum=long ./src/arith.c
gcc -o ./pgms/float -DTIME -Wall -pedantic -ansi  -Ddatum=float ./src/arith.c
gcc -o ./pgms/double -DTIME -Wall -pedantic -ansi  -Ddatum=double ./src/arith.c
gcc -o ./pgms/hanoi -DTIME -Wall -pedantic -ansi  ./src/hanoi.c
gcc -o ./pgms/syscall -DTIME -Wall -pedantic -ansi  ./src/syscall.c
gcc -o ./pgms/context1 -DTIME -Wall -pedantic -ansi  ./src/context1.c
gcc -o ./pgms/pipe -DTIME -Wall -pedantic -ansi  ./src/pipe.c
gcc -o ./pgms/spawn -DTIME -Wall -pedantic -ansi  ./src/spawn.c
gcc -o ./pgms/execl -DTIME -Wall -pedantic -ansi  ./src/execl.c
In file included from ./src/execl.c:32:
./src/big.c: In function �wrapup�:
./src/big.c:425: warning: implicit declaration of function �kill�
./src/execl.c: In function �main�:
./src/execl.c:80: warning: format �%lu� expects type �long unsigned int *�, but argument 3 has type �time_t *�
cd ./src; gcc -c -DTIME -Wall -pedantic -ansi -DHZ=  dhry_1.c
cd ./src; gcc -c -DTIME -Wall -pedantic -ansi -DHZ=  dhry_2.c
gcc -o ./pgms/dhry2 -DTIME -Wall -pedantic -ansi  ./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=  dhry_1.c
cd ./src; gcc -c -DTIME -Wall -pedantic -ansi -DREG=register -DHZ=  dhry_2.c
gcc -o ./pgms/dhry2reg -DTIME -Wall -pedantic -ansi  ./src/dhry_1.o ./src/dhry_2.o
cd ./src; rm -f dhry_1.o dhry_2.o
gcc -o ./pgms/looper -DTIME -Wall -pedantic -ansi  ./src/looper.c
gcc -o ./pgms/fstime -DTIME -Wall -pedantic -ansi  -Dawk=1 ./src/fstime.c
./src/fstime.c: In function �w_test�:
./src/fstime.c:168: warning: implicit declaration of function �sync�
gcc -o ./pgms/fsbuffer -DTIME -Wall -pedantic -ansi  -Dawk=1 \
        -DFSBUFFER ./src/fstime.c
./src/fstime.c: In function �w_test�:
./src/fstime.c:168: warning: implicit declaration of function �sync�
gcc -o ./pgms/fsdisk -DTIME -Wall -pedantic -ansi  -Dawk=1 \
        -DFSDISK ./src/fstime.c
./src/fstime.c: In function �w_test�:
./src/fstime.c:168: warning: implicit declaration of function �sync�
gcc -o ./pgms/whetstone-double -DTIME -Wall -pedantic -ansi  -DDP -DUNIX -DUNIXBENCH ./src/whets.c -lm
 
测试过程:
[root@linuxserver unixbench-4.1.0-wht-2]# ./Run
make all
make[1]: Entering directory `/unixbench-4.1.0-wht-2'
Checking distribution of files
./pgms  exists
./src  exists
./testdir  exists
./tmp  exists
./results  exists
make[1]: Leaving directory `/unixbench-4.1.0-wht-2'
   #    #  #    #  #  #    #          #####   ######  #    #   ####   #    #
   #    #  ##   #  #   #  #           #    #  #       ##   #  #    #  #    #
   #    #  # #  #  #    ##            #####   #####   # #  #  #       ######
   #    #  #  # #  #    ##            #    #  #       #  # #  #       #    #
   #    #  #   ##  #   #  #           #    #  #       #   ##  #    #  #    #
    ####   #    #  #  #    #          #####   ######  #    #   ####   #    #
                 4        1           Based on the Byte Magazine Unix Benchmark
                44       11
   v   v       4 4        1
    v v       44444       1           v4.1 revisions mostly by David C. Niemi,
     v           4   o   111 - WHT.2  Reston, VA, USA  < [email protected]>
WHT Variant by Andy A. Lee < [email protected]>
See: http://www.webhostingtalk.com/showthread.php?s=&threadid=308055

Dhrystone 2 using register variables  1 2
Double-Precision Whetstone  1 2
Execl Throughput  1
Filesystem Throughput 1024 bufsize 2000 maxblocks  1
Filesystem Throughput 256 bufsize 500 maxblocks  1
Filesystem Throughput 4096 bufsize 8000 maxblocks  1
Pipe Throughput  1 2
Pipe-based Context Switching  1 2
Process Creation  1
System Call Overhead  1 2
Shell Scripts (8 concurrent)  1
==============================================================
BYTE UNIX Benchmarks (Version 4.1-wht.2)
System -- Linux linuxserver 2.6.18-92.el5 #1 SMP Tue Jun 10 18:49:47 EDT 2008 i686 i686 i386 GNU/Linux
/dev/sda3              3516832   1960184   1375116  59% /
Start Benchmark Run: Tue Jun  9 15:41:55 CST 2009
 15:41:55 up 1 day,  9:41,  1 user,  load average: 0.00, 0.02, 0.00
End Benchmark Run: Tue Jun  9 15:53:21 CST 2009
 15:53:21 up 1 day,  9:52,  1 user,  load average: 13.34, 5.91, 2.74

                     INDEX VALUES
TEST                                        BASELINE     RESULT      INDEX
Dhrystone 2 using register variables        376783.7  4499848.7      119.4
Double-Precision Whetstone                      83.1     1086.6      130.8
Execl Throughput                               188.3     1243.3       66.0
File Copy 1024 bufsize 2000 maxblocks         2672.0    37145.0      139.0
File Copy 256 bufsize 500 maxblocks           1077.0    15992.0      148.5
File Read 4096 bufsize 8000 maxblocks        15382.0   111746.0       72.6
Pipe-based Context Switching                 15448.6    39545.9       25.6
Pipe Throughput                             111814.6   186350.4       16.7
Process Creation                               569.3     2358.6       41.4
Shell Scripts (8 concurrent)                    44.8      260.7       58.2
System Call Overhead                        114433.5   245943.9       21.5
                                                                 =========
     FINAL SCORE                                                      59.7

你可能感兴趣的:(unix,职场,休闲)