Test the Disk I/O on your VPS
There are a few commands that allow you to test the disk I/O speeds on your virtual machine. Please note that scores do vary and are not a completely accurate assessment of disk I/O.
1 | dd if=/dev/zero of=/tmp/test bs=64k count=16k conv=fdatasync |
Example output:
1 2 3 4 5 | [root@server~]# dd if=/dev/zero of=/tmp/test bs=64k count=16k conv=fdatasync 16384+0 records in 16384+0 records out 1073741824 bytes (1.1 GB) copied, 4.89845 seconds, 219 MB/s [root@server~]# |
Or you can try hdparm – if it’s not installed, you will need to install it via yum:
1 | yum install hdparm |
1 | hdparm -t /dev/sda1 |
Example output:
1 2 3 | [root@server~]# hdparm -t /dev/sda1 /dev/sda1: Timing buffered disk reads: 1158 MB in 3.01 seconds = 385.34 MB/sec [root@server~]# |
There is an ongoing thread posted on WebHostingTalk which will allow you to compare your score.