[split] Real Time Kernels discussion
#1
FYI, from UbuntuStudio/RealTimeKernel - Community Help Wiki  Maybe we can simply focus on UbuntuStudio 22.04.  Shy

About RealTime KernelsEarly 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 ExistHowever, 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 ImplicationsAll 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 KernelThe 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, such as Preempt-RT being enabled in the kernel configuration, 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.
 
SummaryFor 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.
Reply

#2
(15-May-2022, 04:14 PM)hkphantomgtr Wrote: FYI, from UbuntuStudio/RealTimeKernel - Community Help Wiki  Maybe we can simply focus on UbuntuStudio 22.04.  Shy

About RealTime KernelsEarly 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 ExistHowever, 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.
They are not wrong. It is a bad idea, for desktop (i.e. general use).

I guess I should put up a clarification in the wiki for this. That Snakeoil is a dedicated music server/player. And should not be used for general computing (e.g. use it to browse banks, install pirated applications, etc).


(15-May-2022, 04:14 PM)hkphantomgtr Wrote: Low-Latency KernelThe 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, such as Preempt-RT being enabled in the kernel configuration, 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.
 
SummaryFor 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.
This is the interesting bit... I havn't look at the code for a wihle now, but if memory serves for real "Real time" (RT), Preempt-RT scheduling needs the process to be running as ROOT. Sounds like they have applied modifications to it that doesn't require that. I suspect it wouldn't be true real time, but it might be good enough.

Hopefully can get to try studio soon. Been somewhat busy lately.
Snakeoil Operating System - Music, your way!
[-] The following 1 user Likes agent_kith's post:
  • hkphantomgtr
Reply

#3
After almost a year, finally the RT kernel of Ubuntu 22.04LTS comes.
https://9to5linux.com/canonical-announce...ntu-kernel
1
Reply

#4
(15-Feb-2023, 12:31 AM)hkphantomgtr Wrote: After almost a year, finally the RT kernel of Ubuntu 22.04LTS comes.
https://9to5linux.com/canonical-announce...ntu-kernel
I know there's a reason why I havn't finish the kernel builder. That's my excuse and I'm sticking to it. Exciting times indeed!!!
Snakeoil Operating System - Music, your way!
[-] The following 1 user Likes agent_kith's post:
  • hkphantomgtr
Reply

#5
Let me try this in these days and see what will happen.  Finger crossed. Big Grin
[-] The following 1 user Likes hkphantomgtr's post:
  • Snoopy8
Reply

#6
(15-Feb-2023, 07:57 AM)hkphantomgtr Wrote: Let me try this in these days and see what will happen.  Finger crossed. Big Grin

Given you are way ahead, please confirm that these are the correct steps to get the RT kernel.  

Step 1 : sign up to Ubuntu Pro, if required, and login
https://ubuntu.com/pro 

Step 2 : Enable Ubuntu Pro on instance. This link shows the steps
https://www.techrepublic.com/article/ena...u-pro/amp/
The TOKEN to use is in your Ubuntu Pro Dashboard

Step 3: Install RT kernel following steps in link previously mentioned
https://9to5linux.com/canonical-announce...ntu-kernel
Reply

#7
(15-Feb-2023, 12:57 PM)Snoopy8 Wrote:
(15-Feb-2023, 07:57 AM)hkphantomgtr Wrote: Let me try this in these days and see what will happen.  Finger crossed. Big Grin

Given you are way ahead, please confirm that these are the correct steps to get the RT kernel.  

Step 1 : sign up to Ubuntu Pro, if required, and login
https://ubuntu.com/pro 

Step 2 : Enable Ubuntu Pro on instance. This link shows the steps
https://www.techrepublic.com/article/ena...u-pro/amp/
The TOKEN to use is in your Ubuntu Pro Dashboard

Step 3: Install RT kernel following steps in link previously mentioned
https://9to5linux.com/canonical-announce...ntu-kernel

Thanks, pal!  I've already got Ubuntu One a/c long time ago.  I think I just need to figure out how to get the PRO for free.  This morning it was still asking me to pay for PRO.
Reply

#8
(15-Feb-2023, 02:54 PM)hkphantomgtr Wrote: Thanks, pal!  I've already got Ubuntu One a/c long time ago.  I think I just need to figure out how to get the PRO for free.  This morning it was still asking me to pay for PRO.
I joined today and believe it is free for users with 5 or less machines.
Reply

#9
(15-Feb-2023, 03:38 PM)Snoopy8 Wrote:
(15-Feb-2023, 02:54 PM)hkphantomgtr Wrote: Thanks, pal!  I've already got Ubuntu One a/c long time ago.  I think I just need to figure out how to get the PRO for free.  This morning it was still asking me to pay for PRO.
I joined today and believe it is free for users with 5 or less machines.

Cool. Did you install the RT kernel?  Or still using your custom kernel?
Reply

#10
(15-Feb-2023, 07:30 PM)hkphantomgtr Wrote: Cool. Did you install the RT kernel?  Or still using your custom kernel?
I will install 22.04 and RT Kernel may be next week.
Reply



Bookmarks

Possibly Related Threads…
Thread Author Replies Views Last Post
  [split] Install Snakeoil OS on a USB stick cpcat 4 819 21-Jan-2023, 02:11 PM
Last Post: cpcat
  Interesting discussion developing over at DIY-Audio re cpu-isolation/jitter/noise etc Bromf 1 501 27-Sep-2022, 02:05 AM
Last Post: mkysimes
  More upsampling antics......This time with SqueezeLite mkysimes 6 2,360 05-May-2020, 07:35 PM
Last Post: mkysimes



Users browsing this thread:
1 Guest(s)

[-]
Our Sponsors

[-]
Welcome
You have to register before you can post on our site.

Username/Email:


Password:





[-]
Latest Threads
Announcing Snakeoil Measurements 1.3.0
Last Post: kees1000
13-Apr-2024 11:54 PM
» Replies: 95
» Views: 4694
LMS rebranded to Lyrion Media Server
Last Post: Bromf
07-Apr-2024 01:59 PM
» Replies: 4
» Views: 96
ZimaBoard 2x NIC, 2x SATA, 2x USB, 1x PC...
Last Post: agent_kith
26-Mar-2024 12:04 PM
» Replies: 13
» Views: 685
LMS Upgrade ?
Last Post: uglymusic
15-Mar-2024 09:14 PM
» Replies: 7
» Views: 186
Squeezebox shutdown
Last Post: TripleX
13-Mar-2024 07:34 AM
» Replies: 4
» Views: 98
MP3 Not Playing
Last Post: Coacharnold
10-Mar-2024 10:25 AM
» Replies: 3
» Views: 73
Fail to install myMPD
Last Post: hkphantomgtr
03-Mar-2024 08:45 PM
» Replies: 9
» Views: 237
Intel HFI Driver Can "Save Tons Of CPU C...
Last Post: hkphantomgtr
28-Feb-2024 09:15 PM
» Replies: 0
» Views: 62
More Problems with Squeezelite in 1.3
Last Post: Coacharnold
17-Feb-2024 09:47 PM
» Replies: 2
» Views: 84
Snakeoil Music server & Snakeoil its own...
Last Post: Snoopy8
17-Feb-2024 11:20 AM
» Replies: 8
» Views: 413

[-]
SnakeoilOS Mission Statement

Our mission is to create a free to use computer OS that is easy to install, intuitive to operate and play music that will connect and engage with you emotionally.

SnakeoilOS gives you the freedom to spend more time on listening, enjoying and exploring music. Wasting time on computers is now a thing of the past! Everything is constantly evolving/improving. Please check back often for updates.

If you like this project, do show your support with a small token donation. All donations collected will be used to run this website, and for purchasing new equipment for the project.


Powered By MyBB, © 2002-2024. Theme © Melroy van den Berg.