pwshub.com

Real-time Linux is officially part of the kernel after decades of debate

No RTO needed for RTOS —

Now you can run your space laser or audio production without specialty patches.

CNC laser skipping across a metal surface, leaving light trails in long exposure.

Enlarge / Cutting metal with lasers is hard, but even harder when you don't know the worst-case timings of your code.

Getty Images

As is so often the case, a notable change in an upcoming Linux kernel is both historic and no big deal.

If you wanted to use "Real-Time Linux" for your audio gear, your industrial welding laser, or your Mars rover, you have had that option for a long time (presuming you didn't want to use QNX or other alternatives). Universities started making their own real-time kernels in the late 1990s. A patch set, PREEMPT_RT, has existed since at least 2005. And some aspects of the real-time work, like NO_HZ, were long ago moved into the mainline kernel, enabling its use in data centers, cloud computing, or anything with a lot of CPUs.

But officialness still matters, and in the 6.12 kernel, PREEMPT_RT will likely be merged into the mainline. As noted by Steven Vaughan-Nichols at ZDNet, the final sign-off by Linus Torvalds occurred while he was attending Open Source Summit Europe. Torvalds wrote the original code for printk, a debugging tool that can pinpoint exact moments where a process crashes, but also introduces latency that runs counter to real-time computing. The Phoronix blog has tracked the progress of PREEMPT_RT into the kernel, along with the printk changes that allowed for threaded/atomic console support crucial to real-time mainlining.

What does this mean for desktop Linux? Not much. Beyond high-end audio production or replication (and even that is debatable), a real-time kernel won't likely make windows snappier or programs zippier. But the guaranteed execution and worst-case latency timings a real-time Linux provides are quite useful to, say, the systems that monitor car brakes, guide CNC machines, and regulate fiendishly complex multi-CPU systems. Having PREEMPT-RT in the mainline kernel makes it easier to maintain a real-time system, rather than tend to out-of-tree patches.

It will likely change things for what had been, until now, specialty providers of real-time OS solutions for mission-critical systems. Ubuntu, for example, started offering a real-time version of its distribution in 2023 but required an Ubuntu Pro subscription for access. Ubuntu pitched its release at robotics, automation, embedded Linux, and other real-time needs, with the fixes, patches, module integration, and testing provided by Ubuntu.

"Controlling a laster with Linux is crazy," Torvalds said at the Kernel Summit of 2006, "but everyone in this room is crazy in his own way. So if you want to use Linux to control an industrial welding laser, I have no problem with your using PREEMPT_RT." Roughly 18 years later, Torvalds and the kernel team, including longtime maintainer and champion-of-real-time Steven Rostedt, have made it even easier to do that kind of thing.

Source: arstechnica.com

Related stories
1 month ago - Zen 5 reviews that focused primarily on server workloads, development software, and AI-type benchmarks found Zen 5 to be generally excellent, often offering good performance gains over Zen 4 with improved power efficiency. However,...
1 month ago - Computer scientists brainstorm in Pentagon-backed competition to design an AI program that scans open-source code for flaws bad actors could exploit
2 weeks ago - Problems also afflict the Pi Pico 2's chip Fedora 41 is approaching the home stretch, but is currently beset by problems around Raspberry Pi support.…
3 days ago - Automation is driving the next wave of commoditization, threatening to replace skilled workers Part 1 As we have said before, the software industry has a decades-long history of cost-cutting, commoditization, and a successful sales model...
1 month ago - OBS Studio lets you broadcast to YouTube, Twitch, Instagram, and other platforms, as well as record videos from multiple sources including browser windows, webcams, and more. It's free and runs on Windows, macOS, and Linux.Read Entire...
Other stories
2 minutes ago - The Indian government has approved $2.7 billion in new spending for its space program.
2 minutes ago - heard you like apps — Windows App replaces Microsoft Remote Desktop on macOS, iOS, and Android. Enlarge / The...
2 minutes ago - LinkedIn limits opt-outs to future training, warns AI models may spout personal data.
3 minutes ago - BUSTED — iServer provided a simple service for phishing credentials to unlock phones. Getty Images ...
29 minutes ago - European regulators want Apple to open up device pairing, notifications and more to other companies' products.