Originally posted by tildearrow
View Post
Announcement
Collapse
No announcement yet.
PREEMPT-RT Locking Infrastructure Possibly Ready For Linux 5.15
Collapse
X
-
Originally posted by Linuxxx View Post
Just curious:
Do you have some safety-critical hardware running in your basement or why do you exactly want a hard-realtime Linux kernel for your needs?
- 1 like
Leave a comment:
-
Originally posted by Linuxxx View Post
In these cases a soft-realtime Linux kernel like Ubuntu's "lowlatency" flavor is more than adequate; plus it doesn't introduce security problems as described here:
Also, the mentioned security problem happens on all linux kernels when you allocate so much memory the kernel starts swapping 100% of the time. A good way to try this is gitk on the linux git repo, while you have 4GB RAM (and 8GB swap). While gitk causes git to allocate more then physical RAM, swapping time is not considered by the kernel scheduler. This will lockup even your mouse and keyboard preventing you from terminating gitk (you might be able to ssh into your machine and SIGSTOP git, this will cause git to be swapped out and other processes to receive CPU time again).
Another fabulous example is building nodejs with > 4 threads on a machine with 16GB RAM (during linking there are 5 threads each requiring 4GB).
- 2 likes
Leave a comment:
-
Originally posted by Linuxxx View PostIn these cases a soft-realtime Linux kernel like Ubuntu's "lowlatency" flavor is more than adequate; plus it doesn't introduce security problems as described here:
Soft real time/low latency can benefit gamers, consumer high-res audio, etc.
Hard real time is a different beast. It is for situations where your life depends on it (like reading and processing the video camera information of an autonomous car) or also where your work depends on it (like in a sound studio when you record a high $ musician).
Also, regarding the Ubuntu statements, it it is very difficult to completely lock a system with multicore cpu. Anyhow if you overrun the system capabilities, this tends to be the expected/preferred outcome in many hard-real-time systems as opposed to missing 'interrupts'.
- 4 likes
Leave a comment:
-
Originally posted by Linuxxx View PostIn these cases a soft-realtime Linux kernel like Ubuntu's "lowlatency" flavor is more than adequate; plus it doesn't introduce security problems as described here:
This locking infrastructure improvement from the PREEMPT-RT set is one of the parts that help lowlatency/soft realtime and hard realtime that had not got mainline yet.
- 3 likes
Leave a comment:
-
You'll like it even less when you find out there is a bakers dozen which is 13. Though I have never known a baker that sold any thing in a bakers dozen.
- 3 likes
Leave a comment:
-
Originally posted by wertigon View Post
Hi, at a large company doing RT stuff for industry equipment and we want to cut our costs by using Linux, since this OS is massively popular, often known by new recruits, and has quite a lot of already implemented software for us to capitalize on.
We are not afraid to give back to the community in terms of bug reports, bug fixes and documentation but we are hesitant to put our own IP out there. Most of it is business logic in any case, wouldn't make much sense in a different project.
For us mainline RT would mean a lot of headaches gone actually, and we are looking forward to it. Currently the RT patch takes up to around 10 hours a week for our kernel guru, so some significant time saved here.
Congratulations on making the jump!
And hopefully your employer really can help the Linux community one way or another in the future!
- 5 likes
Leave a comment:
-
Originally posted by Yttrium View PostAny 'realtime' problem like sound or games would benefit. any software without strict RT has to account for underruns which is an absolute pain and if you fail to do so you'll hear audible pops. preemt-rt would allow you to be more certain that loop x will have run by timestamp y
About RealTime Kernels
Early on in Linux audio production, Real-Time kernels were the only way to get low- and no-latency audio for professional audio applications. However, since Linux 2.6, the real-time stack has been part of the Linux kernel, having a kernel patched with a real-time stack is no longer necessary.
RealTime Kernels Still Exist
However, there continued to be a demand for real-time kernels with a special patch. A patch does exist to enable process to have real-time process access to any process requesting it. This is good for applicance-like applications, such as audio mixers that use Linux (the Behringer X-series mixers and the Allen & Heath iLive series mixers are good examples). For desktop computer use, THIS IS A BAD IDEA.
Security Implications
All it would take is one malicious process to execute and take advantage of the real-time code to completely lock-out a user from their machine, turning that machine into part of a botnet or other malicious purpose. Real-Time processes have the potential to completely take-over a machine. This is the number one reason Ubuntu does not carry a Real-Time kernel.
Low-Latency Kernel
The Low-Latency Kernel included in Ubuntu Studio (and available in the Ubuntu repositories) does not allow such malicious code from locking-out a user from their machine. It does contain other optimizations to achieve the lowest possible latency for audio and other applications, while keeping the user interface usable. Latency as low as 0.1 millisecond can and has been achieved using this kernel.
Summary
For desktop computer usage, using a real-time kernel can cause security nightmares. The low-latency kernel included in Ubuntu Studio is completely capable of low- to no- latency while not enabling malicious processes to lock-out a user from their computer.
- 1 like
Leave a comment:
-
- 4 likes
Leave a comment:
-
Originally posted by Linuxxx View Post
Just curious:
Do you have some safety-critical hardware running in your basement or why do you exactly want a hard-realtime Linux kernel for your needs?
We are not afraid to give back to the community in terms of bug reports, bug fixes and documentation but we are hesitant to put our own IP out there. Most of it is business logic in any case, wouldn't make much sense in a different project.
For us mainline RT would mean a lot of headaches gone actually, and we are looking forward to it. Currently the RT patch takes up to around 10 hours a week for our kernel guru, so some significant time saved here.Last edited by wertigon; 18 August 2021, 10:02 AM.
- 3 likes
Leave a comment:
Leave a comment: