this post was submitted on 30 May 2024
18 points (84.6% liked)

Linux

48214 readers
703 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
top 6 comments
sorted by: hot top controversial new old
[–] [email protected] 9 points 5 months ago (1 children)

The real-time kernel for Ubuntu 24.04 is only available with an Ubuntu Pro subscription

[–] [email protected] 6 points 5 months ago

Which is free for up to five systems if you want to see it in action.

[–] [email protected] 4 points 5 months ago* (last edited 5 months ago) (1 children)

Can someone eli5 what real time kernel is?

Edit: nvm. Found a good explainer.

[–] [email protected] 7 points 5 months ago (1 children)

Yeah.

There's a couple of ways of looking at it; general purpose computers generally implement 'soft' real time functionality. It's usually a requirement for music and video production; if you want to keep to a steady 60fps, then you need to update the screen and the audio buffer absolutely every 16 ms. To achieve that, the AV thread runs at a higher priority than any other thread. The real-time scheduler doesn't let a lower-priority thread run until every higher-priority thread is finished. Normally that means worse performance overall, and in some cases can softlock the system - if the AV thread gets stuck in a loop, your computer won't even respond to keyboard input.

Soft real-time is appropriate for when no-one will die if a timeslot is missed. A video stutter won't kill you. Hard real-time is for things like industrial control. If the anti-lock breaks in your car are meant to evaluate your wheels one hundred times a second, then taking 11 ms to evaluate that is a complete system failure, even if the answer is correct. Note that it doesn't matter if it gets the right answer in 1 ms or 9 ms, as long as it never ever takes more than 10. Hard real-time performance does not mean good performance, it means predictable performance.

When we program up PLCs in industrial settings, for our 'critical sections', we'll processor interrupts, so that we know our code will absolutely run in time. We use specialised languages as well - no loops, no recursion - that don't let you do things that can't be checked for an upper time bound. Lots of finite state machines! But when we're done, we know that we've got code that won't miss a time slot in the next twenty years of operation.

That does mean, ironically, that my old Amiga was a better music computer than my current desktop, despite being millions of times less powerful. OctaMED could take over the whole CPU whenever it liked. Whereas a modern desktop might always have to respond to a USB device or a hard drive, leading to a potential stutter at any time. Tiny probability, but not an acceptable one.

[–] [email protected] 2 points 5 months ago

I imagine something like Fedora with an RT kernel and CPU partitioning could be as reliable as an old Amiga. CPU partitioning would let you reserve one or more cores for specific applications such as music production software. Now, the software in question may not be up to the task but that's a different problem.

[–] [email protected] 1 points 5 months ago

"It also includes optimized support for Raspberry Pi SBCs to deliver enhanced performance and compatibility."