- LinuxCNC
- Installing LinuxCNC
- Kernel 6.12 with PREEMPT_RT patches enabled - yet POSIX non-realtime (LM22.1)
Kernel 6.12 with PREEMPT_RT patches enabled - yet POSIX non-realtime (LM22.1)
- Cant do this anymore bye all
-
- Offline
- Platinum Member
-
Less
More
- Posts: 1199
- Thank you received: 420
27 Jan 2025 11:56 #319946
by Cant do this anymore bye all
Replied by Cant do this anymore bye all on topic Kernel 6.12 with PREEMPT_RT patches enabled - yet POSIX non-realtime (LM22.1)
Yeah I posted that patch in my first post.
You taught me the way royka
You taught me the way royka

Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18354
- Thank you received: 5002
29 Jan 2025 04:25 #320041
by PCW
Replied by PCW on topic Kernel 6.12 with PREEMPT_RT patches enabled - yet POSIX non-realtime (LM22.1)
A big thanks to royka for making that patch.
Just built 6.13 for x86 (which needed that patch)
Seem like it's got quite good latency on my test machine
(noticeably better than the 6.11 kernel I was running earlier)
Just built 6.13 for x86 (which needed that patch)
Seem like it's got quite good latency on my test machine
(noticeably better than the 6.11 kernel I was running earlier)
The following user(s) said Thank You: royka
Please Log in or Create an account to join the conversation.
- rodw
-
- Offline
- Platinum Member
-
Less
More
- Posts: 11113
- Thank you received: 3685
29 Jan 2025 04:36 #320042
by rodw
Replied by rodw on topic Kernel 6.12 with PREEMPT_RT patches enabled - yet POSIX non-realtime (LM22.1)
Peter,
we have found that they are still issuing patches at kernel.org. Instead of Rokyas patch, try this official 6.13 patch
www.kernel.org/pub/linux/kernel/projects/rt/6.13/
Let us know how it goes.
we have found that they are still issuing patches at kernel.org. Instead of Rokyas patch, try this official 6.13 patch
www.kernel.org/pub/linux/kernel/projects/rt/6.13/
Let us know how it goes.
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18354
- Thank you received: 5002
29 Jan 2025 04:49 - 29 Jan 2025 04:58 #320045
by PCW
Replied by PCW on topic Kernel 6.12 with PREEMPT_RT patches enabled - yet POSIX non-realtime (LM22.1)
I did, I built 6.13-rc6-rt3 from kernel.org with the RT patches applied
but roykas patch was still needed.
How do I know it was needed? I stupidly thought I could create /sys/kernel/realtime
like normal file so for experimenting I did not need the patch. So I built the kernel
with the RT patch but not roykas patch first, and it failed in the expected
(POSIX non-realtime) way...
but roykas patch was still needed.
How do I know it was needed? I stupidly thought I could create /sys/kernel/realtime
like normal file so for experimenting I did not need the patch. So I built the kernel
with the RT patch but not roykas patch first, and it failed in the expected
(POSIX non-realtime) way...
Last edit: 29 Jan 2025 04:58 by PCW.
The following user(s) said Thank You: rodw
Please Log in or Create an account to join the conversation.
- rodw
-
- Offline
- Platinum Member
-
Less
More
- Posts: 11113
- Thank you received: 3685
29 Jan 2025 04:53 #320048
by rodw
Replied by rodw on topic Kernel 6.12 with PREEMPT_RT patches enabled - yet POSIX non-realtime (LM22.1)
Sounds like the issue is linuxCNC's method of detecting a RT kernel. Maybe we need to raise an issue and find a better way at the source rather than Roykas work around.I did, I built 6.13-rc6-rt3 from kernel.org with the RT patches applied
but roykas patch was still needed.
Please Log in or Create an account to join the conversation.
- Cant do this anymore bye all
-
- Offline
- Platinum Member
-
Less
More
- Posts: 1199
- Thank you received: 420
29 Jan 2025 04:54 #320049
by Cant do this anymore bye all
Replied by Cant do this anymore bye all on topic Kernel 6.12 with PREEMPT_RT patches enabled - yet POSIX non-realtime (LM22.1)
I just used the sys_fs patch for realtime, that's all that is really required.
What I've notice with the patch set you end up having to set low_latency_desktop within the context of the preempt menu and then full preempt that shows up in the main section of general setup.
Without the patch set all the fully preempt option is in the preempt section under general along with the others as per previous kernel versions.
This happens whether building an arm kernel or a x86_64 kernel.
I went thru this royka during the course of quite a few posts. The guy's right on the money.
What I've notice with the patch set you end up having to set low_latency_desktop within the context of the preempt menu and then full preempt that shows up in the main section of general setup.
Without the patch set all the fully preempt option is in the preempt section under general along with the others as per previous kernel versions.
This happens whether building an arm kernel or a x86_64 kernel.
I went thru this royka during the course of quite a few posts. The guy's right on the money.
The following user(s) said Thank You: rodw
Please Log in or Create an account to join the conversation.
- Cant do this anymore bye all
-
- Offline
- Platinum Member
-
Less
More
- Posts: 1199
- Thank you received: 420
29 Jan 2025 04:57 #320051
by Cant do this anymore bye all
Replied by Cant do this anymore bye all on topic Kernel 6.12 with PREEMPT_RT patches enabled - yet POSIX non-realtime (LM22.1)
I've seen the sys_fs patch in the kernel rt patchset. Name is sysfs__Add__sys_kernel_realtime_entry.patch
I did, I built 6.13-rc6-rt3 from kernel.org with the RT patches applied
but roykas patch was still needed.
Sounds like the issue is linuxCNC's method of detecting a RT kernel. Maybe we need to raise an issue and find a better way at the source rather than Roykas work around.
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18354
- Thank you received: 5002
29 Jan 2025 05:02 #320054
by PCW
Replied by PCW on topic Kernel 6.12 with PREEMPT_RT patches enabled - yet POSIX non-realtime (LM22.1)
Well, I built the stock 6.13-rc6-rt3 with RT patches from kernel.org and it does not create /sys/kernel/realtime
Please Log in or Create an account to join the conversation.
- rodw
-
- Offline
- Platinum Member
-
Less
More
- Posts: 11113
- Thank you received: 3685
29 Jan 2025 05:13 #320056
by rodw
Replied by rodw on topic Kernel 6.12 with PREEMPT_RT patches enabled - yet POSIX non-realtime (LM22.1)
Thats annoying.
I'm sure this is a linuxcnc issue. If you install rt-tests with apt, you could test RT performance using cyclictest which will eliminate linuxcnc's shenanigans.
I have found results although different are broadly simlar to latency-histogram
I'm sure this is a linuxcnc issue. If you install rt-tests with apt, you could test RT performance using cyclictest which will eliminate linuxcnc's shenanigans.
I have found results although different are broadly simlar to latency-histogram
Please Log in or Create an account to join the conversation.
- royka
- Offline
- Platinum Member
-
Less
More
- Posts: 364
- Thank you received: 126
30 Jan 2025 21:02 #320179
by royka
Replied by royka on topic Kernel 6.12 with PREEMPT_RT patches enabled - yet POSIX non-realtime (LM22.1)
This patch for LinuxCNC should be sufficient, it will still look for the PREEMPT_RT in uname but removes the check for /sys/kernel/realtime
With this environment setting you don't need any patch by the way
LINUXCNC_FORCE_REALTIME=1 latency-histogram
With this environment setting you don't need any patch by the way
LINUXCNC_FORCE_REALTIME=1 latency-histogram
Attachments:
The following user(s) said Thank You: Cant do this anymore bye all
Please Log in or Create an account to join the conversation.
- LinuxCNC
- Installing LinuxCNC
- Kernel 6.12 with PREEMPT_RT patches enabled - yet POSIX non-realtime (LM22.1)
Time to create page: 0.073 seconds