Categories
學習筆記

VPS测试时常用的SSH指令

1)查看进程内存占用

top

2)查看CPU信息

cat /proc/cpuinfo

3)磁盘IO测试命令

dd if=/dev/zero of=test bs=64k count=4k oflag=dsync
dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync

4)端口速度测试

wget http://cachefly.cachefly.net/100mb.test

5)查看Inode

df -i

6)内存超售检查
进入linux的共享内存目录:

cd /dev/shm

创建100MB的文件:

dd if=/dev/zero of=./memtest bs=1M count=100

查看内存:

free -m

结束的时候输入:

rm ./memtest

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.