Linux下的主机参数自测
发布日期:2021-08-28 19:37:37 浏览次数:3 分类:技术文章

本文共 2795 字,大约阅读时间需要 9 分钟。

hot3.png

最近考虑上公司站,想找个国内VPS,备案下,正规运营,找到了阿里云,今天买了一款55元/月的,先体验下。

1、选择centos 6 64bit.    测试操作系统
[root@AY140104224338074364Z ~]# cat /etc/issue
CentOS release 6.3 (Final)
Kernel \r on an \m
[root@AY140104224338074364Z ~]# uname -a
Linux AY140104224338074364Z 2.6.32-358.6.2.el6.x86_64 #1 SMP Thu May 16 20:59:36 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
2、cpu型号,E5-2430    测试cpu
[root@AY140104224338074364Z ~]# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 45
model name : Intel(R) Xeon(R) CPU E5-2430 0 @ 2.20GHz
stepping : 7
cpu MHz : 2200.049
cache size : 15360 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 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 : 4400.09
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
3、内存512M  测试内存
[root@AY140104224338074364Z ~]# free -m
total used free shared buffers cached
Mem: 488 73 414 0 5 28
-/+ buffers/cache: 40 448
Swap: 0 0 0
4、磁盘默认20G。
[root@AY140104224338074364Z ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 20G 1.1G 18G 6% /
tmpfs 245M 0 245M 0% /dev/shm
5、DD测试下磁盘IO。看来阿里云的瓶颈在于磁盘IO,我测了这么多VPS,很少有低于10MB/s的。
[root@AY140104224338074364Z ~]# dd if=/dev/zero of=test bs=64k count=4k oflag=dsync
4096+0 records in
4096+0 records out
268435456 bytes (268 MB) copied, 45.6568 s, 5.9 MB/s
[root@AY140104224338074364Z ~]# dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync
16384+0 records in
16384+0 records out
1073741824 bytes (1.1 GB) copied, 38.5115 s, 27.9 MB/s
6、测试下入口带宽。
下载我美国KT机器上的iso,测下国际带宽,入口最大是1Mbps。
Resolving www.v2kt.com… 98.126.33.178
Connecting to www.v2kt.com|98.126.33.178|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 687075328 (655M) [application/octet-stream]
Saving to: “win2003.32.virtio.isoâ€
0% [ ] 5,560,090 67.3K/s eta 2h 44m ^C
下载下国内的QQ,测试下入口带宽有40Mbps.
[root@AY140104224338074364Z ~]# wget -c http://dldir1.qq.com/qqfile/qq/QQ2013/QQ2013SP6/9305/QQ2013SP6.exe
–2014-01-04 23:20:08– http://dldir1.qq.com/qqfile/qq/QQ2013/QQ2013SP6/9305/QQ2013SP6.exe
Resolving dldir1.qq.com… 116.114.23.29, 119.147.87.26, 120.33.50.170, …
Connecting to dldir1.qq.com|116.114.23.29|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 59399864 (57M) [application/octet-stream]
Saving to: “QQ2013SP6.exeâ€
100%[======================================>] 59,399,864 5.36M/s in 12s
2014-01-04 23:20:24 (4.89 MB/s) – “QQ2013SP6.exeâ€
7、出口带宽测试。
8、UnixBench跑分测试,比较耗费时间,暂不测试。
9、国内的机器,ping是好看多了。
aliyun-ping

转载于:https://my.oschina.net/ajian2014/blog/304162

转载地址:https://blog.csdn.net/weixin_33969116/article/details/92041556 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:Android Framework中的PolicyManager简介
下一篇:自表查询

发表评论

最新留言

能坚持,总会有不一样的收获!
[***.219.124.196]2024年05月03日 00时02分36秒