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.
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.
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.
2.Check CPU, Hard Disk and RAM parameters
Hard DiskHDD parameters
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.
4.HDD I/O test
dd if=/dev/zero of=test bs=64k count=16k oflag=dsync
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.
5.UBI perfomance test
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.
6.Other test commands
Usage of disk and RAM:
Process, memory, I/O and CPU status:
Integrated VPS parameters:
wget -qO- bench.sh | bash