WenJunjie Blog

sysadmin

VPS VM Benchmark

| Comments

CPU

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
yum install gcc gcc-c++ make libXext-devel
yum groupinstall "Development Tools"
yum install libX11-devel mesa-libGL-devel perl-Time-HiRes
wget -c http://byte-unixbench.googlecode.com/files/unixbench-5.1.3.tgz
tar xvzf unixbench-5.1.3.tgz
cd unixbench-5.1.3
make
./Run

========================================================================
   BYTE UNIX Benchmarks (Version 5.1.2)

   System: AY1301120423032e49762: GNU/Linux
   OS: GNU/Linux -- 2.6.18-274.12.1.el5 -- #1 SMP Tue Nov 29 13:37:46 EST 2011
   Machine: x86_64 (x86_64)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: Intel(R) Xeon(R) CPU E5645 @ 2.40GHz (4800.5 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   CPU 1: Intel(R) Xeon(R) CPU E5645 @ 2.40GHz (4801.6 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   16:14:24 up 1 day,  1:19,  1 user,  load average: 0.02, 0.08, 0.11; runlevel 3

------------------------------------------------------------------------
Benchmark Run: Thu Jan 17 2013 16:14:24 - 16:42:24
2 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       12414522.0 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     1311.3 MWIPS (10.0 s, 7 samples)
Execl Throughput                               3455.5 lps   (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        670464.9 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          202450.0 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       1318858.5 KBps  (30.0 s, 2 samples)
Pipe Throughput                             1470797.5 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                  91449.2 lps   (10.0 s, 7 samples)
Process Creation                              12374.4 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   5983.4 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                   1026.3 lpm   (60.0 s, 2 samples)
System Call Overhead                        3195835.3 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   12414522.0   1063.8
Double-Precision Whetstone                       55.0       1311.3    238.4
Execl Throughput                                 43.0       3455.5    803.6
File Copy 1024 bufsize 2000 maxblocks          3960.0     670464.9   1693.1
File Copy 256 bufsize 500 maxblocks            1655.0     202450.0   1223.3
File Copy 4096 bufsize 8000 maxblocks          5800.0    1318858.5   2273.9
Pipe Throughput                               12440.0    1470797.5   1182.3
Pipe-based Context Switching                   4000.0      91449.2    228.6
Process Creation                                126.0      12374.4    982.1
Shell Scripts (1 concurrent)                     42.4       5983.4   1411.2
Shell Scripts (8 concurrent)                      6.0       1026.3   1710.4
System Call Overhead                          15000.0    3195835.3   2130.6
                                                                   ========
System Benchmarks Index Score                                        1022.8

------------------------------------------------------------------------
Benchmark Run: Thu Jan 17 2013 16:42:24 - 17:10:24
2 CPUs in system; running 2 parallel copies of tests

Dhrystone 2 using register variables       24106209.9 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     2600.2 MWIPS (9.9 s, 7 samples)
Execl Throughput                               7120.0 lps   (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        144642.8 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           43323.4 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        357576.4 KBps  (30.0 s, 2 samples)
Pipe Throughput                             2854960.4 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 664756.7 lps   (10.0 s, 7 samples)
Process Creation                              23556.0 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   7865.5 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                   1324.0 lpm   (60.0 s, 2 samples)
System Call Overhead                        4307758.4 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   24106209.9   2065.7
Double-Precision Whetstone                       55.0       2600.2    472.8
Execl Throughput                                 43.0       7120.0   1655.8
File Copy 1024 bufsize 2000 maxblocks          3960.0     144642.8    365.3
File Copy 256 bufsize 500 maxblocks            1655.0      43323.4    261.8
File Copy 4096 bufsize 8000 maxblocks          5800.0     357576.4    616.5
Pipe Throughput                               12440.0    2854960.4   2295.0
Pipe-based Context Switching                   4000.0     664756.7   1661.9
Process Creation                                126.0      23556.0   1869.5
Shell Scripts (1 concurrent)                     42.4       7865.5   1855.1
Shell Scripts (8 concurrent)                      6.0       1324.0   2206.6
System Call Overhead                          15000.0    4307758.4   2871.8
                                                                   ========
System Benchmarks Index Score                                        1189.1

Harddisk

1
2
yum install hdparm
yum install seeker

aws

1
2
3
4
5
6
7
hdparm -t /dev/xvda1
/dev/xvda1:
 Timing buffered disk reads:  212 MB in  3.00 seconds =  70.62 MB/sec
dd if=/dev/zero of=/tmp/output.img bs=8k count=256k
262144+0 records in
262144+0 records out
2147483648 bytes (2.1 GB) copied, 57.8857 s, 37.1 MB/s

aliyun

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
hdparm -t /dev/hda

/dev/hda:
 Timing buffered disk reads:  466 MB in  3.00 seconds = 155.26 MB/sec

hdparm -t /dev/xvdb

/dev/xvdb:
 Timing buffered disk reads:  106 MB in  3.01 seconds =  35.17 MB/sec

dd if=/dev/zero of=/tmp/output.img bs=8k count=256k
262144+0 records in
262144+0 records out
2147483648 bytes (2.1 GB) copied, 57.9623 seconds, 37.0 MB/s


[root@AY12081910044995c6294 ~]# dd if=/dev/zero of=/tmp/output.img bs=8k count=256k
262144+0 records in
262144+0 records out
2147483648 bytes (2.1 GB) copied, 76.9027 s, 27.9 MB/s

seeker /dev/hda
Seeker v3.0, 2009-06-17, http://www.linuxinsight.com/how_fast_is_your_disk.html
Benchmarking /dev/hda [41943040 blocks, 21474836480 bytes, 20 GB, 20480 MB, 21 GiB, 21474 MiB]
[512 logical sector size, 512 physical sector size]
[1 threads]
Wait 30 seconds..............................
Results: 282 seeks/second, 3.545 ms random access time (510310 < offsets < 21474400900)

seeker /dev/xvdb
Seeker v3.0, 2009-06-17, http://www.linuxinsight.com/how_fast_is_your_disk.html
Benchmarking /dev/xvdb [482344960 blocks, 246960619520 bytes, 230 GB, 235520 MB, 246 GiB, 246960 MiB]
[512 logical sector size, 512 physical sector size]
[1 threads]
Wait 30 seconds..............................
Results: 1410 seeks/second, 0.709 ms random access time (5662600 < offsets < 246954366165)

IO

1
2
3
4
5
6
7
8
wget http://www.iozone.org/src/current/iozone3_414.tar
tar xvf iozone3_414.tar
cd iozone3_414/src/current
make
./iozone
./iozone  -i 0 -r 32 -s 2097152
./iozone -a -n 512m -g 4g -i 0 -i 1 -i 5 -f /app/iozone -Rb ./iozone.xls
./iozone -Mcew -i0 -i1 -i2 -s4g -r256k -f /app/io.tmp

Memcache

yum install mbw

Network

yum install iperf iperf -s iperf -c 192.168.1.23

DB

Comments