Benchmarking VPS Disk I/O: fio Numbers Across Five Budget Providers
Bottom line: Two VPS plans at the same price can differ by an order of magnitude in random write IOPS and P99 latency under fio, and the plan with the best sequential throughput is frequently the worst choice for a database.
I provisioned five budget VPS instances in the same price band, ran an identical fio suite against each, and the spread was larger than I expected. Sequential reads clustered within about 2x of each other. Random 4K writes at iodepth 32 did not: the slowest provider delivered roughly a tenth of the IOPS of the fastest, and its P99 write latency was over 20x higher. The provider that won the sequential write test finished fourth on random writes. If you pick a VPS by running dd once and looking at the MB/s figure, you will pick the wrong box for anything transactional.
The test setup
Five providers, all in the €5–7/month bracket, all KVM, all with local SSD-backed storage advertised. I used the smallest plan from each to keep the comparison honest: 1–2 vCPU, 1–2 GB RAM, 20–40 GB disk. Each instance ran Debian 12 with the stock kernel, and I installed fio from the distribution repository (3.36 on Debian 12; the upstream documentation I worked from is for 3.43, and none of the flags below changed between them).
Before benchmarking I did three things that matter more than the fio invocation itself:
- Wrote the full disk once with
ddso the thin-provisioned volume was actually allocated. Benchmarking a freshly provisioned sparse volume measures the host’s page cache and nothing else. - Dropped caches before every read test.
- Ran each job three times and kept the median. The first run on a noisy neighbour host is often an outlier in both directions.
The test file was 4 GB, twice the RAM of the smallest instance, so the page cache could not absorb the working set. All I/O used --direct=1 to bypass the page cache entirely.
The fio jobs that actually tell you something
A single fio run tells you almost nothing. I used four jobs: sequential read, sequential write, random 4K read, and random 4K write, plus a mixed 70/30 read/write job to approximate an OLTP pattern. The Arch Wiki example is a reasonable starting point for the mixed case:
1 | fio --filename=/mnt/test.fio --size=8GB --direct=1 --rw=randrw \ |
For a VPS with 1–2 GB RAM I scaled that down: 4 GB file, --iodepth=32, --numjobs=1, 60-second runtime. Queue depth 256 on a single-vCPU instance just measures how long the kernel spends queueing. Here is the job file I settled on for the random write case, which is the one that separates providers:
1 | [global] |
Run it with fio randwrite.job and read the iops, clat (completion latency) percentiles, and bw lines from the output. The clat percentiles (usec) block gives you P50, P90, P95, P99, and P99.9 directly. That P99 number is the one your database feels; average latency hides everything that matters.
The numbers
Median of three runs, 60 seconds each, 4 GB file, --direct=1. IOPS rounded to the nearest ten, latency in microseconds.
| Provider | Seq read (MB/s) | Seq write (MB/s) | Rand 4K read IOPS | Rand 4K write IOPS | Write P50 (µs) | Write P99 (µs) |
|---|---|---|---|---|---|---|
| A | 480 | 310 | 41,200 | 9,800 | 210 | 1,900 |
| B | 510 | 290 | 38,700 | 8,400 | 240 | 2,600 |
| C | 220 | 180 | 12,300 | 1,100 | 1,450 | 41,000 |
| D | 460 | 340 | 29,500 | 6,200 | 380 | 4,800 |
| E | 390 | 260 | 33,100 | 7,900 | 290 | 3,100 |
Provider D had the best sequential write throughput of the five and the second-best sequential read, but it placed fourth on random write IOPS and third on P99. Provider A had the best random write numbers and only middling sequential throughput. Provider C is the cautionary tale: its sequential figures look survivable at 220/180 MB/s, but 1,100 random write IOPS and a 41 ms P99 mean any workload with a write-ahead log will stall badly under concurrency.
The 10x claim holds between A and C on random writes (9,800 vs 1,100 IOPS) and the P99 gap is over 20x. Sequential throughput between the same two providers differs by only about 2x. That asymmetry is the whole point: the cheap benchmark everyone runs is the one that discriminates least.
Reading the block layer directly
fio gives you the application-visible view. When a number looks wrong, drop to /sys/block/<dev>/stat, which the kernel documents as a consistent snapshot of device state. The fields are positional and undocumented in the file itself, but the first four are reads completed, reads merged, sectors read, and milliseconds spent reading; writes follow in the next four. Sectors are always 512 bytes regardless of the device’s logical block size.
1 | # watch queue behaviour during a fio run in another terminal |
If nr_requests is tiny or the scheduler is none on a device that clearly benefits from mq-deadline, you have found a host configuration choice that will show up in your P99. On a virtualised guest you cannot always change these, but knowing why the latency is bad stops you from blaming your application.
What the numbers mean per workload
Sequential throughput predicts almost nothing about database behaviour. A PostgreSQL instance doing 2,000 small transactions per second generates a stream of 8K page writes and WAL appends; what it needs is low-latency random writes with a deep enough queue, not a 500 MB/s stream. Provider D, the sequential winner, would be my last choice for that workload among A, B, D, and E.
The mixed 70/30 job is the closest cheap proxy for OLTP. On provider C it produced a write P99 above 30 ms at iodepth 32, which translates to visible query latency spikes the moment you have more than a handful of concurrent writers. On provider A the same job stayed under 3 ms at P99.
For a build server or a static file host, sequential throughput is the right metric and provider D is fine. For anything with a write-ahead log, pick on random write IOPS and P99, and treat the sequential number as a tiebreaker at best.
Pitfalls and how to diagnose them
Benchmarking an unallocated volume. A freshly provisioned thin volume returns page-cache-speed numbers because nothing has hit the backing store. Diagnose by checking du against the provisioned size, or just write the disk full once before testing. If your first fio run is 5x faster than your second, this is why.
Forgetting --direct=1. Without it you are benchmarking RAM. The tell is a sequential read figure above the provider’s stated network or disk limit, or a random read IOPS number in the hundreds of thousands on a €5 plan.
Noisy neighbours. Budget VPS hosts oversubscribe. A single run can be 3x off the median. Run three times, keep the median, and if the spread between runs exceeds 50 percent, note it — that variance is itself a finding about the host.
Testing at the wrong queue depth. iodepth 1 measures latency, iodepth 32 measures throughput under concurrency, and a database does both. Test at the depth your workload actually uses. If you do not know, 32 is a reasonable default for a single-socket guest.
Ignoring P99 in favour of averages. fio prints both. The average on provider C looked acceptable; the P99 did not. Always read the percentile block.
Benchmarking over the network filesystem. If /mnt is an NFS or FUSE mount rather than the local block device, you are measuring the network. Confirm with df -T /mnt and findmnt /mnt before you trust anything.
Small test file. A file smaller than RAM gets cached despite --direct interactions with some filesystems. Keep the file at least 2x RAM.
FAQ
How long should each fio run be?
Sixty seconds is enough to expose steady-state behaviour on a budget VPS and short enough to run the full suite in under ten minutes. Runs under 15 seconds mostly measure ramp-up. If your numbers are still climbing at 60 seconds, extend to 120 and check whether the host is throttling.
Why does my sequential number look great but my database is slow?
Because sequential throughput and random write latency are largely independent on shared storage. Check random 4K write IOPS and P99 write latency at your real queue depth. A plan can stream 500 MB/s and still deliver 40 ms P99 on 4K writes.
Is iodepth 32 realistic for a small VPS?
It is a reasonable upper bound for a single-vCPU guest running a database with a small connection pool. Test at both 1 and 32: the ratio between them tells you how much the host’s queueing helps or hurts, and the depth-1 P99 is what a lightly loaded service actually experiences.
Do these results hold for NVMe-backed plans?
The absolute numbers will be higher across the board, but the ranking pattern — sequential winners not being random-write winners — tends to persist because it reflects host oversubscription and storage topology, not the drive technology alone. Re-run the suite on the plan you are considering; it takes ten minutes.
Can I trust a single fio run?
No. Budget hosts have noisy neighbours and the variance between runs on the same instance can exceed the gap between providers. Three runs, median, and record the spread. If the spread is large, that instability is a reason to avoid the provider for latency-sensitive work.
What should I run first when a new VPS arrives?
Write the disk full once with dd, then run the four-job fio suite at iodepth 1 and 32, then check /sys/block/<dev>/queue/scheduler and nr_requests. That sequence takes about fifteen minutes and tells you more than any provider’s spec sheet.











