linuxcnc Latency test ambiguous results

  • DarkPhoinix
  • Away
  • Senior Member
  • Senior Member
More
28 Apr 2025 12:54 - 28 Apr 2025 14:51 #327214 by DarkPhoinix
linuxcnc Latency test ambiguous results was created by DarkPhoinix
 
 
 
   
I have run various tests with different commands to check the latency but I don't know if I'm doing things correctly:
stress --cpu 4 --io 4 --vm 4 --vm-bytes 1024M --timeout 120s
chrt 99 ping -i .001 10.10.10.10 -c 40000000

with stress I get good results with all the cpus at maximum usage, instead with chrt even if the cpus are not busy I see disastrous latency.
what should I do (kernel parameters, kernel recompilation)? the PC is not good for LinuxCNC?
If I don't use hardware parallel port and use NVEM, does this latency matter for operation?

my hardware:
motherboard: P8H61/USB3 R2.0
CPU: Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz
VGA: VGA compatible controller: NVIDIA Corporation GF119 [GeForce GT 610] (rev a1) (Driver NOUVEAU)
Controller: NVEM V5
Attachments:
Last edit: 28 Apr 2025 14:51 by DarkPhoinix.

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

More
28 Apr 2025 16:35 #327221 by PCW
Replied by PCW on topic linuxcnc Latency test ambiguous results
What was the result of the ping command?
 
The following user(s) said Thank You: DarkPhoinix

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

  • DarkPhoinix
  • Away
  • Senior Member
  • Senior Member
More
28 Apr 2025 17:04 #327224 by DarkPhoinix
Replied by DarkPhoinix on topic linuxcnc Latency test ambiguous results

What was the result of the ping command?

 

You need result of all 40000000?

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

More
28 Apr 2025 17:31 #327226 by PCW
Replied by PCW on topic linuxcnc Latency test ambiguous results
No, just the statistics reported at the end of:

ping -c 4 -i .2 10.10.10.10
sudo chrt 99 ping -i .001 -q -c  60000 10.10.10.10

The last command will run for 1 minute


 
The following user(s) said Thank You: DarkPhoinix

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

  • DarkPhoinix
  • Away
  • Senior Member
  • Senior Member
More
28 Apr 2025 18:25 #327228 by DarkPhoinix
Replied by DarkPhoinix on topic linuxcnc Latency test ambiguous results
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.295 ms
64 bytes from 10.10.10.10: icmp_seq=2 ttl=255 time=0.416 ms
64 bytes from 10.10.10.10: icmp_seq=3 ttl=255 time=0.278 ms
64 bytes from 10.10.10.10: icmp_seq=4 ttl=255 time=0.425 ms

--- 10.10.10.10 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 612ms
rtt min/avg/max/mdev = 0.278/0.353/0.425/0.067 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, 59999 received, 0.00166667% packet loss, time 60751ms
rtt min/avg/max/mdev = 0.158/0.255/4.918/0.225 ms

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

More
28 Apr 2025 18:59 #327230 by PCW
Replied by PCW on topic linuxcnc Latency test ambiguous results
rtt min/avg/max/mdev = 0.158/0.255/4.918/0.225 ms

Yeah, ~ 5 ms will be an issue

What is the Ethernet hardware?

If Realtek you likely need to install the DKMS driver
The following user(s) said Thank You: DarkPhoinix

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

  • DarkPhoinix
  • Away
  • Senior Member
  • Senior Member
More
28 Apr 2025 19:40 - 28 Apr 2025 19:41 #327232 by DarkPhoinix
Replied by DarkPhoinix on topic linuxcnc Latency test ambiguous results
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 09)
I need search and compile him or only apt-get?
Last edit: 28 Apr 2025 19:41 by DarkPhoinix.

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

More
28 Apr 2025 19:47 #327233 by PCW
The following user(s) said Thank You: DarkPhoinix

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

  • DarkPhoinix
  • Away
  • Senior Member
  • Senior Member
More
28 Apr 2025 22:12 #327242 by DarkPhoinix
Replied by DarkPhoinix on topic linuxcnc Latency test ambiguous results
I have a nvidia 610 video card, should I replace nouveau with the proprietary nvidia driver? (I already did it in theory)

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

More
28 Apr 2025 22:16 #327244 by PCW
Replied by PCW on topic linuxcnc Latency test ambiguous results
I don't think the video is an issue as it would show up in the generic latency tests.
 
The following user(s) said Thank You: DarkPhoinix

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

Time to create page: 0.176 seconds
Powered by Kunena Forum