You are not logged in.

#1 2024-11-19 11:00:06

Halano
Member
From: Egypt
Registered: 2023-02-07
Posts: 33
Website

[SOLVED] Real time kernel packaging

Should I use the rt package of the kernel or use the default version of 6.12 when it's dropped into the Core
because PREEMPT_RT support merged For Linux 6.12 and all it takes a build flag to enable it
without the need of arch patching the kernel would that flag make the package separate into linux-rt

I need explanation would real time be enabled by default on 6.12.x or that requires the separate package ?

Last edited by Halano (2024-11-19 12:09:28)


.: HalanoSiblee The Smart Moth :.

Offline

#2 2024-11-19 11:50:39

Forum_Liker
Member
Registered: 2015-07-23
Posts: 56

Re: [SOLVED] Real time kernel packaging

The real-time capabilities of the Linux kernel are not enabled by default, even in the latest versions of the kernel. Real-time functionality in Linux is typically provided through the use of the Real-Time Preemption Patch (also known as the "PREEMPT_RT" patch) or the PREEMPT_RT-based real-time Linux distributions.

In the case of the Linux kernel version 6.12.x, the real-time functionality would not be enabled by default. To use the real-time capabilities, you would need to either:

1. Apply the PREEMPT_RT patch to the standard Linux kernel 6.12.x source code and compile the kernel with the necessary configurations.

2. Use a real-time Linux distribution, such as:

Xenomai
RTAI (Real-Time Application Interface)
Linux-RT
Preempt-RT Linux
These distributions come with the PREEMPT_RT patch already applied and configured, providing a fully real-time-enabled Linux environment.

It's important to note that the real-time functionality in Linux is a complex topic and requires careful configuration and optimization to ensure proper real-time behavior. The specific steps to enable real-time on Linux kernel 6.12.x may vary depending on the distribution and the use case.

Offline

#3 2024-11-19 12:08:35

Halano
Member
From: Egypt
Registered: 2023-02-07
Posts: 33
Website

Re: [SOLVED] Real time kernel packaging

Forum_Liker wrote:

The real-time capabilities of the Linux kernel are not enabled by default, even in the latest versions of the kernel. Real-time functionality in Linux is typically provided through the use of the Real-Time Preemption Patch (also known as the "PREEMPT_RT" patch) or the PREEMPT_RT-based real-time Linux distributions.

In the case of the Linux kernel version 6.12.x, the real-time functionality would not be enabled by default. To use the real-time capabilities.

My thanks for explaining right on topic this all I wanted to read for my better understanding around real time kernels..


.: HalanoSiblee The Smart Moth :.

Offline

#4 2024-11-19 12:20:45

mithrial
Member
Registered: 2017-03-05
Posts: 50

Re: [SOLVED] Real time kernel packaging

Is this information correct? From the 6.12 change log, it reads that this patch is now included.
However, I lack the information how it is actually activated. There is a "preempt" Kernel Parameter but I don't know if this the correct on.

Offline

#5 2024-11-19 12:34:33

gromit
Package Maintainer (PM)
From: Germany
Registered: 2024-02-10
Posts: 657
Website

Re: [SOLVED] Real time kernel packaging

Well with 6.12 the realtime stuff is all included upstream but it's not only a runtime switch, there need to be config options set etc in order to make the kernel also behave like a realtime one smile

Offline

#6 2024-11-19 12:59:01

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,079

Re: [SOLVED] Real time kernel packaging

No, Forum_Liker is not correct. The patches have been merged, all that's needed now is the correct config.

But that's all that changes. Instead of patching, it's just config. Nothing else. It's still requires a separate build, and a separate package, and it's something very, very few people actually want with desktop linux anyway.

Offline

#7 2024-11-19 13:02:37

Forum_Liker
Member
Registered: 2015-07-23
Posts: 56

Re: [SOLVED] Real time kernel packaging

Scimmia wrote:

just config

need an example

Offline

#8 2024-11-19 13:13:38

gromit
Package Maintainer (PM)
From: Germany
Registered: 2024-02-10
Posts: 657
Website

Re: [SOLVED] Real time kernel packaging

An example wont help with that, the Linux kernel now contains a version of the RT patchset and it is usable if you set the relevant config switches (like CONFIG_PREEMPT_RT).

https://www.heise.de/en/news/After-20-y … 35651.html

Offline

#9 2024-11-19 17:00:15

Halano
Member
From: Egypt
Registered: 2023-02-07
Posts: 33
Website

Re: [SOLVED] Real time kernel packaging

I think mithrial maybe correct

mithrial wrote:

Is this information correct? From the 6.12 change log, it reads that this patch is now included.
However, I lack the information how it is actually activated. There is a "preempt" Kernel Parameter but I don't know if this the correct on.

As Scimmia said

Scimmia wrote:

The patches have been merged, all that's needed now is the correct config.

All the user had to do to enable real time by adding kernel parameters in grub unless these patch disabled by arch build configs.

Last edited by Halano (2024-11-19 17:05:24)


.: HalanoSiblee The Smart Moth :.

Offline

#10 2024-11-19 17:08:40

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,170

Re: [SOLVED] Real time kernel packaging

Forum_Liker's response is a ShitGPT generated generic blurp, I'd not put much emphasis or belief into that. I'd also assume the situation will be like scimmia foresees, there are still two packages just without the need to carry an out of tree patch.  I doubt that this is trivially runtime switchable, at least not initially.

Offline

#11 2024-11-19 17:32:36

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,079

Re: [SOLVED] Real time kernel packaging

CONFIG_PREEMPT_DYNAMIC (which allows the preempt parameter) only works with none, voluntary, and full. It doesn't work with rt, which requires much deeper changes and can only be done at build time at this point.

Offline

#12 2024-11-19 17:32:59

Halano
Member
From: Egypt
Registered: 2023-02-07
Posts: 33
Website

Re: [SOLVED] Real time kernel packaging

V1del wrote:

Forum_Liker's response is a ShitGPT generated generic blurp, I'd not put much emphasis or belief into that. I'd also assume the situation will be like scimmia foresees, there are still two packages just without the need to carry an out of tree patch.  I doubt that this is trivially runtime switchable, at least not initially.

tux-linux-penguin.gif
hehe Forum_Liker just wanted to help >_>
so much misinformation right here however, thanks for approval V1del information's it seems more transparent now.


.: HalanoSiblee The Smart Moth :.

Offline

#13 Today 00:23:47

archdub
Member
From: Dublin, Ireland
Registered: 2018-03-04
Posts: 64

Re: [SOLVED] Real time kernel packaging

quote:

"On September 19, Thomas Gleixner delivered the pull request for the realtime preemption enablement patches to Linus Torvalds — in printed form, wrapped in gold, with a ribbon, as Torvalds had requested. It was a significant milestone, marking the completion of a project that required 20 years of effort. Congratulations are due to everybody involved.

Torvalds acted on the pull request the following morning."

https://lwn.net/Articles/990985/

Offline

Board footer

Powered by FluxBB