0x01 前言
昨天有幸收到一位网友赠送的VPS,网络走的是电信的CN2,为了能更加全面地了解这台VPS的性能,我例行进行一次性能测试。
因为是赠送的VPS,所以我会将IP信息和主机名进行隐藏或修改。另外,标题中的zenlayer可能并不是服务商的名称,有可能只是服务器托管在zenlayer而已,另外IP地址也归属zenlayer。
0x02 配置
VPS的基本信息如下:
- CPU:2颗虚拟核心
- 内存:1G
- 硬盘:30G
- 网络:100M
- 地域:美国 加利福尼亚州 洛杉矶
CPU信息如下:
processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 58 model name : Intel Xeon E3-12xx v2 (Ivy Bridge) stepping : 9 microcode : 0x1 cpu MHz : 2599.964 cache size : 16384 KB physical id : 0 siblings : 1 core id : 0 cpu cores : 1 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 13 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 ss syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology eagerfpu pni pclmulqdq vmx ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm kaiser tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust smep erms xsaveopt arat bugs : bogomips : 5199.92 clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management:
虚拟化技术:
[root@lax2-us~]# dmidecode -s system-manufacturer OpenStack Foundation
从上面可以看出使用了OpenStack架构,从下面的信息可以看出使用了KVM虚拟化:
Processor Information Socket Designation: CPU 0 Type: Central Processor Family: Other Manufacturer: QEMU ID: A9 06 03 00 FF FB 8B 0F Version: pc-i440fx-artful Voltage: Unknown External Clock: Unknown Max Speed: 2000 MHz Current Speed: 2000 MHz Status: Populated, Enabled Upgrade: Other L1 Cache Handle: Not Provided L2 Cache Handle: Not Provided L3 Cache Handle: Not Provided Serial Number: Not Specified Asset Tag: Not Specified Part Number: Not Specified Core Count: 1 Core Enabled: 1 Thread Count: 1 Characteristics: None
0x03 网络测试
0x03.1 ping
--- lax2-us.t.com ping statistics --- 2537 packets transmitted, 2536 received, 0% packet loss, time 2537615ms rtt min/avg/max/mdev = 165.766/167.249/273.476/5.459 ms
使用ping发出2537个数据包,仅丢失1个,平均延迟为167.249ms,这是个非常好的结果。
0x03.2 wget
[root@web temp]# wget lax2-us.t.com/1gb-1.test --2018-05-05 14:29:14-- http://lax2-us.t.com/1gb-1.test Connecting to lax2-us.t.com:80... connected. HTTP request sent, awaiting response... 200 OK Length: 1073741824 (1.0G) [application/octet-stream] Saving to: ‘1gb-1.test’ 100%[==========================================>] 1,073,741,824 7.60MB/s in 1m 49s 2018-05-05 14:31:03 (9.44 MB/s) - ‘1gb-1.test’ saved [1073741824/1073741824]
使用wget从服务器上下载文件基本可以跑满100M,我家里的网络是电信的百兆光纤,从这个速度来看,线路的质量非常好!
0x03.3 路由追踪
看上去一切都那么完美,都是直连至美国,延迟也非常低。
0x03.4 speedtest
#黑龙江移动 [root@lax2-us ~]# speedtest --server 17437 Retrieving speedtest.net configuration... Testing from Zenlayer (lax2-us.t.com)... Retrieving speedtest.net server list... Selecting best server based on ping... Hosted by China Mobile Heilongjiang branch (Harbin) [9013.63 km]: 321.491 ms Testing download speed................................................................................ Download: 27.67 Mbit/s Testing upload speed.................................................................................................... Upload: 1.09 Mbit/s #深圳移动 [root@lax2-us ~]# speedtest --server 4515 Retrieving speedtest.net configuration... Testing from Zenlayer (lax2-us.t.com)... Retrieving speedtest.net server list... Selecting best server based on ping... Hosted by China Mobile,Guangdong (Shenzhen) [11634.23 km]: 163.755 ms Testing download speed................................................................................ Download: 61.11 Mbit/s Testing upload speed.................................................................................................... Upload: 19.50 Mbit/s #江苏联通 [root@lax2-us ~]# speedtest --server 5446 Retrieving speedtest.net configuration... Testing from Zenlayer (lax2-us.t.com)... Retrieving speedtest.net server list... Selecting best server based on ping... Hosted by CHINA UNICOM JIANGSU COMPANY (Nanjing) [10550.97 km]: 206.599 ms Testing download speed................................................................................ Download: 26.53 Mbit/s Testing upload speed.................................................................................................... Upload: 24.92 Mbit/s #福建联通 [root@lax2-us ~]# speedtest --server 4884 Retrieving speedtest.net configuration... Testing from Zenlayer (lax2-us.t.com)... Retrieving speedtest.net server list... Selecting best server based on ping... Hosted by China Unicom FuJian (Fuzhou) [10987.08 km]: 349.161 ms Testing download speed................................................................................ Download: 29.37 Mbit/s Testing upload speed.................................................................................................... Upload: 13.27 Mbit/s #南宁电信 [root@lax2-us ~]# speedtest --server 10305 Retrieving speedtest.net configuration... Testing from Zenlayer (lax2-us.t.com)... Retrieving speedtest.net server list... Selecting best server based on ping... Hosted by GX-Telecom (Nanning) [12001.85 km]: 172.541 ms Testing download speed................................................................................ Download: 55.17 Mbit/s Testing upload speed.................................................................................................... Upload: 33.15 Mbit/s #广州电信 [root@lax2-us ~]# speedtest --server 17251 Retrieving speedtest.net configuration... Testing from Zenlayer (lax2-us.t.com)... Retrieving speedtest.net server list... Selecting best server based on ping... Hosted by ChinaTelecom-GZ (Guangzhou) [11644.86 km]: 322.074 ms Testing download speed................................................................................ Download: 26.18 Mbit/s Testing upload speed.................................................................................................... Upload: 33.37 Mbit/s
我挑选了6个speedtest节点分别测试移动、联通与电信的上下行速度与延迟,结果如上。
总体来看,总体速度是挺好的。
0x04 性能测试
0x04.1 dd磁盘测试
[root@lax2-us ~]# dd bs=1M count=1024 if=/dev/zero of=1gb-1.test conv=fdatasync 1024+0 records in 1024+0 records out 1073741824 bytes (1.1 GB) copied, 3.07765 s, 349 MB/s [root@lax2-us ~]# dd bs=1M count=1024 if=/dev/zero of=1gb-2.test conv=fdatasync 1024+0 records in 1024+0 records out 1073741824 bytes (1.1 GB) copied, 5.02138 s, 214 MB/s [root@lax2-us ~]# dd bs=1M count=1024 if=/dev/zero of=1gb-3.test conv=fdatasync 1024+0 records in 1024+0 records out 1073741824 bytes (1.1 GB) copied, 2.22252 s, 483 MB/s [root@lax2-us ~]# dd bs=1M count=1024 if=/dev/zero of=1gb-4.test conv=fdatasync 1024+0 records in 1024+0 records out 1073741824 bytes (1.1 GB) copied, 3.16927 s, 339 MB/s [root@lax2-us ~]# dd bs=1M count=1024 if=/dev/zero of=1gb-5.test conv=fdatasync 1024+0 records in 1024+0 records out 1073741824 bytes (1.1 GB) copied, 2.35998 s, 455 MB/s
磁盘速度也令人满意。
0x04.2 fio
CRC 加密测试:
[root@lax2-us ~]# fio -crctest md5: 514.99 MiB/sec crc64: 344.84 MiB/sec crc32: 312.39 MiB/sec crc32c: 7473.58 MiB/sec crc16: 346.42 MiB/sec crc7: 348.29 MiB/sec sha1: 427.27 MiB/sec sha256: 181.75 MiB/sec sha512: 298.92 MiB/sec xxhash: 5438.82 MiB/sec murmur3: 2231.40 MiB/sec jhash: 2163.19 MiB/sec fnv: 5601.38 MiB/sec sha3-224: 108.55 MiB/sec sha3-256: 102.26 MiB/sec sha3-384: 77.75 MiB/sec sha3-512: 54.37 MiB/sec
4k随机读写测试:
[root@lax2-us ~]# fio -filename=/root/bench/test.fio -direct=1 -rw=rw -bs=4k -size 1G -numjobs=8 -runtime=30 -group_reporting -name=file file: (g=0): rw=rw, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=psync, iodepth=1 ... fio-3.6-31-g4386 Starting 8 processes file: Laying out IO file (1 file / 1024MiB) Jobs: 8 (f=8): [M(8)][100.0%][r=22.0MiB/s,w=22.4MiB/s][r=5875,w=5742 IOPS][eta 00m:00s] file: (groupid=0, jobs=8): err= 0: pid=17503: Sat May 5 07:19:51 2018 read: IOPS=5818, BW=22.7MiB/s (23.8MB/s)(682MiB/30004msec) clat (usec): min=84, max=234027, avg=772.68, stdev=1238.31 lat (usec): min=85, max=234027, avg=773.43, stdev=1238.30 clat percentiles (usec): | 1.00th=[ 139], 5.00th=[ 302], 10.00th=[ 392], 20.00th=[ 510], | 30.00th=[ 586], 40.00th=[ 660], 50.00th=[ 725], 60.00th=[ 799], | 70.00th=[ 873], 80.00th=[ 979], 90.00th=[ 1156], 95.00th=[ 1336], | 99.00th=[ 1713], 99.50th=[ 1876], 99.90th=[ 2606], 99.95th=[ 4228], | 99.99th=[25297] bw ( KiB/s): min= 1336, max= 3440, per=12.50%, avg=2909.22, stdev=273.79, samples=480 iops : min= 334, max= 860, avg=727.28, stdev=68.46, samples=480 write: IOPS=5816, BW=22.7MiB/s (23.8MB/s)(682MiB/30004msec) clat (usec): min=79, max=233989, avg=594.15, stdev=1424.39 lat (usec): min=80, max=233990, avg=594.95, stdev=1424.40 clat percentiles (usec): | 1.00th=[ 88], 5.00th=[ 93], 10.00th=[ 97], 20.00th=[ 106], | 30.00th=[ 126], 40.00th=[ 449], 50.00th=[ 603], 60.00th=[ 709], | 70.00th=[ 816], 80.00th=[ 938], 90.00th=[ 1139], 95.00th=[ 1319], | 99.00th=[ 1729], 99.50th=[ 1909], 99.90th=[ 2540], 99.95th=[ 3294], | 99.99th=[25297] bw ( KiB/s): min= 1368, max= 3624, per=12.50%, avg=2908.39, stdev=283.14, samples=480 iops : min= 342, max= 906, avg=727.07, stdev=70.79, samples=480 lat (usec) : 100=7.16%, 250=11.57%, 500=12.05%, 750=27.88%, 1000=24.08% lat (msec) : 2=16.94%, 4=0.27%, 10=0.02%, 20=0.01%, 50=0.01% lat (msec) : 100=0.01%, 250=0.01% cpu : usr=0.75%, sys=3.48%, ctx=695077, majf=0, minf=122 IO depths : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued rwts: total=174579,174526,0,0 short=0,0,0,0 dropped=0,0,0,0 latency : target=0, window=0, percentile=100.00%, depth=1 Run status group 0 (all jobs): READ: bw=22.7MiB/s (23.8MB/s), 22.7MiB/s-22.7MiB/s (23.8MB/s-23.8MB/s), io=682MiB (715MB), run=30004-30004msec WRITE: bw=22.7MiB/s (23.8MB/s), 22.7MiB/s-22.7MiB/s (23.8MB/s-23.8MB/s), io=682MiB (715MB), run=30004-30004msec Disk stats (read/write): vda: ios=173791/173727, merge=0/5, ticks=20918/15881, in_queue=36727, util=80.45%
32k随机读写测试:
[root@lax2-us ~]# fio -filename=/root/bench/test.fio -direct=1 -rw=rw -bs=32k -size 1G -numjobs=8 -runtime=30 -group_reporting -name=file file: (g=0): rw=rw, bs=(R) 32.0KiB-32.0KiB, (W) 32.0KiB-32.0KiB, (T) 32.0KiB-32.0KiB, ioengine=psync, iodepth=1 ... fio-3.6-31-g4386 Starting 8 processes Jobs: 8 (f=8): [M(8)][96.3%][r=163MiB/s,w=165MiB/s][r=5230,w=5267 IOPS][eta 00m:01s] file: (groupid=0, jobs=8): err= 0: pid=17513: Sat May 5 07:21:10 2018 read: IOPS=4920, BW=154MiB/s (161MB/s)(4094MiB/26627msec) clat (usec): min=85, max=310649, avg=901.54, stdev=3049.29 lat (usec): min=85, max=310650, avg=902.31, stdev=3049.29 clat percentiles (usec): | 1.00th=[ 133], 5.00th=[ 310], 10.00th=[ 396], 20.00th=[ 545], | 30.00th=[ 644], 40.00th=[ 725], 50.00th=[ 807], 60.00th=[ 889], | 70.00th=[ 988], 80.00th=[ 1106], 90.00th=[ 1319], 95.00th=[ 1532], | 99.00th=[ 2008], 99.50th=[ 2278], 99.90th=[ 5473], 99.95th=[ 20579], | 99.99th=[189793] bw ( KiB/s): min= 8448, max=24448, per=12.48%, avg=19652.84, stdev=2990.65, samples=416 iops : min= 264, max= 764, avg=614.13, stdev=93.46, samples=416 write: IOPS=4924, BW=154MiB/s (161MB/s)(4098MiB/26627msec) clat (usec): min=92, max=310423, avg=695.49, stdev=2883.57 lat (usec): min=93, max=310424, avg=696.78, stdev=2883.57 clat percentiles (usec): | 1.00th=[ 100], 5.00th=[ 104], 10.00th=[ 110], 20.00th=[ 119], | 30.00th=[ 141], 40.00th=[ 445], 50.00th=[ 644], 60.00th=[ 783], | 70.00th=[ 906], 80.00th=[ 1057], 90.00th=[ 1287], 95.00th=[ 1516], | 99.00th=[ 2024], 99.50th=[ 2278], 99.90th=[ 5014], 99.95th=[ 19530], | 99.99th=[175113] bw ( KiB/s): min= 9261, max=25024, per=12.47%, avg=19658.06, stdev=3040.76, samples=416 iops : min= 289, max= 782, avg=614.29, stdev=95.02, samples=416 lat (usec) : 100=0.65%, 250=18.95%, 500=9.43%, 750=21.32%, 1000=23.63% lat (msec) : 2=24.98%, 4=0.91%, 10=0.06%, 20=0.02%, 50=0.03% lat (msec) : 100=0.01%, 250=0.02%, 500=0.01% cpu : usr=0.72%, sys=3.19%, ctx=521724, majf=0, minf=111 IO depths : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued rwts: total=131019,131125,0,0 short=0,0,0,0 dropped=0,0,0,0 latency : target=0, window=0, percentile=100.00%, depth=1 Run status group 0 (all jobs): READ: bw=154MiB/s (161MB/s), 154MiB/s-154MiB/s (161MB/s-161MB/s), io=4094MiB (4293MB), run=26627-26627msec WRITE: bw=154MiB/s (161MB/s), 154MiB/s-154MiB/s (161MB/s-161MB/s), io=4098MiB (4297MB), run=26627-26627msec Disk stats (read/write): vda: ios=129812/129918, merge=0/5, ticks=17456/14623, in_queue=31996, util=82.39%
1m随机读写测试:
[root@lax2-us ~]# fio -filename=/root/bench/test.fio -direct=1 -rw=rw -bs=1m -size 1G -numjobs=8 -runtime=30 -group_reporting -name=file file: (g=0): rw=rw, bs=(R) 1024KiB-1024KiB, (W) 1024KiB-1024KiB, (T) 1024KiB-1024KiB, ioengine=psync, iodepth=1 ... fio-3.6-31-g4386 Starting 8 processes Jobs: 8 (f=8): [M(8)][88.9%][r=659MiB/s,w=700MiB/s][r=659,w=700 IOPS][eta 00m:01s] file: (groupid=0, jobs=8): err= 0: pid=17523: Sat May 5 07:21:54 2018 read: IOPS=465, BW=465MiB/s (488MB/s)(4012MiB/8619msec) clat (usec): min=646, max=525282, avg=9829.74, stdev=36177.20 lat (usec): min=647, max=525283, avg=9830.77, stdev=36177.20 clat percentiles (usec): | 1.00th=[ 1319], 5.00th=[ 2900], 10.00th=[ 3556], 20.00th=[ 4228], | 30.00th=[ 4621], 40.00th=[ 5014], 50.00th=[ 5407], 60.00th=[ 5866], | 70.00th=[ 6390], 80.00th=[ 7177], 90.00th=[ 8586], 95.00th=[ 11076], | 99.00th=[166724], 99.50th=[358613], 99.90th=[522191], 99.95th=[526386], | 99.99th=[526386] bw ( KiB/s): min= 6131, max=116736, per=12.28%, avg=58526.56, stdev=25896.56, samples=134 iops : min= 5, max= 114, avg=57.10, stdev=25.30, samples=134 write: IOPS=484, BW=485MiB/s (509MB/s)(4180MiB/8619msec) clat (usec): min=527, max=523664, avg=6860.95, stdev=26334.77 lat (usec): min=540, max=523711, avg=6894.83, stdev=26336.11 clat percentiles (usec): | 1.00th=[ 553], 5.00th=[ 594], 10.00th=[ 611], 20.00th=[ 668], | 30.00th=[ 922], 40.00th=[ 4359], 50.00th=[ 4817], 60.00th=[ 5342], | 70.00th=[ 5932], 80.00th=[ 6718], 90.00th=[ 8160], 95.00th=[ 10159], | 99.00th=[ 55313], 99.50th=[193987], 99.90th=[400557], 99.95th=[522191], | 99.99th=[522191] bw ( KiB/s): min=12288, max=143360, per=12.29%, avg=61032.24, stdev=27768.42, samples=134 iops : min= 12, max= 140, avg=59.54, stdev=27.12, samples=134 lat (usec) : 750=13.95%, 1000=1.83% lat (msec) : 2=1.03%, 4=9.53%, 10=67.90%, 20=3.27%, 50=1.11% lat (msec) : 100=0.50%, 250=0.29%, 500=0.49%, 750=0.10% cpu : usr=0.29%, sys=0.97%, ctx=16483, majf=0, minf=114 IO depths : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued rwts: total=4012,4180,0,0 short=0,0,0,0 dropped=0,0,0,0 latency : target=0, window=0, percentile=100.00%, depth=1 Run status group 0 (all jobs): READ: bw=465MiB/s (488MB/s), 465MiB/s-465MiB/s (488MB/s-488MB/s), io=4012MiB (4207MB), run=8619-8619msec WRITE: bw=485MiB/s (509MB/s), 485MiB/s-485MiB/s (509MB/s-509MB/s), io=4180MiB (4383MB), run=8619-8619msec Disk stats (read/write): vda: ios=3812/3976, merge=0/1, ticks=7091/3567, in_queue=10651, util=93.20%
磁盘IO性能非常好,没有什么好评价的。
0x04.3 ramsmp
#INTmark [writing] [root@lax2-us ramsmp-3.5.0]# ./ramsmp -b 1 RAMspeed/SMP (Linux) v3.5.0 by Rhett M. Hollander and Paul V. Bolotoff, 2002-09 8Gb per pass mode, 2 processes INTEGER & WRITING 1 Kb block: 40251.37 MB/s INTEGER & WRITING 2 Kb block: 45455.70 MB/s INTEGER & WRITING 4 Kb block: 45727.75 MB/s INTEGER & WRITING 8 Kb block: 45657.08 MB/s INTEGER & WRITING 16 Kb block: 45852.42 MB/s INTEGER & WRITING 32 Kb block: 44548.00 MB/s INTEGER & WRITING 64 Kb block: 40522.10 MB/s INTEGER & WRITING 128 Kb block: 40732.40 MB/s INTEGER & WRITING 256 Kb block: 39805.67 MB/s INTEGER & WRITING 512 Kb block: 36571.74 MB/s INTEGER & WRITING 1024 Kb block: 36639.17 MB/s INTEGER & WRITING 2048 Kb block: 35759.58 MB/s INTEGER & WRITING 4096 Kb block: 32346.43 MB/s INTEGER & WRITING 8192 Kb block: 28308.88 MB/s INTEGER & WRITING 16384 Kb block: 11779.13 MB/s INTEGER & WRITING 32768 Kb block: 8928.69 MB/s #INTmark [reading] [root@lax2-us ramsmp-3.5.0]# ./ramsmp -b 2 RAMspeed/SMP (Linux) v3.5.0 by Rhett M. Hollander and Paul V. Bolotoff, 2002-09 8Gb per pass mode, 2 processes INTEGER & READING 1 Kb block: 92070.12 MB/s INTEGER & READING 2 Kb block: 91579.57 MB/s INTEGER & READING 4 Kb block: 87988.19 MB/s INTEGER & READING 8 Kb block: 90875.94 MB/s INTEGER & READING 16 Kb block: 91391.52 MB/s INTEGER & READING 32 Kb block: 87112.83 MB/s INTEGER & READING 64 Kb block: 60550.81 MB/s INTEGER & READING 128 Kb block: 59898.16 MB/s INTEGER & READING 256 Kb block: 56309.25 MB/s INTEGER & READING 512 Kb block: 47289.55 MB/s INTEGER & READING 1024 Kb block: 46713.12 MB/s INTEGER & READING 2048 Kb block: 46175.74 MB/s INTEGER & READING 4096 Kb block: 39380.11 MB/s INTEGER & READING 8192 Kb block: 29337.61 MB/s INTEGER & READING 16384 Kb block: 18871.44 MB/s INTEGER & READING 32768 Kb block: 14456.53 MB/s #INTmem [root@lax2-us ramsmp-3.5.0]# ./ramsmp -b 3 RAMspeed/SMP (Linux) v3.5.0 by Rhett M. Hollander and Paul V. Bolotoff, 2002-09 8Gb per pass mode, 2 processes INTEGER Copy: 12858.77 MB/s INTEGER Scale: 12817.15 MB/s INTEGER Add: 12947.38 MB/s INTEGER Triad: 12871.68 MB/s --- INTEGER AVERAGE: 12873.75 MB/s #FLOATmark [writing] [root@lax2-us ramsmp-3.5.0]# ./ramsmp -b 4 RAMspeed/SMP (Linux) v3.5.0 by Rhett M. Hollander and Paul V. Bolotoff, 2002-09 8Gb per pass mode, 2 processes FL-POINT & WRITING 1 Kb block: 39777.61 MB/s FL-POINT & WRITING 2 Kb block: 45167.04 MB/s FL-POINT & WRITING 4 Kb block: 44706.64 MB/s FL-POINT & WRITING 8 Kb block: 45181.29 MB/s FL-POINT & WRITING 16 Kb block: 46115.81 MB/s FL-POINT & WRITING 32 Kb block: 43952.39 MB/s FL-POINT & WRITING 64 Kb block: 39352.69 MB/s FL-POINT & WRITING 128 Kb block: 40334.01 MB/s FL-POINT & WRITING 256 Kb block: 38026.56 MB/s FL-POINT & WRITING 512 Kb block: 37205.03 MB/s FL-POINT & WRITING 1024 Kb block: 36709.32 MB/s FL-POINT & WRITING 2048 Kb block: 36115.38 MB/s FL-POINT & WRITING 4096 Kb block: 32070.84 MB/s FL-POINT & WRITING 8192 Kb block: 25951.99 MB/s FL-POINT & WRITING 16384 Kb block: 10926.84 MB/s FL-POINT & WRITING 32768 Kb block: 8982.67 MB/s #FLOATmark [reading] [root@lax2-us ramsmp-3.5.0]# ./ramsmp -b 5 RAMspeed/SMP (Linux) v3.5.0 by Rhett M. Hollander and Paul V. Bolotoff, 2002-09 8Gb per pass mode, 2 processes FL-POINT & READING 1 Kb block: 39374.47 MB/s FL-POINT & READING 2 Kb block: 45290.33 MB/s FL-POINT & READING 4 Kb block: 45231.31 MB/s FL-POINT & READING 8 Kb block: 45684.58 MB/s FL-POINT & READING 16 Kb block: 45540.35 MB/s FL-POINT & READING 32 Kb block: 45216.07 MB/s FL-POINT & READING 64 Kb block: 45423.61 MB/s FL-POINT & READING 128 Kb block: 45592.80 MB/s FL-POINT & READING 256 Kb block: 45046.18 MB/s FL-POINT & READING 512 Kb block: 44752.70 MB/s FL-POINT & READING 1024 Kb block: 44517.76 MB/s FL-POINT & READING 2048 Kb block: 44291.14 MB/s FL-POINT & READING 4096 Kb block: 38886.91 MB/s FL-POINT & READING 8192 Kb block: 26398.71 MB/s FL-POINT & READING 16384 Kb block: 20236.80 MB/s FL-POINT & READING 32768 Kb block: 15482.16 MB/s #FLOATmem [root@lax2-us ramsmp-3.5.0]# ./ramsmp -b 6 RAMspeed/SMP (Linux) v3.5.0 by Rhett M. Hollander and Paul V. Bolotoff, 2002-09 8Gb per pass mode, 2 processes FL-POINT Copy: 11978.44 MB/s FL-POINT Scale: 11886.34 MB/s FL-POINT Add: 14274.42 MB/s FL-POINT Triad: 14575.39 MB/s --- FL-POINT AVERAGE: 13178.65 MB/s
内存性能也非常理想。
0x04.4 Unix Benchmark
# # # # # # # ##### ###### # # #### # # # # ## # # # # # # # ## # # # # # # # # # # # ## ##### ##### # # # # ###### # # # # # # ## # # # # # # # # # # # # ## # # # # # # # ## # # # # #### # # # # # ##### ###### # # #### # # 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 ------------------------------------------------------------------------------ Use directories for: * File I/O tests (named fs***) = /root/byte-unixbench/UnixBench/tmp * Results = /root/byte-unixbench/UnixBench/results ------------------------------------------------------------------------------ 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: lax2-us: GNU/Linux OS: GNU/Linux -- 4.9.76.kvm-xeon.9 -- #1 SMP Thu Jan 11 19:09:17 CST 2018 Machine: x86_64 (x86_64) Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8") CPU 0: Intel Xeon E3-12xx v2 (Ivy Bridge) (5199.9 bogomips) x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization CPU 1: Intel Xeon E3-12xx v2 (Ivy Bridge) (5199.9 bogomips) x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization 07:32:26 up 16:21, 1 user, load average: 0.08, 0.38, 0.41; runlevel 2018-05-04 ------------------------------------------------------------------------ Benchmark Run: Sat May 05 2018 07:32:26 - 08:00:30 2 CPUs in system; running 1 parallel copy of tests Dhrystone 2 using register variables 34279224.7 lps (10.0 s, 7 samples) Double-Precision Whetstone 4242.4 MWIPS (9.8 s, 7 samples) Execl Throughput 3161.1 lps (30.0 s, 2 samples) File Copy 1024 bufsize 2000 maxblocks 514114.2 KBps (30.0 s, 2 samples) File Copy 256 bufsize 500 maxblocks 131560.3 KBps (30.0 s, 2 samples) File Copy 4096 bufsize 8000 maxblocks 1350918.5 KBps (30.0 s, 2 samples) Pipe Throughput 792412.0 lps (10.0 s, 7 samples) Pipe-based Context Switching 63043.4 lps (10.0 s, 7 samples) Process Creation 6673.1 lps (30.0 s, 2 samples) Shell Scripts (1 concurrent) 6306.3 lpm (60.0 s, 2 samples) Shell Scripts (8 concurrent) 1240.7 lpm (60.0 s, 2 samples) System Call Overhead 595226.7 lps (10.0 s, 7 samples) System Benchmarks Index Values BASELINE RESULT INDEX Dhrystone 2 using register variables 116700.0 34279224.7 2937.4 Double-Precision Whetstone 55.0 4242.4 771.3 Execl Throughput 43.0 3161.1 735.1 File Copy 1024 bufsize 2000 maxblocks 3960.0 514114.2 1298.3 File Copy 256 bufsize 500 maxblocks 1655.0 131560.3 794.9 File Copy 4096 bufsize 8000 maxblocks 5800.0 1350918.5 2329.2 Pipe Throughput 12440.0 792412.0 637.0 Pipe-based Context Switching 4000.0 63043.4 157.6 Process Creation 126.0 6673.1 529.6 Shell Scripts (1 concurrent) 42.4 6306.3 1487.3 Shell Scripts (8 concurrent) 6.0 1240.7 2067.8 System Call Overhead 15000.0 595226.7 396.8 ======== System Benchmarks Index Score 893.8 ------------------------------------------------------------------------ Benchmark Run: Sat May 05 2018 08:00:30 - 08:28:36 2 CPUs in system; running 2 parallel copies of tests Dhrystone 2 using register variables 66861303.4 lps (10.0 s, 7 samples) Double-Precision Whetstone 8233.5 MWIPS (9.9 s, 7 samples) Execl Throughput 6619.0 lps (30.0 s, 2 samples) File Copy 1024 bufsize 2000 maxblocks 690454.7 KBps (30.0 s, 2 samples) File Copy 256 bufsize 500 maxblocks 196423.5 KBps (30.0 s, 2 samples) File Copy 4096 bufsize 8000 maxblocks 1881187.9 KBps (30.0 s, 2 samples) Pipe Throughput 1530996.0 lps (10.0 s, 7 samples) Pipe-based Context Switching 203056.1 lps (10.0 s, 7 samples) Process Creation 12818.9 lps (30.0 s, 2 samples) Shell Scripts (1 concurrent) 9247.6 lpm (60.0 s, 2 samples) Shell Scripts (8 concurrent) 1275.1 lpm (60.0 s, 2 samples) System Call Overhead 1033501.7 lps (10.0 s, 7 samples) System Benchmarks Index Values BASELINE RESULT INDEX Dhrystone 2 using register variables 116700.0 66861303.4 5729.3 Double-Precision Whetstone 55.0 8233.5 1497.0 Execl Throughput 43.0 6619.0 1539.3 File Copy 1024 bufsize 2000 maxblocks 3960.0 690454.7 1743.6 File Copy 256 bufsize 500 maxblocks 1655.0 196423.5 1186.8 File Copy 4096 bufsize 8000 maxblocks 5800.0 1881187.9 3243.4 Pipe Throughput 12440.0 1530996.0 1230.7 Pipe-based Context Switching 4000.0 203056.1 507.6 Process Creation 126.0 12818.9 1017.4 Shell Scripts (1 concurrent) 42.4 9247.6 2181.0 Shell Scripts (8 concurrent) 6.0 1275.1 2125.2 System Call Overhead 15000.0 1033501.7 689.0 ======== System Benchmarks Index Score 1541.4
取得了1500多分,可以和众多云服务商媲美。
0x05 结语
无论是硬件还是网络都属于中上水平,如果开卖,我会第一时间发出通知。