海馬のかわり

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

Windows Azure Platforme ベンチマーク (Linux/Smallインスタンス)

Windows Azure PlatformeにてLinux仮想マシンがサポートされた為、無償評価期間を利用して試してみる。

※登録には要クレジットカード

※現時点(2012/06/21)では、Virtual Machineの実行機能自体がPreview扱いの為、サインアップ後に[Management Portal] - [Account] - [PreviewFeatures] -[Virtual Machines & Virtual Networks] - [try it now]を選択し、アクティベートする必要があります。

・環境
Plan: S(Small) (1.6 GHz CPU、1.75 GB RAM、165 GB ストレージ)
Location: EastAsia
OS: CentOS release 6.2 (Final)

/proc/cpuinfo
意外にもAMDのCPUですね。
この型番で検索すると、HPのSL335sというスケールアウト環境向けサーバがよくヒットするので、DCにはこれらがずらりと並んでいる姿を想像してしまいました。

processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 16
model           : 8
model name      : AMD Opteron(tm) Processor 4171 HE
stepping        : 1
cpu MHz         : 2094.719
cache size      : 512 KB
physical id     : 0
siblings        : 1
core id         : 0
cpu cores       : 1
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb lm 3dnowext 3dnow up rep_good extd_apicid unfair_spinlock pni cx16 popcnt hypervisor lahf_lm cmp_legacy cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw
bogomips        : 4189.43
TLB size        : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 46 bits physical, 48 bits virtual
power management:


/proc/meminfo

MemTotal:        1785252 kB
MemFree:         1185360 kB
Buffers:           46264 kB
Cached:           415752 kB
SwapCached:            0 kB
Active:           130032 kB
Inactive:         352104 kB
Active(anon):      20276 kB
Inactive(anon):        8 kB
Active(file):     109756 kB
Inactive(file):   352096 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:         20132 kB
Mapped:            13116 kB
Shmem:               172 kB
Slab:              78256 kB
SReclaimable:      56560 kB
SUnreclaim:        21696 kB
KernelStack:         896 kB
PageTables:         3432 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:      892624 kB
Committed_AS:     149836 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       17168 kB
VmallocChunk:   34359713892 kB
HardwareCorrupted:     0 kB
AnonHugePages:         0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        6144 kB
DirectMap2M:     1763328 kB
DirectMap1G:     1048576 kB


df

# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
                       28G  7.0G   19G  27% /
tmpfs                 872M     0  872M   0% /dev/shm
/dev/sda1             485M   64M  396M  14% /boot
/dev/sdb1              69G  5.2G   61G   8% /mnt/resource


fdisk

# fdisk -l
Disk /dev/sda: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0001bfeb

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          64      512000   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              64        3917    30943232   8e  Linux LVM

Disk /dev/sdb: 75.2 GB, 75161927680 bytes
255 heads, 63 sectors/track, 9137 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xf896a09e

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1        9138    73398272   83  Linux

Disk /dev/mapper/VolGroup-lv_root: 29.6 GB, 29603397632 bytes
255 heads, 63 sectors/track, 3599 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/VolGroup-lv_root doesn't contain a valid partition table

Disk /dev/mapper/VolGroup-lv_swap: 2080 MB, 2080374784 bytes
255 heads, 63 sectors/track, 252 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/VolGroup-lv_swap doesn't contain a valid partition table


hdparm
AWSと同じくプランに応じてI/O性能に制限をかけているのでしょう。

# hdparm -tT /dev/sda
/dev/sda:
 Timing cached reads:   5920 MB in  2.00 seconds = 2965.53 MB/sec
 Timing buffered disk reads:   38 MB in  3.13 seconds =  12.14 MB/sec

# hdparm -tT /dev/sdb
/dev/sdb:
 Timing cached reads:   5612 MB in  2.00 seconds = 2810.77 MB/sec
 Timing buffered disk reads:  642 MB in 134.84 seconds =   4.76 MB/sec


dd
/dev/sdbの書き込みがとても速いのですが、Read性能と釣り合いませんね。

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

/dev/sdb
0
5120+0 records in
5120+0 records out
5368709120 bytes (5.4 GB) copied, 10.2106 s, 526 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: testvm01: GNU/Linux
   OS: GNU/Linux -- 2.6.32-220.17.1.el6.x86_64 -- #1 SMP Wed May 16 00:01:37 BST 2012
   Machine: x86_64 (x86_64)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: AMD Opteron(tm) Processor 4171 HE (4189.4 bogomips)
          Hyper-Threading, x86-64, MMX, AMD MMX, Physical Address Ext, SYSCALL/SYSRET
   23:09:20 up 12:05,  1 user,  load average: 0.19, 0.40, 0.21; runlevel 3

------------------------------------------------------------------------
Benchmark Run: Wed Jun 20 2012 23:09:20 - 23:37:10
1 CPU in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       17654039.5 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     1862.7 MWIPS (8.7 s, 7 samples)
Execl Throughput                               1007.2 lps   (29.8 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        600620.9 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          180835.6 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       1088958.6 KBps  (30.0 s, 2 samples)
Pipe Throughput                             1102561.0 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 230938.4 lps   (10.0 s, 7 samples)
Process Creation                              11629.1 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   2054.8 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    279.6 lpm   (60.2 s, 2 samples)
System Call Overhead                        1392271.0 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   17654039.5   1512.8
Double-Precision Whetstone                       55.0       1862.7    338.7
Execl Throughput                                 43.0       1007.2    234.2
File Copy 1024 bufsize 2000 maxblocks          3960.0     600620.9   1516.7
File Copy 256 bufsize 500 maxblocks            1655.0     180835.6   1092.7
File Copy 4096 bufsize 8000 maxblocks          5800.0    1088958.6   1877.5
Pipe Throughput                               12440.0    1102561.0    886.3
Pipe-based Context Switching                   4000.0     230938.4    577.3
Process Creation                                126.0      11629.1    922.9
Shell Scripts (1 concurrent)                     42.4       2054.8    484.6
Shell Scripts (8 concurrent)                      6.0        279.6    465.9
System Call Overhead                          15000.0    1392271.0    928.2
                                                                   ========
System Benchmarks Index Score                                         759.7


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 -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
testvm01      3480M  8279  19  7364   1  6231   2 11969  43 130630  19  2090  15
                    ------Sequential Create------ --------Random Create--------
                    -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                 16 59207  82 620391  98 111536 100 79158  99 886291 102 110599  99
testvm01,3480M,8279,19,7364,1,6231,2,11969,43,130630,19,2089.9,15,16,59207,82,620391,98,111536,100,79158,99,886291,102,110599,99

#  ./bonnie++ -d /mnt/resource -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
testvm01      3480M 47873  93 100156  20 114472  31 58858  97 396789  41 17417  57
                    ------Sequential Create------ --------Random Create--------
                    -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                 16 78650  98 615335  97 112619 100 64659  99 895204  98 111012  98
testvm01,3480M,47873,93,100156,20,114472,31,58858,97,396789,41,17417.2,57,16,78650,98,615335,97,112619,100,64659,99,895204,98,111012,98

以上