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

本文记录了在阿里云服务器上进行CPU、内存、分区、IO性能和网速的一系列测试过程。通过xshell4(或Putty)登录服务器,获取并分析了服务器的基础资源信息,对Linux系统的各项性能进行了初步评估。
摘要由CSDN通过智能技术生成

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


1.CPU信息

# cat /proc/cpuinfo 
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 44
model name	: Intel(R) Xeon(R) CPU           E5645  @ 2.40GHz
stepping	: 2
cpu MHz		: 2400.395
cache size	: 12288 KB
physical id	: 0
siblings	: 1
core id		: 0
cpu cores	: 1
apicid		: 0
initial apicid	: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: 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_lm
bogomips	: 4800.79
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:


2.内存信息

# free -m

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


3.分区信息

[root@AY121112061521fa89910 ~]# fdisk -l
Disk /dev/xvda: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 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


    Device Boot      Start         End      Blocks   Id  System
/dev/xvda1   *           1        2550    20480000   83  Linux
/dev/xvda2            2550        2611      490496   82  Linux swap / Solaris


Disk /dev/xvdb: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 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/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]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值