linuxcnc Latency test ambiguous results
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 20152
- Thank you received: 6855
28 Apr 2025 22:27 #327246
by tommylight
Replied by tommylight on topic linuxcnc Latency test ambiguous results
NVIDIA proprietary drivers do not work with RT kernel and neither do new AMD drivers.
Most of the time NVIDIA cards will cause latency spikes and should not be used for machine control, but i have plenty of GTX1060 and GTX1070 that are usable with NOVEAU drivers, older ones will mess latency badly, and even the ones i have on some motherboards do cause issues, so it's a cr@p shoot.
First, fix the ethernet latency, disable power saving options in BIOS and hyperthreading and TPM and..., then we can see what still needs to be done.
Most of the time NVIDIA cards will cause latency spikes and should not be used for machine control, but i have plenty of GTX1060 and GTX1070 that are usable with NOVEAU drivers, older ones will mess latency badly, and even the ones i have on some motherboards do cause issues, so it's a cr@p shoot.
First, fix the ethernet latency, disable power saving options in BIOS and hyperthreading and TPM and..., then we can see what still needs to be done.
Please Log in or Create an account to join the conversation.
- DarkPhoinix
- Away
- Senior Member
-
Less
More
- Posts: 45
- Thank you received: 5
28 Apr 2025 23:02 - 28 Apr 2025 23:03 #327248
by DarkPhoinix
Replied by DarkPhoinix on topic linuxcnc Latency test ambiguous results
installed [code]r8168:
ping -c 4 -i .2 10.10.10.10
PING 10.10.10.10 (10.10.10.10) 56(84) bytes of data.
64 bytes from 10.10.10.10: icmp_seq=1 ttl=255 time=0.298 ms
64 bytes from 10.10.10.10: icmp_seq=2 ttl=255 time=0.308 ms
64 bytes from 10.10.10.10: icmp_seq=3 ttl=255 time=0.273 ms
64 bytes from 10.10.10.10: icmp_seq=4 ttl=255 time=0.273 ms
--- 10.10.10.10 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 610ms
rtt min/avg/max/mdev = 0.273/0.288/0.308/0.015 ms
chrt 99 ping -i .001 -q -c 60000 10.10.10.10
PING 10.10.10.10 (10.10.10.10) 56(84) bytes of data.
--- 10.10.10.10 ping statistics ---
60000 packets transmitted, 60000 received, 0% packet loss, time 59999ms
rtt min/avg/max/mdev = 0.178/0.253/0.441/0.031 ms
no packet loss this time with r8168!! thanks !
i have system with the nvidia proprietary driver i need to go back to nouveau?
ping -c 4 -i .2 10.10.10.10
PING 10.10.10.10 (10.10.10.10) 56(84) bytes of data.
64 bytes from 10.10.10.10: icmp_seq=1 ttl=255 time=0.298 ms
64 bytes from 10.10.10.10: icmp_seq=2 ttl=255 time=0.308 ms
64 bytes from 10.10.10.10: icmp_seq=3 ttl=255 time=0.273 ms
64 bytes from 10.10.10.10: icmp_seq=4 ttl=255 time=0.273 ms
--- 10.10.10.10 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 610ms
rtt min/avg/max/mdev = 0.273/0.288/0.308/0.015 ms
chrt 99 ping -i .001 -q -c 60000 10.10.10.10
PING 10.10.10.10 (10.10.10.10) 56(84) bytes of data.
--- 10.10.10.10 ping statistics ---
60000 packets transmitted, 60000 received, 0% packet loss, time 59999ms
rtt min/avg/max/mdev = 0.178/0.253/0.441/0.031 ms
no packet loss this time with r8168!! thanks !
i have system with the nvidia proprietary driver i need to go back to nouveau?
Last edit: 28 Apr 2025 23:03 by DarkPhoinix.
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 20152
- Thank you received: 6855
28 Apr 2025 23:10 #327249
by tommylight
latency-histogram --nobase --sbinsize 1000 --show
while playing youtube, skipping through it and maximizing/minimizing the video.
Replied by tommylight on topic linuxcnc Latency test ambiguous results
Much better.60000 packets transmitted, 60000 received, 0% packet loss, time 59999ms
rtt min/avg/max/mdev = 0.178/0.253/0.441/0.031 ms
Most probably, but if it is working with RT kernel, do give it a tryi have system with the nvidia proprietary driver i need to go back to nouveau?
latency-histogram --nobase --sbinsize 1000 --show
while playing youtube, skipping through it and maximizing/minimizing the video.
The following user(s) said Thank You: DarkPhoinix
Please Log in or Create an account to join the conversation.
- DarkPhoinix
- Away
- Senior Member
-
Less
More
- Posts: 45
- Thank you received: 5
28 Apr 2025 23:16 - 28 Apr 2025 23:17 #327251
by DarkPhoinix
Replied by DarkPhoinix on topic linuxcnc Latency test ambiguous results
Attachments:
Last edit: 28 Apr 2025 23:17 by DarkPhoinix.
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 20152
- Thank you received: 6855
28 Apr 2025 23:36 #327253
by tommylight
Replied by tommylight on topic linuxcnc Latency test ambiguous results
Looks perfectly fine, so do some tests with Mesa card attached and again do copy some stuff around, play video, etc, see if it drops the link.
If not, move on to making chips!
If not, move on to making chips!

Please Log in or Create an account to join the conversation.
- DarkPhoinix
- Away
- Senior Member
-
Less
More
- Posts: 45
- Thank you received: 5
29 Apr 2025 00:13 - 29 Apr 2025 01:03 #327256
by DarkPhoinix
Replied by DarkPhoinix on topic linuxcnc Latency test ambiguous results
Junction error 1: This error only occurs when I watch YouTube videos. With only LinuxCNC running and CPU stress test (and rustdesk remote desktop), the job runs without errors until the end.
this is the end of my machine?
this is the end of my machine?
Last edit: 29 Apr 2025 01:03 by DarkPhoinix.
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 20152
- Thank you received: 6855
29 Apr 2025 01:39 #327258
by tommylight
Replied by tommylight on topic linuxcnc Latency test ambiguous results
No, not yet.
Now is that point where you upload your configuration files here so we can have a look, joint errors are usually miss configuration on stepper systems.
What board are you using?
Now is that point where you upload your configuration files here so we can have a look, joint errors are usually miss configuration on stepper systems.
What board are you using?
Please Log in or Create an account to join the conversation.
- DarkPhoinix
- Away
- Senior Member
-
Less
More
- Posts: 45
- Thank you received: 5
29 Apr 2025 10:23 #327280
by DarkPhoinix
Replied by DarkPhoinix on topic linuxcnc Latency test ambiguous results
I still don't have the steppers or the drivers, I hope they will arrive soon, for now I have tested with only this stepper and driver connected:
thinking this was the problem I disconnected the stepper and left the card alone but the error is the same as soon as I start a video on YouTube or if I start chrt 99 ping -i .001 10.10.10.10 -c 40000000
the file conf:
driver:TB6560 JP-1635A
stepper: 57HD0401 15SB
controller: NVEM V5
Stepper and driver is only for test not final hardware.
thinking this was the problem I disconnected the stepper and left the card alone but the error is the same as soon as I start a video on YouTube or if I start chrt 99 ping -i .001 10.10.10.10 -c 40000000
the file conf:
driver:TB6560 JP-1635A
stepper: 57HD0401 15SB
controller: NVEM V5
Stepper and driver is only for test not final hardware.
Attachments:
Please Log in or Create an account to join the conversation.
- MarkoPolo
- Away
- Elite Member
-
Less
More
- Posts: 272
- Thank you received: 75
29 Apr 2025 14:48 #327295
by MarkoPolo
Replied by MarkoPolo on topic linuxcnc Latency test ambiguous results
Attachments:
The following user(s) said Thank You: DarkPhoinix
Please Log in or Create an account to join the conversation.
- DarkPhoinix
- Away
- Senior Member
-
Less
More
- Posts: 45
- Thank you received: 5
29 Apr 2025 15:42 - 29 Apr 2025 15:45 #327300
by DarkPhoinix
Replied by DarkPhoinix on topic linuxcnc Latency test ambiguous results
I was just going down that road, I found a post where it was talked about, For now I did this:but I would like to try to add: rcu_nocbs
can you share your lspci result?
BOOT_IMAGE=/boot/vmlinuz-6.1.0-33-rt-amd64 root=UUID=e5282ae9-3e96-4f4e-9c6c-19b3dd421c80 ro initrd=/install/gtk/initrd.gz quiet isolcpus=1,2 r8168.EEE=0 pcie_aspm=off nohz_full=1,2
can you share your lspci result?
Last edit: 29 Apr 2025 15:45 by DarkPhoinix.
Please Log in or Create an account to join the conversation.
Time to create page: 0.182 seconds