Linux VPS 服务器常用测试

服务器相关 · 2014-02-16

ethtool
查看网卡速率

apt-get install  ethtool

使用方法 ethtool 网卡名称

ethtool eth0

—————
smartmontools
查看硬盘信息

apt-get install smartmontools

使用方法

smartctl -A /dev/sda

上面这条命令是用来查看硬盘的SMART信息,如果硬盘本身禁用了SMART,可能会看不到,可以通过下面这条命令启用SMART。

smartctl -s on /dev/sda

查看硬盘通电时间

smartctl -A /dev/sda | grep Power_On_Hours

会得到类似下面的信息:

9 Power_On_Hours 0x0032 067 067 000 Old_age Always - 24272

也就是说这个硬盘已经运行了24272小时。
—————
测试硬盘写入速度:

dd bs=64k count=4k if=/dev/zero of=test conv=fdatasync;rm -f test

—————
测试服务器下载速度:

wget http://cachefly.cachefly.net/100mb.test;rm -f 100mb.test
服务器 vps 性能

 2011 - 2023  笔记杂谈. All Rights Reserved.

Theme Jasmine by Kent Liao

Powered by Typecho

加密硬件钱包