Realtime kernel choice for current Mint versions

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
crlMIDI
Level 1
Level 1
Posts: 11
Joined: Mon May 09, 2016 12:34 pm

Realtime kernel choice for current Mint versions

Post by crlMIDI »

Applications running in real time need a special kernel that doesn't allow the operating system to interfere with the timing of inputs and outputs. Examples include music and numerical machine control (CNC). With an ordinary kernel, a computer with a 300 picosecond clock can't play a little piece of music without introducing a latency of >100 milliseconds. A CNC machine might have stepping motors that must step in time; disaster will strike if the OS goes off looking for updates, for example.

The documentation for LinuxCNC lists available realtime kernels, with remarks about peripheral supports and so on:
https://linuxcnc.org/docs/2.8/html/gett ... quirements

There is a recent tendency in the CNC field to use instead a dedicated microcontroller running Linux, such as the Beaglebone, so the PC provides only the user interface which isn't time-critical. However, many amateurs use very inexpensive interface microcontrolers (Arduino, Smoothieware...) with a serial USB connection. While these do buffer irregular timing to some extent, they still often run into trouble (though with the simple circuitry that's commonly used it's hard to distinguish timing from electronic problems).

I'd like to set up Intel NUC7CJY mini PCs (the cheapest model, with Celeron) for both music and CNC. These run Mint Cinnamon 20.3 nicely, and I don't want to change to a distribution I don't know. So my question is whether anyone could advise on the most suitable runtime kernel for this situation.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
SMG
Level 25
Level 25
Posts: 31991
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Realtime kernel choice for current Mint versions

Post by SMG »

crlMIDI wrote: Thu Jan 27, 2022 1:26 pm Applications running in real time need a special kernel that doesn't allow the operating system to interfere with the timing of inputs and outputs. Examples include music and numerical machine control (CNC). With an ordinary kernel, a computer with a 300 picosecond clock can't play a little piece of music without introducing a latency of >100 milliseconds. A CNC machine might have stepping motors that must step in time; disaster will strike if the OS goes off looking for updates, for example.
I do not know about CNC machinery, but there are quite a few people doing music work who use the low-latency kernels available in Synaptic Package manager. If I recall correctly, there is a low-latency version of each kernel which is normally available in Update Manager.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
t42
Level 11
Level 11
Posts: 3747
Joined: Mon Jan 20, 2014 6:48 pm

Re: Realtime kernel choice for current Mint versions

Post by t42 »

crlMIDI wrote: Thu Jan 27, 2022 1:26 pm These run Mint Cinnamon 20.3 nicely, and I don't want to change to a distribution I don't know. So my question is whether anyone could advise on the most suitable runtime kernel for this situation.
For RT kernel you need to go for Debian. With some effort you can install 2.8 even on Debian 11 (I guess better with XFCE or Mate DE).
-=t42=-
Locked

Return to “Other topics”