VPS测评常用的脚本 命令 …

VPS测评常用的脚本 命令 …

整理一些vps测试时候常用的命令

VPS回程路由一键测试脚本

wget -qO- git.io/besttrace | bashLemonBench

综合性能测试工具脚本

快速测试

yum -y install wgetwget -O- https://ilemonra.in/LemonBenchIntl | bash -s fast

apt-get install curlcurl -fsL https://ilemonra.in/LemonBenchIntl | bash -s fas


完整测试

yum -y install wgetwget -O- https://ilemonra.in/LemonBenchIntl | bash -s full

apt-get install curlcurl -fsL https://ilemonra.in/LemonBenchIntl | bash -s fullSuperBench
wget -qO- git.io/superbench.sh | bash


使用参数的方法:

wget -qO- git.io/superbench.sh | bash -s info
wget -qO- git.io/superbench.sh | bash -s io
wget -qO- git.io/superbench.sh | bash -s speed
wget -qO- git.io/superbench.sh | bash -s fast
wget -qO- git.io/superbench.sh | bash -s share


VPS性能测试:CPU物理个数、内核、超线程、多核心 登录VPS界面,执行:

cat /proc/cpuinfo


直接查看逻辑CPU的个数

cat /proc/cpuinfo |grep ‘physical id’ |sort |uniq


直接查看CPU的型号

cat /proc/cpuinfo |grep ‘model name’ |sort |uniq


单个CPU的内核数

cat /proc/cpuinfo |grep ‘cpu cores’ |sort |uniq


总的CPU线程数

cat /proc/cpuinfo |grep ‘processor’


查看购买的VPS主机的内存信息

cat /proc/meminfo


Linux真正占用的内存

free –m


测试VPS主机磁盘IO的性能可以执行以下两个命令

dd if=/dev/zero of=test bs=64k count=4k oflag=dsyncdd if=/dev/zero of=test bs=8kcount=256kconv=fdatasync


生成1TB的超大文件

dd if=/dev/zero of=1T.img bs=1G seek=1024 count=0bs=1G

表示每一次读写1G数据,count=0表示读写0次,seek=1024表示略过1024个Block不写,前面block size是1G,所以共略过1T! 这是创建大型sparse文件最简单的方法。 SSD硬盘速度测试

yum install hdparm -yfdisk -lhdparm -t /dev/hdaUnixBench

跑分工具

wget https://teddysun.com/wp-content/uploads/unixbench.shchmod +x unixbench.sh./unixbench.sh

------本页内容已结束,喜欢请分享------

感谢您的来访,获取更多精彩文章请收藏本站。

© 版权声明
THE END
喜欢就支持一下吧
点赞15 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容