Kernel 6.12 with PREEMPT_RT patches enabled - yet POSIX non-realtime (LM22.1)

  • Cant do this anymore bye all
  • Cant do this anymore bye all's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
More
27 Jan 2025 11:56 #319946 by Cant do this anymore bye all
Yeah I posted that patch in my first post.
You taught me the way royka :)

Please Log in or Create an account to join the conversation.

More
29 Jan 2025 04:25 #320041 by PCW
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)
 
The following user(s) said Thank You: royka

Please Log in or Create an account to join the conversation.

More
29 Jan 2025 04:36 #320042 by rodw
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.

Please Log in or Create an account to join the conversation.

More
29 Jan 2025 04:49 - 29 Jan 2025 04:58 #320045 by PCW
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...
 
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.

More
29 Jan 2025 04:53 #320048 by rodw

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.

  • Cant do this anymore bye all
  • Cant do this anymore bye all's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
More
29 Jan 2025 04:54 #320049 by Cant do this anymore bye all
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.
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
  • Cant do this anymore bye all's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
More
29 Jan 2025 04:57 #320051 by Cant do this anymore bye all

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.
 

I've seen the sys_fs patch in the kernel rt patchset. Name is sysfs__Add__sys_kernel_realtime_entry.patch

Please Log in or Create an account to join the conversation.

More
29 Jan 2025 05:02 #320054 by PCW
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.

More
29 Jan 2025 05:13 #320056 by rodw
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

Please Log in or Create an account to join the conversation.

More
30 Jan 2025 21:02 #320179 by royka
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
 

File Attachment:

File Name: linuxcnc-r...12.patch
File Size:1 KB


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.

Time to create page: 0.073 seconds
Powered by Kunena Forum