Unexpected realtime delay on task 0 with period 1000000

More
24 Oct 2024 16:11 #313104 by PCW
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)
 
The following user(s) said Thank You: Jensner

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

More
24 Oct 2024 17:59 #313121 by Lcvette
@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.

More
24 Oct 2024 18:06 #313123 by Jensner
OK, i hope it is done...

--- 10.10.10.10 ping statistics ---
54124 packets transmitted, 54124 received, 0% packet loss, time 54165ms
rtt min/avg/max/mdev = 0.050/0.109/2.531/0.048 ms

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

More
24 Oct 2024 18:08 #313124 by Jensner
But the Error is still there...

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

  • scotth
  • Away
  • Elite Member
  • Elite Member
More
24 Oct 2024 18:42 #313130 by scotth
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.

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

More
24 Oct 2024 18:44 #313131 by PCW
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

 

File Attachment:

File Name: pinirq_2024-10-24.txt
File Size:1 KB


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:

 

File Attachment:

File Name: checkmask_...0-24.txt
File Size:1 KB


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.

More
24 Oct 2024 18:50 #313133 by PCW

@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.

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
24 Oct 2024 18:58 #313136 by tommylight
Latency related issue, so did you dissble all the power saving features in the BIOS?
Also disable hyperthrrading, TPM, turbo, etc.

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

More
24 Oct 2024 22:14 #313161 by Lcvette

@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.

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

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

More
24 Oct 2024 22:37 #313162 by PCW
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)


 

 
Attachments:

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

Moderators: KCJLcvette
Time to create page: 0.108 seconds
Powered by Kunena Forum