How to Test VPS Disk Speed and Network Performance

Run these tests in the first hour of provisioning a new VPS. Disk and network are the two
resources providers oversell most aggressively, and most refund windows last 7 to 30 days. A
five-minute benchmark now gives you a baseline for troubleshooting later and proof if you ever
need to open a support ticket. Everything below runs on any Ubuntu or Debian VPS over SSH.

Why Benchmark Your VPS in the First Hour

Three things go wrong often enough to make this worth your time. First, the disk might be
slower than advertised: a “NVMe SSD” plan that benchmarks like an old spinning drive is a
lemon, and you want to find out before the refund window closes. Second, the node might be
oversold: if your neighbors are hammering the same physical disk, your numbers will swing
wildly from run to run. Third, without a baseline you cannot tell whether a slow WordPress
install six months from now is a code problem or a hardware problem. Write the numbers down
now. Future you will thank present you.

Test Your VPS Disk Speed

Disk speed comes in two flavors that matter: sequential throughput (how fast large files
copy) and random I/O (how fast small reads and writes happen). WordPress, databases, and
most server workloads care about random I/O far more than sequential throughput. The quick
test below measures sequential; the serious test measures both.

The Quick Check: dd

dd is already installed on every Linux system, which makes it the fastest
smoke test available. This command writes a 1 GB file of zeroes and reports the speed:

dd if=/dev/zero of=/tmp/dd-test bs=1M count=1024 conv=fdatasync
rm -f /tmp/dd-test

Look for the last line of the output:

1073741824 bytes (1.1 GB, 1.0 GiB) copied, 2.14 s, 501 MB/s

The conv=fdatasync flag forces dd to wait until data actually
lands on disk before it exits. Without it, Linux reports how fast it can fill its write
cache, not how fast your disk is, and the number looks great while meaning nothing. Now the
caveats, because dd has several:

  • It only measures sequential writes. A disk can copy large files quickly and still
    crawl on random database reads. Do not grade your VPS on this number alone.
  • Writing zeroes is the easiest workload storage can fake. Some thin-provisioned or
    deduplicated storage detects zeroes and skips the write entirely, reporting absurd
    speeds. If your result looks impossibly fast, distrust it.
  • Run it twice and compare. One run is anecdote; two similar runs are evidence.

Treat dd as a smoke test: it catches dead or catastrophically slow disks,
and that is all it is good for.

The Serious Test: fio

When you want numbers that predict real workloads, use fio (flexible I/O
tester). It is the standard benchmarking tool and it tests random I/O, which is what
databases and WordPress actually do:

sudo apt update && sudo apt install -y fio

Random read test with 4K blocks, the pattern that matters most for applications:

fio --name=randread --ioengine=libaio --direct=1 --bs=4k --iodepth=32 
  --size=1G --numjobs=1 --runtime=60 --time_based --rw=randread 
  --filename=/tmp/fio-test --group_reporting

Random write test:

fio --name=randwrite --ioengine=libaio --direct=1 --bs=4k --iodepth=32 
  --size=1G --numjobs=1 --runtime=60 --time_based --rw=randwrite 
  --filename=/tmp/fio-test --group_reporting
rm -f /tmp/fio-test

What the flags mean: --direct=1 bypasses the page cache so you measure
the disk, not RAM. --bs=4k uses 4 KB blocks, the size of typical database
and filesystem operations. --size=1G keeps the test file small enough for
a cramped VPS disk while large enough to be meaningful. --runtime=60 runs
for a minute so one lucky second cannot skew the result.

In the output, find the read: or write: summary line and
look at the IOPS figure:

read: IOPS=12.4k, BW=48.4MiB/s (50.8MB/s)(2906MiB/60001msec)

Two warnings before you run this. Never point fio at a raw block device
like /dev/vda on a VPS that holds data; that destroys filesystems. Always
use a file, as in the commands above. And delete the test file when you finish, because
fio leaves it behind and 1 GB matters on a 25 GB disk.

Test Your VPS Network Speed

Network testing answers a different question than disk testing: how fast can this
server move data to and from the internet? Two tools cover it. One needs a second
server; the other works alone.

iperf3 Between Two Servers

iperf3 measures throughput between two machines you control, which makes
it the honest choice for testing the provider’s network without depending on a
third-party speed test server. Install it on both ends:

sudo apt update && sudo apt install -y iperf3

On one server, start the server side (leave it running):

iperf3 -s

On your new VPS, run the client for 30 seconds:

iperf3 -c OTHER_SERVER_IP -t 30

To test the reverse direction, which often differs, add -R:

iperf3 -c OTHER_SERVER_IP -t 30 -R

The last lines of the output show sender and receiver throughput in Mbits/sec. If you
do not have a second server, check whether your provider runs a looking-glass or public
iperf3 endpoint; many do and publish the address in their docs. Some providers
block inbound connections to random ports by default, so open TCP port 5201 in the
firewall
or the provider’s panel before you start.

Quick Public Check: speedtest-cli

For a single command with no second server, speedtest-cli runs a
speed test against a public server:

sudo apt update && sudo apt install -y speedtest-cli
speedtest-cli --simple

Sample output:

Ping: 24.317 ms
Download: 412.55 Mbit/s
Upload: 387.21 Mbit/s

Understand what this measures: your path to one arbitrary public server, which may
be congested, far away, or rate-limited. It is a ballpark figure, not a verdict. Pick
a server near your target audience with speedtest-cli --list and run it
two or three times. If the provider advertises a 1 Gbps port and you consistently see
under 100 Mbps to nearby servers, that is worth a ticket, not a shrug.

Read the Results Without Fooling Yourself

Raw numbers are useless without context, so here is how to think about them honestly.
First, compare against your plan, not against the internet’s fastest screenshot. A
provider advertising NVMe storage and a gigabit port should deliver results in a
different league than a budget SATA plan, and “different league” is the right level of
precision. Exact numbers vary by node, neighbor load, and time of day.

Second, consistency beats peaks. Run each test three times, spread across different
hours. A disk that reports 500 MB/s at 3 AM and 60 MB/s at 8 PM is telling you about
the neighbors, not the hardware. Third, disk and network results travel together on
oversold nodes; if both degrade at the same hours, the node is the problem, not your
configuration.

Finally, do not chase a single number. A VPS that scores slightly below a forum
screenshot but behaves consistently will run WordPress better than one with a flashy
peak and a valley. Stability is the feature.

When to Open a Ticket With Your Provider

Open a support ticket when the numbers point at the provider’s side of the wall:
results far below what the plan advertises, run after run; wild swings between runs
that point to noisy neighbors; disk errors appearing in dmesg; or
performance that falls off a cliff after a reboot. Include your commands and full
output in the ticket. Providers respond to reproducible evidence, not to “it feels
slow.” If support shrugs and the numbers stay bad inside the refund window, that is
what the refund window is for.

Frequently Asked Questions

Is it safe to run dd and fio on a production VPS?

Yes, with the file-based commands in this guide. They write a temporary test file in
/tmp and clean it up. Do not run fio against raw block
devices like /dev/vda on a server holding data, and avoid heavy tests
during peak traffic on a live site.

How long should I run fio?

Sixty seconds per test is a solid middle ground for a first check. Longer runs
smooth out noise but also hammer shared storage; on a budget VPS, keep benchmarks
short and infrequent unless you are tracking a specific problem.

Do I need root to run these tests?

dd, speedtest-cli, and file-based fio work
as a normal user. Installing packages with apt needs sudo, and
iperf3 -s needs the firewall port opened, which usually needs root or the
provider panel.

Ditulis oleh

Firdaus Safari Putra

Founder, PT FirKaizen Digital Solutions

Firdaus Safari Putra adalah founder PT FirKaizen Digital Solutions. Ia membangun dan mengoperasikan infrastruktur server di balik panduan ini, dan menulis berdasarkan apa yang benar-benar ia jalankan, uji, dan ukur — bukan teori.