Linux 5.11 To Land Optimization That Helps IO_uring Performance
Written by Michael Larabel in Linux Kernel on 30 October 2020 at 12:05 AM EDT. 12 Comments
LINUX KERNEL --
At the start of October we mentioned a kernel optimization that can help IO_uring performance. Now as we approach the end of the month, Linux 5.11 is poised to land the optimization that especially helps out with threaded workloads.

The change to task_work to use TIF_NOTIFY_SIGNAL when available is queued as part of the tip.git core/entry code ahead of the Linux 5.11 merge window opening in December. Currently TIF_NOTIFY_SIGNAL is wired up for x86/x86_64 while Jens is working on adding this support to other CPU architectures as well. We'll see how many architectures get supported in time for Linux 5.11 as once completing that work he'll be able to move on with a set of clean-ups.

That change by Facebook's Jens Axboe notes in his tests that with this improvement the IO_uring performance in his test jumped from 1.38M requests/second up to 1.67M requests/s. Besides achieving 22% higher throughput, the CPU usage was also lower thanks to less locking.


Axboe shared that this optimization is particularly of help for threaded workloads. He's also looking at ultimately getting the code into the Linux 5.10 LTS kernel as a back-port after the 5.11 cycle gets underway.
Related News
About The Author
Author picture

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter or contacted via MichaelLarabel.com.

Popular News This Week