谷歌云虚拟机试用|Google Cloud Platform VM trial

VPS wdlth 31110℃ 0评论

先前发的博文已经说了谷歌花样炫富的送钱活动,下面我们就建一个虚拟机来试用一下传说中的谷歌云。

谷歌云平台新建虚拟机实例

新建一个虚拟机实例,过了大概半分钟,就出现在面板中了。

在设置中加入SSH密钥,就可以用SSH登录了。(新建的时候点高级设置时候就可以直接加入SSH密钥了)

前方高能,非战斗人员请勿入内。

既然进来了那就看看吧。

首先是CPU信息:

cat /proc/cpuinfo

processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 62
model name	: Intel(R) Xeon(R) CPU @ 2.50GHz
stepping	: 4
cpu MHz		: 2499.998
cache size	: 30720 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 up xtopology unfair_spinlock pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 x2apic popcnt aes xsave avx f16c rdrand hypervisor lahf_lm xsaveopt fsgsbase smep
bogomips	: 4999.99
clflush size	: 64
cache_alignment	: 64
address sizes	: 46 bits physical, 48 bits virtual
power management:

看到那30M缓存直接吓尿了,Model 62也很新,这是什么?这是传说中的E7,一颗要5、6000美元……

然后是内存信息:

free -m

             total       used       free     shared    buffers     cached
Mem:          1700        621       1079          0         37        423
-/+ buffers/cache:        160       1540
Swap:            0          0          0

看来分配的是1.7G内存。

硬盘信息信息:

df -h

Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1       9.9G  1.3G  8.2G  14% /
tmpfs           851M     0  851M   0% /dev/shm

有10G空间,估计是自带的,需要更大的空间要买……

网络测试:
因为连接Google自己的网络不计费,我们就先用Google的东西来测试吧。

wget -O /dev/null http://dl.google.com/android/adt/adt-bundle-linux-x86_64-20140702.zip

--2014-07-28 15:18:54--  http://dl.google.com/android/adt/adt-bundle-linux-x86_64-20140702.zip
Resolving dl.google.com... 74.125.31.91, 74.125.31.190, 74.125.31.136, ...
Connecting to dl.google.com|74.125.31.91|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 372259418 (355M) [application/zip]
Saving to: “/dev/null”

100%[========================================================>] 372,259,418 52.4M/s   in 6.8s

2014-07-28 15:19:01 (52.0 MB/s) - “/dev/null” saved [372259418/372259418]

不知道是不是限制了速度,网内下行大概是410Mbps。

Speedtest.net结果:
Google Cloud Speedtest.net result
Google Cloud Speedtest.net result

几个Looking Glass结果:
ServerCentral:


 1  50.xe-0-0-3.cr1.tko1.jp.scnet.net (50.31.249.185)  0.604 ms  0.698 ms  0.531 ms
 2  15169.tyo.equinix.com (203.190.230.31)  2.730 ms  0.664 ms  0.764 ms
 3  72.14.236.82 (72.14.236.82) [AS  15169]  56.700 ms  8.317 ms  43.403 ms
 4  209.85.255.36 (209.85.255.36) [AS  15169]  7.064 ms 209.85.255.34 (209.85.255.34) [AS  15169]  3.475 ms  4.545 ms
     MPLS Label=420030 CoS=3 TTL=1 S=1
 5  209.85.255.39 (209.85.255.39) [AS  15169]  33.507 ms  46.117 ms  48.514 ms
     MPLS Label=603852 CoS=3 TTL=1 S=1
 6  209.85.243.21 (209.85.243.21) [AS  15169]  38.360 ms 216.239.46.223 (216.239.46.223) [AS  15169]  34.325 ms 209.85.243.23 (209.85.243.23) [AS  15169]  41.419 ms
     MPLS Label=635004 CoS=3 TTL=1 S=1
 7  * * *
 8  254.182.167.107.bc.googleusercontent.com (107.167.182.254) [AS  15169]  61.287 ms  38.940 ms  38.989 ms

樱花Sakura:

traceroute to 107.167.182.254 (107.167.182.254), 25 hops max, 52 byte packets
 1  59.106.1.129 (59.106.1.129)  1.489 ms  0.512 ms
 2  tkdrt5e-drt6e.bb.sakura.ad.jp (157.17.136.57)  0.501 ms  0.480 ms
 3  tkdrt1b-drt5e.bb.sakura.ad.jp (59.106.250.153)  0.846 ms  0.688 ms
 4  tkgrt1s-drt1b.bb.sakura.ad.jp (59.106.247.65)  0.964 ms  0.476 ms
 5  tkort3-grt1s-10g.bb.sakura.ad.jp (59.106.251.33)  0.840 ms  2.381 ms
 6  as15169.ix.jpix.ad.jp (210.171.224.96)  3.205 ms  1.105 ms
 7  209.85.243.56 (209.85.243.56)  1.349 ms  15.128 ms
 8  209.85.255.36 (209.85.255.36)  4.233 ms
    209.85.255.34 (209.85.255.34)  4.128 ms
 9  209.85.255.39 (209.85.255.39)  34.832 ms  34.140 ms
10  209.85.250.103 (209.85.250.103)  35.693 ms
    209.85.243.21 (209.85.243.21)  38.907 ms
11  * *
12  254.182.167.107.bc.googleusercontent.com (107.167.182.254)  39.407 ms  39.771 ms

PCCW东京:

Translating "254.182.167.107.bc.googleusercontent.com"...domain server (63.221.246.95) [OK]
Tracing the route to 254.182.167.107.bc.googleusercontent.com (107.167.182.254)
1 TenGE4-1.br01.tok02.pccwbtn.net (63.218.250.33) 0 msec 0 msec 4 msec
2 72.14.195.91 [AS 15169] 96 msec 96 msec 100 msec
3 209.85.241.90 [AS 15169] 100 msec 96 msec
72.14.236.80 [AS 15169] 96 msec
4 209.85.255.34 [AS 15169] [MPLS: Label 625102 Exp 3] 100 msec
209.85.255.36 [AS 15169] [MPLS: Label 635646 Exp 3] 100 msec 100 msec
5 209.85.255.217 [AS 15169] [MPLS: Label 387778 Exp 3] 124 msec
72.14.232.45 [AS 15169] [MPLS: Label 727644 Exp 3] 128 msec
209.85.255.39 [AS 15169] [MPLS: Label 760956 Exp 3] 240 msec
6 209.85.243.21 [AS 15169] 136 msec
209.85.250.101 [AS 15169] 132 msec
209.85.243.21 [AS 15169] 132 msec
7 * * *
8 254.182.167.107.bc.googleusercontent.com (107.167.182.254) [AS 15169] 132 msec 136 msec 132 msec

NTT东京:

traceroute to 107.167.182.254 (107.167.182.254), 30 hops max, 40 byte packets
 1  ae-2.r01.tokyjp01.jp.bb.gin.ntt.net (129.250.3.243)  1.243 ms  1.623 ms  0.866 ms
 2  xe-0-3-0-6.r01.tokyjp01.jp.ce.gin.ntt.net (61.213.145.130)  2.180 ms  0.854 ms  0.725 ms
 3  72.14.236.82 (72.14.236.82)  0.880 ms  0.808 ms 72.14.239.202 (72.14.239.202)  1.161 ms
 4  209.85.255.36 (209.85.255.36)  3.325 ms 209.85.245.206 (209.85.245.206)  38.407 ms 209.85.255.36 (209.85.255.36)  3.400 ms
     MPLS Label=586046 CoS=3 TTL=1 S=1
 5  72.14.232.45 (72.14.232.45)  53.210 ms 64.233.174.199 (64.233.174.199)  79.523 ms 209.85.255.39 (209.85.255.39)  61.937 ms
     MPLS Label=766012 CoS=3 TTL=1 S=1
 6  209.85.243.23 (209.85.243.23)  82.911 ms 209.85.250.103 (209.85.250.103)  61.613 ms  55.603 ms
 7  * * *
 8  254.182.167.107.bc.googleusercontent.com (107.167.182.254)  59.420 ms  92.368 ms  56.610 ms

UnixBench 5.1.3跑分(系统自带GCC 4.4.7编译):

========================================================================
   BYTE UNIX Benchmarks (Version 5.1.3)

   System: wdlth-1: GNU/Linux
   OS: GNU/Linux -- 2.6.32-431.20.3.el6.x86_64 -- #1 SMP Thu Jun 19 21:14:45 UTC 2014
   Machine: x86_64 (x86_64)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: Intel(R) Xeon(R) CPU @ 2.50GHz (5000.0 bogomips)
          x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   15:36:56 up  6:17,  1 user,  load average: 0.26, 0.29, 0.15; runlevel 3

------------------------------------------------------------------------
Benchmark Run: Mon Jul 28 2014 15:36:56 - 16:04:53
1 CPU in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       15128271.8 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     1613.1 MWIPS (9.7 s, 7 samples)
Execl Throughput                               1667.2 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        320698.2 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           87983.7 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        875653.4 KBps  (30.0 s, 2 samples)
Pipe Throughput                              679329.8 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 122660.5 lps   (10.0 s, 7 samples)
Process Creation                               4403.4 lps   (30.1 s, 2 samples)
Shell Scripts (1 concurrent)                   2215.8 lpm   (60.1 s, 2 samples)
Shell Scripts (8 concurrent)                    297.0 lpm   (60.1 s, 2 samples)
System Call Overhead                        1122057.8 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   15128271.8   1296.3
Double-Precision Whetstone                       55.0       1613.1    293.3
Execl Throughput                                 43.0       1667.2    387.7
File Copy 1024 bufsize 2000 maxblocks          3960.0     320698.2    809.8
File Copy 256 bufsize 500 maxblocks            1655.0      87983.7    531.6
File Copy 4096 bufsize 8000 maxblocks          5800.0     875653.4   1509.7
Pipe Throughput                               12440.0     679329.8    546.1
Pipe-based Context Switching                   4000.0     122660.5    306.7
Process Creation                                126.0       4403.4    349.5
Shell Scripts (1 concurrent)                     42.4       2215.8    522.6
Shell Scripts (8 concurrent)                      6.0        297.0    495.1
System Call Overhead                          15000.0    1122057.8    748.0
                                                                   ========
System Benchmarks Index Score                                         566.2

因为是共享核又是单核,跑分不怎么高,但是负载很低,看来是限制了性能。

转载请注明:WDLTH's 斯巴达 » 谷歌云虚拟机试用|Google Cloud Platform VM trial

喜欢 (1367)
发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(2)个小伙伴在吐槽
  1. GCE太贵了,按照流量收费,玩意被DDoS,我估计第二天一套别墅没了 😮
    小林2014-12-26 21:55 回复
    • 所以有钱任性的才敢用,像我只能看看。
      wdlth2015-01-02 01:25 回复
cnzz1000134333