Disk speed benchmark

Benchmarking Block Storage

These commands will test for write speeds under multiple conditions:

dd if=/dev/zero of=test_file bs=4M count=4000
dd if=/dev/zero of=test_file bs=4k count=4000000
dd if=/dev/zero of=test_file bs=4M count=1000 oflag=direct

This will test for read speeds:

dd if=test_file of=/dev/null bs=4M

If you'd like to go a step further, you can install the FIO utility on your Linode. FIO is a popular tool for measuring IOPS on a Linux server. It can help us determine if you're seeing a bottleneck due to rate limits.

Once installed, you can run a command which will simulate a random mixed workload of 75% read/25% write:

fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=random_read_write.fio --bs=4k --iodepth=64 --size=4G --readwrite=randrw --rwmixread=75