Test the Disk I/O of 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.

hdparm -t /dev/sda1

Example output:

    [root@server~]# hdparm -t /dev/sda1
    /dev/sda1: Timing buffered disk reads: 1158 MB in 3.01 seconds = 385.34 MB/sec
    [root@server~]#

dd if=/dev/zero of=/tmp/test bs=64k count=16k conv=fdatasync

Example output:

    [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~]#

There is an ongoing thread posted on WebHostingTalk which will allow you to compare your score.

Leave a Reply

You must be logged in to post a comment.