我在阿里云的日子里,初测登陆和性能测试

来源:互联网 发布:macbook必备软件 2016 编辑:程序博客网 时间:2024/05/02 06:11

阿里云给了一个IP和root的密码,非常简单,跟局域网上登陆一个服务器的感觉差不多,我用的xshell4来登陆,官方推荐Putty,看个人习惯。


1.CPU信息

# cat /proc/cpuinfo processor: 0vendor_id: GenuineIntelcpu family: 6model: 44model name: Intel(R) Xeon(R) CPU           E5645  @ 2.40GHzstepping: 2cpu MHz: 2400.395cache size: 12288 KBphysical id: 0siblings: 1core id: 0cpu cores: 1apicid: 0initial apicid: 0fpu: yesfpu_exception: yescpuid level: 11wp: yesflags: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat clflush mmx fxsr sse sse2 ht syscall nx lm up rep_good unfair_spinlock pni ssse3 cx16 sse4_1 sse4_2 popcnt aes hypervisor lahf_lmbogomips: 4800.79clflush size: 64cache_alignment: 64address sizes: 40 bits physical, 48 bits virtualpower management:


2.内存信息

# free -m

             total       used       free     shared    buffers     cachedMem:           489        398         90          0          0        325-/+ buffers/cache:         72        416Swap:          478          1        477


3.分区信息

[root@AY121112061521fa89910 ~]# fdisk -l
Disk /dev/xvda: 21.5 GB, 21474836480 bytes255 heads, 63 sectors/track, 2610 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x00000000    Device Boot      Start         End      Blocks   Id  System/dev/xvda1   *           1        2550    20480000   83  Linux/dev/xvda2            2550        2611      490496   82  Linux swap / SolarisDisk /dev/xvdb: 21.5 GB, 21474836480 bytes255 heads, 63 sectors/track, 2610 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x00000000Disk /dev/xvdb doesn't contain a valid partition table

# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/xvda1             20G  775M   19G   4% /
tmpfs                 245M     0  245M   0% /dev/shm


系统才20G,明明买了40G,那20G去了哪里,其实仔细看一下就明白了,原来另外20G作为数据盘,并没有挂着到云系统里面,需要自己对数据盘进行格式化后,挂着到自己的云系统上


分区方法可参考 http://www.xumingxun.com/post/2012-10-27/40041512802


4.IO性能测试

# dd if=/dev/zero of=bigfile bs=1M count=500
500+0 records in
500+0 records out
524288000 bytes (524 MB) copied, 19.8486 s, 26.4 MB/s


# dd if=/dev/zero of=bigfile bs=1M count=500

500+0 records in
500+0 records out
524288000 bytes (524 MB) copied, 3.01808 s, 174 MB/s


下面那个数值是我的本本虚拟机跑的数值,阿里云果然IO存在问题,不过可以通过ramdisk技术来缓解 这一个状况
#cd /dev/shm
# dd if=/dev/zero of=bigfile bs=1M count=500
245+0 records in
244+0 records out
256016384 bytes (256 MB) copied, 0.141606 s, 1.8 GB/s
这是阿里云的ram下创建文件,1.8 GB/s 看来还是有点潜力

5.网速测试


[root@AY121112061521fa89910 data0]# wget http://nchc.dl.sourceforge.net/project/rigsofrods/rigsofrods/0.38/RoR-Setup-0.38.67.exe
--2012-11-14 13:37:40--  http://nchc.dl.sourceforge.net/project/rigsofrods/rigsofrods/0.38/RoR-Setup-0.38.67.exe
Resolving nchc.dl.sourceforge.net... 211.79.60.17, 2001:e10:ffff:1f02::17
Connecting to nchc.dl.sourceforge.net|211.79.60.17|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 139017086 (133M) [application/x-msdownload]
Saving to: “RoR-Setup-0.38.67.exe”


100%[=====================================================================>] 139,017,086 10.4M/s   in 15s     


2012-11-14 13:37:55 (8.73 MB/s) - “RoR-Setup-0.38.67.exe” saved [139017086/139017086]


高峰的时候,显示一度达到14M


同样的资源第二次测试,网速效果却不一样,看来是动态分配
wget http://nchc.dl.sourceforge.net/project/rigsofrods/rigsofrods/0.38/RoR-Setup-0.38.67.exe
--2012-11-14 13:42:22--  http://nchc.dl.sourceforge.net/project/rigsofrods/rigsofrods/0.38/RoR-Setup-0.38.67.exe
Resolving nchc.dl.sourceforge.net... 211.79.60.17, 2001:e10:ffff:1f02::17
Connecting to nchc.dl.sourceforge.net|211.79.60.17|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 139017086 (133M) [application/x-msdownload]
Saving to: “RoR-Setup-0.38.67.exe”


100%[=====================================================================>] 139,017,086 7.79M/s   in 26s     


2012-11-14 13:42:50 (5.01 MB/s) - “RoR-Setup-0.38.67.exe” saved [139017086/139017086]
原创粉丝点击