The web hosting performance is always an important factor to build a great website. It helps website generates trust between users or serch engines. No one wants to use a service frequently shut down. Thus, check the performance before purchasing a web hosting should be always keep in mind. Especially for unmanaged VPS, make sure the performance is great then you can use is safely even you are not expert on optimizing VPS. Below listed is some basic commands help you check the VPS performance.

top

The ‘TOP’ command is used to show the real time CPU usage. It list all tasks which uses CPU. Also, in default, it refresh automatically every 5 seconds. The ‘TOP’ command allows user sort the tasks by PID, TIME, CPU usage, etc.

top command

The ‘load average’ shows the total resources used. It should be generally below 5 for most personal wordpress website.

The third line shows CPU usage percent. The ‘wa’ shows the hard disk status. Generally, CPU should not exceed 30%.  The ‘wa’ percentage over 30% is also a dangerous signal.

The fourth line shows RAM used, total RAM and free RAM storage.

Type Ctrl+C or q to exit ‘top’ command.

Check CPU, Hard Disk and RAM parameters

Three commands:

CPU parameters

cat /proc/cpuinfo

RAM parameters

cat /proc/meminfo

Hard DiskHDD parameters

df –lh

Dowload Test

Commands:

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

download speed test

This test the download speed. Example is a Linode VPS example. The download speed is great. Generally, download speed is about 7~10MB/s for bandwidth 100MB.

HDD I/O test

Commands:

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

IO test

This will test HDD I/O performance.

Or use the below command line as the same.

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

For SDD, use the below command instead.

hdparm -t /dev/xvda

The DD number is not bottleneck to most VPS hosting. Especially for a personal wordpress blog. Just take this test for a reference.

UBI perfomance test

Commands:

wget --no-check-certificate https://github.com/teddysun/across/raw/master/unixbench.sh
chmod +x unixbench.sh
./unixbench.sh

This test will give an overall score to show the VPS perfomance. It takes a little long time to finish. If your VPS score is higher than 1000, you can use is safely to build a small website. 400 counts is enough for a personal blog.

Other test commands

Usage of disk and RAM:

iostat

Process, memory, I/O and CPU status:

vmstat

Integrated VPS parameters:

wget -qO- bench.sh | bash

Leave a Reply

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

/