/plushcap/analysis/cloudflare/perfect-locality-and-three-epic-systemtap-scripts

Perfect locality and three epic SystemTap scripts

What's this blog post about?

In this blog post, the author discusses the REUSEPORT socket option, which changes the queuing model from "combined queue" to a dedicated accept queue per worker process. This helps distribute load more evenly but may affect latency distribution in certain conditions. The author also explains how REUSEPORT can improve packet locality and its performance implications. Three advanced SystemTap scripts are presented, which were used to understand and measure the packet locality. The author concludes that although they couldn't prove a significant improvement in performance by improving packet locality, writing these scripts was an educational experience and provided valuable insights into the Linux networking stack.

Company
Cloudflare

Date published
Nov. 7, 2017

Author(s)
Marek Majkowski

Word count
1908

Hacker News points
2

Language
English


By Matt Makai. 2021-2024.