
11/7/2017 · Marek Majkowski
What this post added
This post delves into the optimization of network packet processing at the kernel level, specifically exploring the REUSEPORT socket option and its evolution with SO_INCOMING_CPU and SO_ATTACH_REUSEPORT_CBPF. It demonstrates how these features can improve packet locality by ensuring packets are processed on the same CPU that received them, thereby enhancing CPU cache locality and reducing cross-CPU interrupts. The post also introduces three advanced SystemTap scripts to measure and verify these improvements, though it notes that direct end-to-end performance gains for high-level TCP applications were not significantly measurable.