CS 4251/6250 · Final project
Can a GPU send its own network packets?
GPU-triggered QUIC and UDP over ordinary Linux sockets, with no CPU thread in the middle
GPU
Linux
socket
CPU relay
Salvador Ibarguren · Josh Forden · Raj Bhat · Thomas Dean · Aaryan Tomar
Georgia Institute of Technology
Context · how GPUs send today
Today, a CPU thread relays every GPU message
GPU
finishes a result and raises a flag in memory
Middleman
CPU thread
watches the flag in a loop, then calls send()
Linux kernel
UDP / QUIC network stack
Network
the packet leaves the machine
Burns a whole CPU core and adds delay to every message
Special network cards (RDMA) skip the CPU, but they are expensive data-center hardware.
2
Context · io_uring
io_uring is a shared mailbox between a program and the kernel
Program
writes a request, then moves the tail
shared memory queue
Kernel thread
SQPOLL keeps checking and sends what it finds
no system call needed
What if the GPU writes into the mailbox?
3
The problem
Can an NVIDIA GPU write directly into the kernel’s io_uring mailbox?
Shown before only on AMD GPUs, never for networking, and never measured for cost.
Ordinary UDP sockets
No special network hardware
No kernel changes, no root access
Encrypted QUIC keeps working
4
Hypotheses
We tested four hypotheses
H1
Faster
Removing the middleman lowers the time to send.
H2
Less CPU
No relay thread means less CPU spent sending.
H3
Beats launching
For data the GPU makes, it beats launching GPU code per message.
H4
QUIC stays safe
Encrypted QUIC keeps working: nothing lost, nothing replayed.
5
Our approach
The GPU writes the request itself
CPU app
prepares the packet, rings the doorbell
GPU
a small program that stays running
Shared memory
the io_uring mailbox
Linux kernel
SQPOLL thread, UDP stack
Receiver
gets the packet, replies
1 · doorbell
2 · GPU computes
3 · writes request
4 · kernel sends
5 · reply
6 · buffer freed
No CPU thread relays the message: steps 3 and 4 happen without a system call.
6
Our approach · correctness
Correctness came down to three rules
45%
of runs sent corrupted requests when we removed rule 1
1
Finish writing, then announce
The GPU completes the whole request before it moves the queue’s tail.
2
Reuse a buffer only when the kernel is done
Each buffer waits for its completion entry.
3
Wake the sleeping kernel thread
SQPOLL naps when idle. The GPU can’t wake it, so the CPU does.
QUIC: the CPU still encrypts and numbers every packet. The GPU only decides when it leaves.
7
Experimental setting
Four send paths, one difference
Same GPU program, packets, receiver and core pinning; only how the packet is submitted changes. Orange boxes: a CPU thread handles every message.
Launch + copy
CPU relay + send()
CPU relay + io_uring
GPU-direct (ours)
GPU
launch kernel, copy result back
set a flag
set a flag
write the request
CPU
launch, wait, call send()
relay thread polls, calls send()
relay thread polls, writes request
no thread
Kernel
UDP send
UDP send
SQPOLL, UDP send
SQPOLL, UDP send
RTX 4090
laptop GPU, Linux
10×
repetitions, order rotated
166 M
requests sent
1.1 B
streamed messages
0
errors
8
Result · H1 faster
Faster in every workload, but only by about 4%
0.3–0.6 µs
faster than the CPU relay at the median, in all three workloads (p < 0.001)
UDP request–response time, median
CPU alone, no GPU
6.42 µs
GPU + CPU relay
8.33 µs
GPU-direct
8.00 µs
CPU-side work
added by the GPU trip
the middleman
−57%
median latency under heavy load (100k requests/s): queues turn small savings into big ones
9
Result · H2 less CPU
The twist: with one stream, no CPU is saved
One stream · no saving
±0
cores saved, and +4.4 W of power
The kernel thread needs a full core too, so it simply replaces the relay.
Four streams · saves
−84%
CPU spent on sending
One kernel thread serves every stream; relays need a core each.
Bursty traffic · saves
23×
less CPU than a relay
The kernel thread sleeps between bursts and wakes when needed.
10
Result · H3 beats launching · H4 QUIC safe
For data the GPU generates, it wins big
41×
more messages per second than launching GPU code for every message
2.2×
faster per request
7–20×
less energy per message
QUIC: every packet accepted, every lost packet recovered normally
11
Conclusion
So, is it worth it?
H1
Faster
Yes, but small
0.3–0.6 µs; up to −57% under load
H2
Less CPU
Depends
only with many streams or bursty traffic
H3
Beats launching
Yes, by a lot
41× the messages, 2.2× faster
H4
QUIC stays safe
Yes
every packet accepted, losses recovered
A GPU can send through ordinary Linux sockets by itself. It pays off most for GPU-generated data and many streams.
Thank you · Questions?
Backup · where the time goes
Most of a request is the GPU trip and the receiver, not the relay
One-way, the relay’s extra time is noticing the flag and making the system call: 0.07–0.15 µs. Inside the kernel, both paths cost the same (measured with bpftrace).
13
Backup · deployment
Next to heavy GPU work, the sender needs its own space
Reserve 2 of 76 GPU cores
- Without it, worst-case (p99) latency is 0.4–0.5 ms.
- With a 2-SM partition (CUDA green contexts): 12–13 µs, at no cost when idle.
Place the kernel thread well
- SQPOLL on its own core, in the same CPU cluster as the app.
- Elsewhere, GPU-direct is slower than the relay (+0.27 to +0.74 µs).
14
Backup · under load
Under load, small savings compound in the queue
Open-loop Poisson arrivals
- 90k requests/s: −19% median latency.
- 100k requests/s: −57% (92 µs vs 214 µs).
- Launch + copy saturates near 50k requests/s.
Why
- Near saturation, waiting time grows much faster than service time, so 0.35 µs less per request cuts queueing a lot.
15
Backup · context
Related work and limitations
Related work
- NCCL GIN (Hamidouche et al., 2025): GPU-initiated networking, needs special NICs.
- GENESYS (ISCA 2018): GPU system calls, needs OS changes.
- AGIO (ASPLOS 2026): asynchronous GPU I/O, for storage.
- GPU io_uring on AMD (Ceccato, 2025): not networking, no cost study.
Limitations
- Loopback network on one laptop GPU; a real NIC adds latency.
- The CPU still encrypts every QUIC packet.
- One kernel polling core is still needed.
- The GPU draws about 50 W whenever it sends, for any GPU-driven design.
16