Skip to content

Network benchmark—iperf3 single-thread lies

VPS Hosting by pablo 5 replies 365 views
5 #1

So I was running iperf3 on my GreenCloudVPS box and getting 3Gbps on a 10G port wey? Single thread, one stream. Thought I got scammed. Then I ran 10 parallel streams and hit 9.4Gbps. What gives?

Cpu was pinned to one core at 100%. Irqbalance running but useless. Found out virtio-net queues all landing on same cpu. This is a known thing but no one talks about it?

Anyway I wrote a little tune guide, maybe helps someone:

# check which cpu handles your nic
cat /proc/interrupts | grep virtio

# set affinity manually (example: spread across 0-3)
echo 1 > /proc/irq/XX/smp_affinity
echo 2 > /proc/irq/YY/smp_affinity
# etc
After tuning I get 9.7Gbps single stream. GreenCloudVPS's kernel is ancient though, no xps/rps defaults. Should I open ticket or just run my own kernel?

declarative or death
#2

Cheers for detailed report! Sent ticket yesterday about same issue on my test order, they said "network is shared so speeds vary" — not helpful. Made test order on HostHatch (https://hosthatch.com) and same behavior, so probably virtio driver default across industry.

Your irq affinity fix works. I applied to production box, saw improvement immediately. Will add to internal docs.

One note: xps requires newer kernel than what GreenCloudVPS ships. You can build module yourself but check ToS first. Cheers!

swimming upstream since 2019 🐟
#3

Reproduced on Leaseweb, Time4VPS, Hostinger. All same pattern.

$ iperf3 -c target -t 10
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-10.00  sec  3.42 GBytes  2.94 Gbits/sec

$ iperf3 -c target -t 10 -P 10
[SUM]   0.00-10.00  sec  11.2 GBytes  9.61 Gbits/sec

Hostinger actually responded with proper tuning guide. Decent disk IO, meh network before fix, good network after.

Comparison:
- GreenCloudVPS: no guidance, stock ancient kernel
- Leaseweb: auto-tuned, no issue
- Time4VPS: "upgrade to dedicated NIC" ($$$)
- Hostinger: https://hostinger.com/kb/irq-tuning (proper)

Numbers don't lie. Most providers don't either, they just don't know.

fio, iperf, geekbench. results or gtfo.
6 #4

Right then, @SingaporeRep — cheers lads, we try. Proper network tuning shouldn't be a paid upgrade, it's just... proper. Our virtio driver has xps/rps on by default since 2024. Old boxes still need manual kick though.

Honest limits: if you're on our legacy KVM stack (pre-2023), irq affinity is manual. New stack handles it. Can check which you're on in panel. Not hiding it, just haven't migrated everyone yet.

@pablo if you want to patch virtio yourself on GreenCloudVPS, I'd... not. Their ToS is twitchy about "unauthorized modification."

Honey badger don't care... about downtime
#5

GreenCloudVPS doesn't. Hostinger does but KYC for crypto is annoying. RackNerd takes XMR no questions, anyone know their virtio situation? Would rather pay in privacy coins than hand over passport for a VPS

Also @pablo be careful with that patch bro. "unauthorized modification" is vague on purpose

not your keys, not your coins
#6

Which kernel version is GreenCloudVPS running exactly

oops: 0000 [#1] SMP

Post a reply

You need an account to reply. Log in or register to join the conversation.

Post reply Preview Save draft