読者です 読者をやめる 読者になる 読者になる

海馬のかわり

最近記憶力に難がある、地方在住サーバエンジニアの備忘録です。

CPI CloudCore VPS ベンチマーク

物理1コアpinningが売りのCPI CloudCore VPSを試用してみたので、そのUnixBench結果などを。

・環境
Plan: CloudCore VPS 2048(CPU: 物理1コア Mem:2GB Disk:100GB)
OS: CentOS x86_64

/proc/cpuinfo
flagsにsvmがあるのでKVM on KVMが使えそう。(実用性があるかは別にして)
modelはPhenomと出ているけど、たぶんこれはKVM側でエミュレートさせているからで、ホスト側物理CPUはOpteronの6コアx2とか12コアあたりかな。

processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 16
model           : 2
model name      : AMD Phenom(tm) 9550 Quad-Core Processor
stepping        : 3
cpu MHz         : 2199.998
cache size      : 512 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt pdpe1gb lm up pni cx16 popcnt lahf_lm cmp_legacy svm cr8_legacy altmovcr8 abm sse4a misalignsse
bogomips        : 4399.99
TLB size        : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:

/proc/meminfo

MemTotal:      2058852 kB
MemFree:       1635836 kB
Buffers:         80292 kB
Cached:         248660 kB
SwapCached:          0 kB
Active:         140076 kB
Inactive:       200792 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:      2058852 kB
LowFree:       1635836 kB
SwapTotal:     4194296 kB
SwapFree:      4194296 kB
Dirty:               0 kB
Writeback:           0 kB
AnonPages:       11940 kB
Mapped:           7928 kB
Slab:            61988 kB
PageTables:       4660 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
CommitLimit:   5223720 kB
Committed_AS:    42708 kB
VmallocTotal: 34359738367 kB
VmallocUsed:      2188 kB
VmallocChunk: 34359736179 kB
HugePages_Total:     0
HugePages_Free:      0
HugePages_Rsvd:      0
Hugepagesize:     2048 kB

fdisk

# fdisk -l
Disk /dev/vda: 107.3 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = シリンダ数 of 16065 * 512 = 8225280 bytes

デバイス Boot      Start         End      Blocks   Id  System
/dev/vda1   *           1       13054   104856223+  83  Linux

hdparm
errorが出ているのは、hdparmはVirtIOディスクに非対応だから。
でも値は一応取れるみたい。

# hdparm -tT
/dev/vda:
 Timing cached reads:   10784 MB in  2.00 seconds = 5394.64 MB/sec
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Inappropriate ioctl for device
 Timing buffered disk reads:  152 MB in  3.00 seconds =  50.62 MB/sec
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Inappropriate ioctl for device

dd

# dd if=/dev/zero of=./test.img bs=1024k count=5120
5120+0 records in
5120+0 records out
5368709120 bytes (5.4 GB) copied, 47.6683 seconds, 113 MB/s

UnixBench

# wget http://byte-unixbench.googlecode.com/files/UnixBench5.1.3.tgz
# tar xvzf UnixBench5.1.3.tgz
# cd ./UnixBench
# make
# export LANG=C
# ./Run
   BYTE UNIX Benchmarks (Version 5.1.3)

   System: kvps-202-133-***-***.secure.ne.jp: GNU/Linux
   OS: GNU/Linux -- 2.6.18-274.18.1.el5 -- #1 SMP Thu Feb 9 12:45:44 EST 2012
   Machine: x86_64 (x86_64)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: AMD Phenom(tm) 9550 Quad-Core Processor (4400.0 bogomips)
          x86-64, MMX, AMD MMX, Physical Address Ext, SYSENTER/SYSEXIT, AMD virtualization, SYSCALL/SYSRET
   19:00:41 up 17 min,  2 users,  load average: 0.10, 0.03, 0.02; runlevel 3

------------------------------------------------------------------------
Benchmark Run: Fri Mar 02 2012 19:00:41 - 19:28:33
1 CPU in system; running 1 parallel copy of tests

Dhrystone 2 using register variables        8750916.2 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     1882.7 MWIPS (9.8 s, 7 samples)
Execl Throughput                               3532.6 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        613044.0 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          200114.1 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        738458.7 KBps  (30.0 s, 2 samples)
Pipe Throughput                             1866582.3 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 319493.4 lps   (10.0 s, 7 samples)
Process Creation                               6924.8 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   4205.9 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    582.4 lpm   (60.1 s, 2 samples)
System Call Overhead                        2531573.4 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0    8750916.2    749.9
Double-Precision Whetstone                       55.0       1882.7    342.3
Execl Throughput                                 43.0       3532.6    821.5
File Copy 1024 bufsize 2000 maxblocks          3960.0     613044.0   1548.1
File Copy 256 bufsize 500 maxblocks            1655.0     200114.1   1209.1
File Copy 4096 bufsize 8000 maxblocks          5800.0     738458.7   1273.2
Pipe Throughput                               12440.0    1866582.3   1500.5
Pipe-based Context Switching                   4000.0     319493.4    798.7
Process Creation                                126.0       6924.8    549.6
Shell Scripts (1 concurrent)                     42.4       4205.9    991.9
Shell Scripts (8 concurrent)                      6.0        582.4    970.6
System Call Overhead                          15000.0    2531573.4   1687.7
                                                                   ========
System Benchmarks Index Score                                         949.6

Bonnie++

# wget http://www.coker.com.au/bonnie++/bonnie++-1.03e.tgz
# tar xvzf bonnie++-1.03e.tgz
# cd bonnie++-1.03e
# ./configure; echo $?
# cp -p bonnie.h bonnie.h.org
# sed  -i s/#define\ MinTime\ \(0.5\)/#define\ MinTime\ \(0.01\)/g bonnie.h
# diff -wb bonnie.h.org bonnie.h
# make; echo $?
#  ./bonnie++ -d /tmp -s 2048 -r 1024 -u root
Using uid:0, gid:0.
Writing with putc()...done
Writing intelligently...done
Rewriting...done
Reading with getc()...done
Reading intelligently...done
start 'em...done...done...done...
Create files in sequential order...done.
Stat files in sequential order...done.
Delete files in sequential order...done.
Create files in random order...done.
Stat files in random order...done.
Delete files in random order...done.
Version 1.03e       ------Sequential Output------ --Sequential Input- --Random-
                    -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
kvps-202-133-*** 2G 55046  96 142944  30 89472  43 60246  94 598871  81 63635 100
                    ------Sequential Create------ --------Random Create--------
                    -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                 16 87083  99 391064 100 104802  99 91101 100 544986  99 104466 100
kvps-202-133-***-***.secure.ne.jp,2G,55046,96,142944,30,89472,43,60246,94,598871,81,63635.2,100,16,87083,99,391064,100,104802,99,91101,100,544986,99,104466,100

以上