kernel bypass
termKept in this browser · My desk
A technique that lets an application send and receive network data directly through the network adapter, without passing through the operating system's network stack.
AMD's Onload guide defines it as data moving without involvement of the operating system and says it avoids system calls, context switches and interrupts, listing market-data and trading applications first among its uses. The open-source DPDK uses poll mode drivers that work without interrupts, and Linux offers its own fast path, AF_XDP sockets, which redirect frames to user-space memory.
Why it matters. In the normal path the kernel stands between the adapter and the application, adding processing and variable delay; for low-latency trading the extra microseconds count. How it is done. Onload is a TCP and UDP implementation dynamically linked into the application through the standard sockets interface and granted direct but safe access to the adapter, so applications need no changes; AMD says it typically halves host processing overhead. DPDK provides libraries and poll mode drivers for user-space packet processing, mostly in a polling run-to-completion model. AF_XDP is an address family in the Linux kernel optimized for high-performance packet processing, sharing memory between kernel and application. The trade-offs. Polling consumes processor cores continuously, and bypass stacks implement protocols outside the kernel's own code. Related tools: hardware timestamps generated by the adapter, and FPGAs, which take the logic off the processor altogether.
Also known as: kernel-bypass networking, user-space networking, onload, dpdk, data plane development kit, af_xdp
Sources
- AMD, Onload User Guide UG1586 v1.2, 31 July 2023, copy published by Concurrent Real-Time (read 2026-11-15): TCP and UDP linked into the application with direct but safe access to the adapter, data moved without involvement of the operating system, known as kernel bypass; avoids system calls, context switches and interrupts; market-data and trading applications first among uses
- DPDK, Programmer's Guide, Overview (read 2026-11-15): poll mode drivers designed to work without asynchronous, interrupt-based signalling; most sample applications use polling for performance
- The Linux kernel documentation, AF_XDP (read 2026-11-15): an address family optimized for high-performance packet processing; XDP programs redirect frames to memory in a user-space application
- The Linux kernel documentation, Timestamping (read 2026-11-15): receive and transmit timestamps generated by the network adapter