kernel bypass

term

networkingprogramming

Kept 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

← Back to K Back to the glossary