Linux 7.3 SMP Improvement to Help Reduce Latency, Improve Real-Time Performance

rbanffy3 pts0 comments

Linux 7.3 SMP Improvement To Help Reduce Latency, Improve Real-Time Performance - Phoronix

Articles & Reviews

News Archive

Forums

Premium Ad-Free<br>Contact

Popular Categories

Close

Articles & Reviews

News Archive

Forums

Premium

Contact

Categories

Computers Display Drivers Graphics Cards Linux Gaming Memory Motherboards Processors Software Storage Operating Systems Peripherals

Linux 7.3 SMP Improvement To Help Reduce Latency, Improve Real-Time Performance

Written by Michael Larabel in Linux Kernel on 17 August 2026 at 10:09 AM EDT. 1 Comment

Among the pull requests sent out today now that the Linux 7.3 merge window is open are the SMP improvements for this next kernel version. Standing out among the SMP code are some enhancements for helping reduce latency and ultimately enhancing real-time Linux performance.

Due to blocking until remote CPUs complete the IPI function execution, scheduling latency can increase "dramatically" with the number of remote CPUs and other conditions. Especially for x86_64 where Translation Lookaside Buffer (TLB) flushes are performance via IPIs, process exit and process-mapped page reclamation can lead to waiting on multiple IPI operations.

Bytedance engineers thus took to reworking the kernel SMP code to allow preemption during IPI completion waiting in order to avoid scheduling latency spikes. Bytedance engineers found the existing Linux SMP behavior to be particularly bad for latency-sensitive workloads like DPDK. In their end their optimizations paid off big time with a 90% reduction in P99 latency in testing with DPDK:

Thomas Gleixner summed up the situation elegantly in the SMP pull request:<br>"Reduce the preemption disabled sections in smp_call_function*().

The various smp call functions keep preemption disabled across the full operation which includes the wait for completion. Especially the latter can take some time when one of the target CPUs is not immediately responding to the IPI, which can result in large latency spikes.

To improve this provide a per task CPU mask to track the CPUs to wait for. That makes the information required for the wait task local and therefore allows to reenable preemption before the wait. While this comes with moderate extra memory cost this reduces SMP function call induced latency measured in a fleet for high priority tasks from ~17ms to ~1.5ms (~90%)."

The pull is now awaiting action by Linus Torvalds. Barring any code nit picks from Linus Torvalds, it's pretty safe to assume it will land this week as we kick off the Linux 7.3 merge window.

1 Comment

Tweet

Con Kolivas Revives "-ck" Patches & MuQSS To Improve Linux Desktop Responsiveness<br>GNU Linux-libre 7.2-gnu Released Following More Driver Cleaning<br>Linux 7.2 Released With Faster I/O, New AMD & Intel Driver Improvements<br>tlbi= Boot Option Submitted Ahead Of Linux 7.2 Kernel Release<br>Linux 7.3 binfmt_misc To Allow BPF Programs To Dynamically Choose Execution Environments<br>Features Coming For Linux 7.3 From Optimizing Intel Hybrid CPUs To Old AMD Athlon XPs

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, LinkedIn, or contacted via MichaelLarabel.com.

GNOME Designers Lay Out Some Of Their GNOME Shell Dreams<br>QEMU 11.1 Released With Numerous Improvements<br>OpenAI Brings ChatGPT Desktop App To Linux<br>Rsync 3.5 Released As "Extraordinary" Update To Fix 33 Security Issues<br>Comma.ai Launches A PCIe Gen4 x4 To USB4 Dock With Open-Source Firmware<br>Omarchy 4.0 Linux Distro Released With Desktop Shell Now Implemented Via Quickshell<br>CachyOS August 2026 Release Preps For Upcoming Server Edition<br>Linux 7.2-rc7 Released Following Another Exhausting AI-Driven Week

AMD Working On A New Backend For Improving ROCm Compute In QEMU/VMs

Linux 7.3 SMP Improvement To Help Reduce Latency, Improve Real-Time Performance

Firefox 154 Now Available With "Manage AI" Quick Action

Intel & AMD Power Management Driver Improvements Ready For Linux 7.3

KTransformers 0.7 Expands AVX-512 Support To Benefit AMD EPYC Servers

Con Kolivas Revives "-ck" Patches & MuQSS To Improve Linux Desktop Responsiveness

Linux 7.3 On PowerPC Now Supports In-Kernel Rust, Initial Power12 Enablement Begins

GNU Linux-libre 7.2-gnu Released Following More Driver Cleaning

Linux 7.2 Released With Faster I/O, New AMD & Intel Driver Improvements

GIMP Making Progress On New Project File Format After Nearly 30 Years With XCF

tlbi= Boot Option Submitted Ahead Of Linux 7.2 Kernel Release

Debian Marks 33rd Birthday As One Of The Oldest Maintained Linux Distros

AVX-512 xor_gen Continues To Look Exciting For Helping Linux RAID With Modern...

linux latency released improve time performance

Related Articles