VPS常用测评脚本 VPS测评命令

整理了一些我VPS测评时用到(常用的)脚本

VPS回程路由一键测试脚本

wget -qO- git.io/besttrace | bash

LemonBench 综合性能测试工具脚本

快速测试

yum -y install wget

wget -O- https://ilemonra.in/LemonBenchIntl | bash -s fast

#或

apt-get install curl

curl -fsL https://ilemonra.in/LemonBenchIntl | bash -s fast

完整测试

yum -y install wget

wget -O- https://ilemonra.in/LemonBenchIntl | bash -s full

#或

apt-get install curl

curl -fsL https://ilemonra.in/LemonBenchIntl | bash -s full

SuperBench

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=dsync

dd if=/dev/zero of=test bs=8k count=256k conv=fdatasync

生成1TB的超大文件

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

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

SSD硬盘速度测试

yum install hdparm -y

fdisk -l

hdparm -t /dev/hda

UnixBench跑分工具

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

chmod +x unixbench.sh

./unixbench.sh

Superspeed 一键测速脚本

用于测速服务器上传/下载速度

bash <(curl -Lso- https://git.io/superspeed)

© 版权声明
THE END
喜欢就支持以下吧
点赞0赞赏
分享
相关推荐
  • 暂无相关文章
评论 抢沙发