Real-time kerel not detected on patched 6.12
23 Nov 2024 16:56 #315122
by royka
Real-time kerel not detected on patched 6.12 was created by royka
I've compiled Linux 6.12 with Full real-time enabled, but somehow it's not detected as real-time by LinuxCNC. When I set the priority manually at RT via "sudo htop" and press I, the latency is low so I'm sure that it's compiled correctly.
Perhaps the detection method need to be changed?
Perhaps the detection method need to be changed?
Please Log in or Create an account to join the conversation.
- tommylight
- Online
- Moderator
Less
More
- Posts: 19226
- Thank you received: 6443
23 Nov 2024 17:32 #315124
by tommylight
Replied by tommylight on topic Real-time kerel not detected on patched 6.12
Changed the tittle to reflect the Orange PI in use.
Please Log in or Create an account to join the conversation.
23 Nov 2024 17:36 - 23 Nov 2024 18:51 #315125
by royka
Replied by royka on topic Real-time kerel not detected on patched 6.12
It's not only on Orange Pi, also on x86, both mainline Linux so it would be nice if you could set the title back again.
Last edit: 23 Nov 2024 18:51 by royka.
Please Log in or Create an account to join the conversation.
- tommylight
- Online
- Moderator
Less
More
- Posts: 19226
- Thank you received: 6443
23 Nov 2024 18:50 #315128
by tommylight
Replied by tommylight on topic Real-time kerel not detected on patched 6.12
6.12 should have Preempt and it can be actvated with PREEMPT=FULL at GRUB.
Did not test on 6.12, on 6.11 it would ignore the above.
Did not test on 6.12, on 6.11 it would ignore the above.
Please Log in or Create an account to join the conversation.
23 Nov 2024 18:55 #315129
by royka
Replied by royka on topic Real-time kerel not detected on patched 6.12
As you can see in the screenshot it's configured with fully preempted. Are you sure that this kernel parameter makes it real-time? Isn't this only to make it low latency when the kernel is configured is dynamic?
Please Log in or Create an account to join the conversation.
- tommylight
- Online
- Moderator
Less
More
- Posts: 19226
- Thank you received: 6443
24 Nov 2024 01:43 #315151
by tommylight
Replied by tommylight on topic Real-time kerel not detected on patched 6.12
Nothing on the screenshots says it is a fully preemptible kernel in use, and it is also noted by LinuxCNC in the terminal saying "using posix non-realtime".
Why the report? You already said that here and it was not changed (the tittle) as there is no evidence the normal AMD64 kernel also does the same thing, both screenshots contain only Orange PI.
Instead, try patching the kernel again and choosing fully preemptible in menuconfig (was it called that?) ... but then again, why patching, there are ready made debs for AMD64 with RT patching already done, no idea if there is one for OPI though.
AMD64:
packages.debian.org/experimental/amd64/l...c6-rt-amd64/download
Nothing for AARCH64 though.
Why the report? You already said that here and it was not changed (the tittle) as there is no evidence the normal AMD64 kernel also does the same thing, both screenshots contain only Orange PI.
Instead, try patching the kernel again and choosing fully preemptible in menuconfig (was it called that?) ... but then again, why patching, there are ready made debs for AMD64 with RT patching already done, no idea if there is one for OPI though.
AMD64:
packages.debian.org/experimental/amd64/l...c6-rt-amd64/download
Nothing for AARCH64 though.
Please Log in or Create an account to join the conversation.
24 Nov 2024 02:02 #315153
by royka
Replied by royka on topic Real-time kerel not detected on patched 6.12
In the other terminal you can read "PREEMPT_,RT".
In the screenshot of the whole screen (where I put the rtapi processes manually on the FIFO scheduler with rt priority) you can see from the result that it's definitely a realtime kernel, but somehow just not detected correctly since 6.12.
Do I really need to send a proof that it's the same with x86?
It's a bit annoying that the title got changed to something that attracts less attention, while it's not even limited to only that device/architecture.
Since you didn't reply on it but you did reply on other topics in this section I assumed that you didn't read it. So by trying to prevent of getting a lot of noise in this topic (didn't work) I pushed the report button.
In the screenshot of the whole screen (where I put the rtapi processes manually on the FIFO scheduler with rt priority) you can see from the result that it's definitely a realtime kernel, but somehow just not detected correctly since 6.12.
Do I really need to send a proof that it's the same with x86?
It's a bit annoying that the title got changed to something that attracts less attention, while it's not even limited to only that device/architecture.
Since you didn't reply on it but you did reply on other topics in this section I assumed that you didn't read it. So by trying to prevent of getting a lot of noise in this topic (didn't work) I pushed the report button.
Please Log in or Create an account to join the conversation.
24 Nov 2024 02:48 #315155
by royka
Replied by royka on topic Real-time kerel not detected on patched 6.12
Anyway thanks for the link, just tried the kernel from the link and that one works correctly indeed. Still a mystery for me while mine doesn't get detected, because rhey're compiled with fully preemptible (realtime) in menuconfig.
Why compiling myself? Because I use it on a pc with Fedora and an Orange Pi 5. I'll dig further into it.
Why compiling myself? Because I use it on a pc with Fedora and an Orange Pi 5. I'll dig further into it.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- tommylight
- Online
- Moderator
Less
More
- Posts: 19226
- Thank you received: 6443
24 Nov 2024 02:48 #315156
by tommylight
Replied by tommylight on topic Real-time kerel not detected on patched 6.12
www.phoronix.com/news/Linux-6.12-Does-Real-Time
6.12 does not need patching for AMD64 according to the above, it should work with just setting the preemption to full. That needs to be tested.
The list of all architectures that have ready made debs for 6.12 RT.
packages.debian.org/search?keywords=linux-image-rt
And yes, i know patching sometimes does not work as it should, but can not recall what would cause that as last i did patching was when Linux Mint 17.n came out.
And yes, we do need evidence of it not working on AMD64 or X86_64 (there are no new kernels for X86 for quite some time).
6.12 does not need patching for AMD64 according to the above, it should work with just setting the preemption to full. That needs to be tested.
The list of all architectures that have ready made debs for 6.12 RT.
packages.debian.org/search?keywords=linux-image-rt
And yes, i know patching sometimes does not work as it should, but can not recall what would cause that as last i did patching was when Linux Mint 17.n came out.
And yes, we do need evidence of it not working on AMD64 or X86_64 (there are no new kernels for X86 for quite some time).
Please Log in or Create an account to join the conversation.
- tommylight
- Online
- Moderator
Less
More
- Posts: 19226
- Thank you received: 6443
24 Nov 2024 02:51 #315157
by tommylight
Replied by tommylight on topic Real-time kerel not detected on patched 6.12
Is the tittle OK now?
The following user(s) said Thank You: royka
Please Log in or Create an account to join the conversation.
Time to create page: 0.092 seconds