Unexpected realtime delay on task 0 with period 1000000
- PCW
- Away
- Moderator
Less
More
- Posts: 17858
- Thank you received: 4765
24 Oct 2024 16:11 #313104
by PCW
Replied by PCW on topic Unexpected realtime delay on task 0 with period 1000000
Unfortunately its not trivial but there are instructions here
forum.linuxcnc.org/27-driver-boards/5366...xcnc?start=20#310794
I really think this should be fixed in the LinucCNC distribution as Realtek hardware is very common
and this affects all Ethernet connected LinuxCNC hardware.
The unfortunate thing is that this (massive Ethernet latency) was broken somewhere between
kernel revisions 4.x and 5.X and has never been fixed (the DKMS fix is a workaround, it should be fixed in
the stock Linux Kernel)
forum.linuxcnc.org/27-driver-boards/5366...xcnc?start=20#310794
I really think this should be fixed in the LinucCNC distribution as Realtek hardware is very common
and this affects all Ethernet connected LinuxCNC hardware.
The unfortunate thing is that this (massive Ethernet latency) was broken somewhere between
kernel revisions 4.x and 5.X and has never been fixed (the DKMS fix is a workaround, it should be fixed in
the stock Linux Kernel)
The following user(s) said Thank You: Jensner
Please Log in or Create an account to join the conversation.
- Lcvette
- Offline
- Moderator
Less
More
- Posts: 1143
- Thank you received: 610
24 Oct 2024 17:59 #313121
by Lcvette
Replied by Lcvette on topic Unexpected realtime delay on task 0 with period 1000000
@PCW who would be the person group best suited to fixing it, and do they know about it? is this a linuxcnc thing or a debian thing?
Please Log in or Create an account to join the conversation.
- Jensner
- Offline
- Premium Member
Less
More
- Posts: 110
- Thank you received: 18
24 Oct 2024 18:06 #313123
by Jensner
Replied by Jensner on topic Unexpected realtime delay on task 0 with period 1000000
Please Log in or Create an account to join the conversation.
- Jensner
- Offline
- Premium Member
Less
More
- Posts: 110
- Thank you received: 18
24 Oct 2024 18:08 #313124
by Jensner
Replied by Jensner on topic Unexpected realtime delay on task 0 with period 1000000
But the Error is still there...
Please Log in or Create an account to join the conversation.
- scotth
- Away
- Elite Member
Less
More
- Posts: 220
- Thank you received: 52
24 Oct 2024 18:42 #313130
by scotth
Replied by scotth on topic Unexpected realtime delay on task 0 with period 1000000
Go to your Synaptic Package Manager.
Search (in my case) R8168-dkms
select and install package.
Reboot
There are several devices and other drivers for them. Search DKMS in package and look for the proper device.
Search (in my case) R8168-dkms
select and install package.
Reboot
There are several devices and other drivers for them. Search DKMS in package and look for the proper device.
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17858
- Thank you received: 4765
24 Oct 2024 18:44 #313131
by PCW
Replied by PCW on topic Unexpected realtime delay on task 0 with period 1000000
2.531 is still way too large (even though its ~4x better)
Are all power saving option disabled in the BIOS? (Turbo modes,C state > C1 etc)
Other options are shown in the:
forum.linuxcnc.org/38-general-linuxcnc-q...nity?start=40#300434
thread
A simple thing to try is to run this script that sets the irq affinity
you first need to make the script executable with
chmod +x pinirq.txt
and then run it with:
sudo ./pinirq.txt [ethernet_device_name]
Where [Ethernet_device_name] is something like eno1 or enp0s5
(the device name can be determined with the "ip a" command)
You can check that it worked with this script:
chmod +x checkmask.txt
and then run it with:
./checkmask.txt [ethernet_device_name]
checkmask also shows the kernel command line
Are all power saving option disabled in the BIOS? (Turbo modes,C state > C1 etc)
Other options are shown in the:
forum.linuxcnc.org/38-general-linuxcnc-q...nity?start=40#300434
thread
A simple thing to try is to run this script that sets the irq affinity
you first need to make the script executable with
chmod +x pinirq.txt
and then run it with:
sudo ./pinirq.txt [ethernet_device_name]
Where [Ethernet_device_name] is something like eno1 or enp0s5
(the device name can be determined with the "ip a" command)
You can check that it worked with this script:
chmod +x checkmask.txt
and then run it with:
./checkmask.txt [ethernet_device_name]
checkmask also shows the kernel command line
Attachments:
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17858
- Thank you received: 4765
24 Oct 2024 18:50 #313133
by PCW
Ultimately it should get fixed in the kernel driver so the proprietary Realtek driver is not needed.
Replied by PCW on topic Unexpected realtime delay on task 0 with period 1000000
Honestly its a Linux thing (broken driver) but would be easier to fix in a non debian compliant ISO@PCW who would be the person group best suited to fixing it, and do they know about it? is this a linuxcnc thing or a debian thing?
Ultimately it should get fixed in the kernel driver so the proprietary Realtek driver is not needed.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19350
- Thank you received: 6479
24 Oct 2024 18:58 #313136
by tommylight
Replied by tommylight on topic Unexpected realtime delay on task 0 with period 1000000
Latency related issue, so did you dissble all the power saving features in the BIOS?
Also disable hyperthrrading, TPM, turbo, etc.
Also disable hyperthrrading, TPM, turbo, etc.
Please Log in or Create an account to join the conversation.
- Lcvette
- Offline
- Moderator
Less
More
- Posts: 1143
- Thank you received: 610
24 Oct 2024 22:14 #313161
by Lcvette
Replied by Lcvette on topic Unexpected realtime delay on task 0 with period 1000000
Interesting, would it help the intel adapter performance as well? bring it back to the 4.9 kernel day performance? i miss those days...lol
@PCW who would be the person group best suited to fixing it, and do they know about it? is this a linuxcnc thing or a debian thing?
Honestly its a Linux thing (broken driver) but would be easier to fix in a non debian compliant ISO
Ultimately it should get fixed in the kernel driver so the proprietary Realtek driver is not needed.
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17858
- Thank you received: 4765
24 Oct 2024 22:37 #313162
by PCW
Replied by PCW on topic Unexpected realtime delay on task 0 with period 1000000
It's not a issue with Intel MACs
If you disable IRQ coalescing
and pin IRQs, You get pretty decent
performance.
For example on this HP8300 I have been running a test on a 7I76EU
with a 3 KHz servo thread for about 3 days while using the PC for general
web browsing, email etc and have not had any issues.
(CPU frequency is 2.9 GHz and times are in CPU clocks)
If you disable IRQ coalescing
and pin IRQs, You get pretty decent
performance.
For example on this HP8300 I have been running a test on a 7I76EU
with a 3 KHz servo thread for about 3 days while using the PC for general
web browsing, email etc and have not had any issues.
(CPU frequency is 2.9 GHz and times are in CPU clocks)
Attachments:
Please Log in or Create an account to join the conversation.
Moderators: KCJ, Lcvette
Time to create page: 0.108 seconds