Nitride.xyz
Performance · November 17, 2026 · 7 min read

Can a cloud VPS keep up with a Solana shred feed?

A VPS can receive a Solana shred feed, but its limits are packet rate, stolen CPU time and one busy receive queue, so measure those before you trust it.

Nitride.xyz team

Often yes, but bandwidth is the wrong test. A shred feed is a stream of small UDP datagrams, so a VPS fails on packet rate: stolen vCPU time, one virtio receive queue doing all the work, and softirq load on a single core. Measure steal time and every drop counter during a real stream before you rely on it.

Count packets, not megabits#

When someone asks whether their VPS can take a shred feed, they usually quote the port speed from the provider's plan. That number is almost never the limit.

Every shred travels in its own UDP datagram of at most 1,228 bytes. The wire contract says so, and it is the important property here. The work a host does per datagram is roughly fixed: an interrupt or a poll, a trip through the IP and UDP layers, a socket lookup, a copy into the socket buffer, a wakeup and a system call to read it. Payload size barely changes that bill. A stream of small datagrams costs CPU in proportion to how many arrive, not how many bytes they carry.

Some arithmetic shows the gap. A 1 Gbit/s link filled with full-size shred datagrams carries roughly 96,000 packets per second once you add UDP, IP and Ethernet framing. The same link filled with bulk TCP traffic carries far fewer trips up the stack, because receive offloads can hand the protocol layers large aggregated buffers instead of single segments. A provider's iperf screenshot shows the second case. Your receiver lives in the first.

That arithmetic is a ceiling, not a forecast. What a launch frenzy does to a shred feed shows what the peaks look like. The real rate follows Solana's own activity (where Solana latency comes from covers the stages behind it), which is bursty: with slots now targeting 200 ms, a busy leader sends its shreds in clumps, and the peaks are what break a receiver, not the average.

Steal time and the neighbours you never meet#

A vCPU is a thread on someone else's machine. When the hypervisor runs another guest on the physical core you were using, your guest simply does not run, and the kernel records that gap as steal. proc_stat(5) defines it as time spent in other operating systems when running in a virtualized environment; top(1) shows it as st, time stolen from this VM by the hypervisor.

For a web server, a few percent of steal is a shrug. For a UDP receiver it is a stall with no warning. While your vCPU is descheduled, nothing drains the virtual card's queue or your socket buffer, and datagrams keep arriving at the host. If the pause outlasts the queues, packets are dropped, and no counter inside your guest can tell you which neighbour caused it.

Two things make this worse in practice. Steal is bursty, so an average over a minute hides the half second that hurt. And it often lines up with the busy periods you care about, because other tenants are busy then too. A useful rule: any steal at all on the core that receives is a reason to ask the provider about dedicated cores, and steal that moves with drops is a reason to move.

virtio-net, offloads and the one-queue problem#

Many cloud guests see a paravirtual card such as virtio-net; others get a provider's own adapter (AWS ENA, for example) or a virtual function. Check yours with ethtool -i eth0. If your guest uses virtio-net, packets cross from the host into your guest through shared queues, and the host's own switching and scheduling sit in front of them. That path is good, but it is one more set of queues you do not control.

Two features matter for a receiver.

Multiqueue. The virtio specification lets the device offer several receive and transmit queue pairs (VIRTIO_NET_F_MQ), and the device then places incoming packets on a queue depending on the packet flow. ethtool -l eth0 shows how many channels your guest has and ethtool -L changes the count where the provider allows it. A single queue funnels every interrupt onto one vCPU.

More queues rarely help a single shred stream. The kernel's scaling documentation describes RSS as steering each flow to one queue by hashing header fields. A feed comes from one source address and port to one destination port, so it is one flow, and one flow lands on one queue and one CPU. Multiqueue keeps your other traffic off that core. It does not split the feed.

Offloads. GRO and GSO, the kernel's software receive and segmentation offloads, earn their reputation on bulk TCP, where many segments become one large buffer before the protocol layers see it. A plain UDP socket gets one datagram per receive call, as udp(7) says, so a shred stream gets little of that benefit. Linux 5.0 added the UDP_GRO socket option, which lets a socket receive several datagrams as one buffer, and udp(7) warns that it is not portable. Check ethtool -k eth0 to see what your virtual card advertises, but do not expect offloads to rescue a packet-rate problem.

Where the receive work actually runs#

On Linux the receive path runs mostly in softirq context. The device signals with an interrupt, then NAPI polls the queue in batches, bounded by netdev_budget packets and netdev_budget_usecs per cycle. Whatever cannot be processed waits in a per-CPU backlog capped by netdev_max_backlog.

On a VPS this matters because all of it lands on the vCPU that owns the busy queue. If your receive thread, your decoder and the softirq work share that vCPU, they compete, and the kernel side usually wins. The receive thread falls behind, the socket buffer fills, and you see drops in your socket counters that are really a CPU placement problem.

The fixes are ordinary and they work. Find which CPU handles NET_RX for your queue. Keep the decoder off it. If you can, pin the receive thread to a neighbouring core rather than the same one, and leave room for the softirq work to run. On a guest with a single queue, RPS can spread protocol processing to other CPUs in software; the kernel documentation calls it a software implementation of RSS, and it is off until you set rps_cpus.

Buffers buy time, not throughput#

Raising the socket buffer is the first thing everyone does, and it is right. A larger buffer rides out a short stall: a burst of steal, a garbage collection pause, a slow log write. Our Linux sockets and buffers page has the exact settings and how to check the size you actually got.

What a buffer cannot do is fix a receiver that is slower on average than the stream. On a VPS, steal time makes "on average" a moving target, which is why buffers alone rarely settle the question. Size the buffer for the longest stall you have measured, and treat any steady growth in buffer drops as a CPU problem, not a memory one.

How to test a VPS before you trust it#

Test with the real stream, during busy hours, and watch three layers at once.

First, steal and softirq. vmstat 1 prints a line per second with an st column; ignore the first line, which vmstat(8) says is an average since boot. In top, press 1 for per-CPU rows and watch st and si on each core. The short script below does the same per CPU and adds how many NET_RX softirqs each one ran, which shows you which vCPU owns the feed:

cpuwatch.py
1# cpuwatch.py: python3 cpuwatch.py 10
2# per CPU: share of time stolen, in hard IRQs and in softirqs, plus NET_RX softirqs run
3import sys, time
4
5def cpu_times():
6 rows = {}
7 with open("/proc/stat") as f:
8 for line in f:
9 if line.startswith("cpu") and line[3].isdigit():
10 name, *vals = line.split()
11 rows[name] = [int(v) for v in vals[:8]]
12 return rows
13
14def net_rx():
15 with open("/proc/softirqs") as f:
16 header = f.readline().split()
17 for line in f:
18 if line.split()[0] == "NET_RX:":
19 counts = [int(v) for v in line.split()[1:]]
20 return {h.lower(): c for h, c in zip(header, counts)}
21 return {}
22
23secs = int(sys.argv[1]) if len(sys.argv) > 1 else 10
24t0, r0 = cpu_times(), net_rx()
25time.sleep(secs)
26t1, r1 = cpu_times(), net_rx()
27
28print(f"{'cpu':>6} {'steal%':>7} {'irq%':>6} {'soft%':>6} {'net_rx/s':>9}")
29for cpu in sorted(t1, key=lambda c: int(c[3:])):
30 d = [b - a for a, b in zip(t0[cpu], t1[cpu])]
31 total = sum(d) or 1
32 # fields: user nice system idle iowait irq softirq steal
33 irq, soft, steal = d[5], d[6], d[7]
34 rx = (r1.get(cpu, 0) - r0.get(cpu, 0)) / secs
35 print(f"{cpu:>6} {100*steal/total:7.1f} {100*irq/total:6.1f} {100*soft/total:6.1f} {rx:9.0f}")

Second, the drop counters. Read the socket, backlog and interface counters before and after each run; what causes UDP packet loss lists them layer by layer, and ethtool -S eth0 adds whatever the virtual driver reports. Third, gaps in the data itself, since loss upstream of your guest shows up nowhere else.

Then read the three together. Drops that rise with steal mean the host is the problem. Drops that rise with softirq on one vCPU mean placement. Drops with neither mean the path, or a receiver loop that is too slow; the kernel bypass post covers when it is worth going further, and if you run the receiver in a container, the Docker post covers the extra layer that adds.

If a VPS passes all of that during a busy week, keep it. If not, our guide to choosing a Frankfurt server lists what to ask a provider for next. Either plan works on either kind of machine; the Ultra and Standard comparison explains the one difference, which is the delivery path, not the packets.

Each plan has a free 2-hour trial, once per person. Email support@nitride.xyz with the IPv4 address and UDP port you want to test. We verify you receive on that address, then your 2 hours start.

Sources#

Read nextWhat a shred feed cannot tell you