标签 vps 下的文章

vps简单的综合测试

wget freevps.us/downloads/bench.sh -O - -o /dev/null|bash

就可以看到下面这些信息 CPU 内存 带宽等
CPU model : Intel(R) Xeon(R) CPU E5-2630L v2 @ 2.40GHz
Number of cores : 1
CPU frequency : 2399.998 MHz
Total amount of ram : 490 MB
Total amount of swap : 0 MB
System uptime : 2 days, 12:41,
Download speed from CacheFly: 102MB/s
Download speed from Coloat, Atlanta GA: 18.0MB/s
Download speed from Softlayer, Dallas, TX: 35.1MB/s
Download speed from Linode, Tokyo, JP: 11.4MB/s
Download speed from i3d.net, Rotterdam, NL: 5.45MB/s
Download speed from Leaseweb, Haarlem, NL: 18.3MB/s
Download speed from Softlayer, Singapore: 10.9MB/s
Download speed from Softlayer, Seattle, WA: 58.5MB/s
Download speed from Softlayer, San Jose, CA: 102MB/s
Download speed from Softlayer, Washington, DC: 31.1MB/s
I/O speed : 422 MB/s

VPS 磁盘连续读写性能测试

我们购买VPS后都会执行“dd”命令,尝试对磁盘进行一次连续写操作,大概判断下磁盘性能。这里总结两条指令,分别是磁盘写和磁盘读,加上读取命令同样也能起到参考作用。
一、磁盘连续写入测试(268MB)

dd if=/dev/zero of=517AT bs=64k count=4k oflag=dsync

二、磁盘连续读取测试(268MB)

dd if=517AT of=/dev/zero bs=64k count=4k iflag=direct

以上测试为通过DD命令先写入一个268MB的文件,再通过DD命令读取。分配单元大小(簇):4K。

测试SSd vps硬盘性能

安装hdparm
yum install hdparm -y

fdisk -l   #看vps上磁盘驱动号

hdparm -t /dev/xvda  #测试性能

hdd硬盘请用DD命令测试

 

在服务器或vps上安装DirectAdmin

安装在centos 6.* 64bit vps上

yum -y update  #升级

yum install wget gcc gcc-c++ flex bison make bind bind-libs bind-utils openssl openssl-devel perl patch quota libaio libcom_err-devel libcurl-devel gd zlib-devel zip unzip libcap-devel cronie bzip2 db4-devel cyrus-sasl-devel perl-ExtUtils-Embed   #安装必要的组件

wget http://www.directadmin.com/setup.sh       #下载脚本

chmod 755 setup.sh                  #设定权限

./setup.sh                              #运行安装脚本