Get the latest tech news

Reducing latency with esoteric Linux process flags


How an elusive Linux kernel API flag nearly cost us a 6x latency improvement.

This is the story of how a seemingly simple task turned into a deep dive into the undocumented intricacies of the Linux kernel, Bubblewrap sandboxing, and Rust Tokio’s threading model. Unlike full virtual machines or containerization like Docker, which can be resource-intensive, Bubblewrap operates with minimal overhead while still providing strong isolation, which is crucial in our bot environments where compute is limited. This subtle interaction between Tokio’s thread management, Bubblewrap’s process isolation, and Linux kernel internals was completely undocumented in any of the sources we initially checked, making it a particularly nasty debugging challenge.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Linux

Linux

Photo of latency

latency

Related news:

News photo

More Apple SoC DeviceTree Additions Being Upstreamed For Linux 6.15

News photo

Firefox 137 Beta Now Available With VA-API Accelerated H.265/HEVC On Linux

News photo

Linux's AMD Radeon Vulkan Driver Adds Experimental Support For The BC-250 Mining Board