- LinuxCNC
- General LinuxCNC Questions
- Diffrent max latency results by LinuxCNC /HAL Latency Test or cyclictest
Diffrent max latency results by LinuxCNC /HAL Latency Test or cyclictest
- lottefang
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
30 Jun 2023 06:28 - 30 Jun 2023 06:37 #274488
by lottefang
Diffrent max latency results by LinuxCNC /HAL Latency Test or cyclictest was created by lottefang
Hi guys:
I have installed armbian debian buster with PREEMPT_RT kernel 5.10.21-rt34-sunxi on orangepi pc board successfully. Thanks to MX_Master's work。
this
cyclictest result was fine after "abuse" it hardly.
it's 393us
which was fine.
but when I switched to LinuxCNC /HAL Latency Test (linuxcnc2.8.1)
It turn out
851795ns(which is 852us) in Servo thread after "abuse" it. and some cases even worse.
could any one tell me what happened ? which result I should belive in ?
Thanks a lot !
I have installed armbian debian buster with PREEMPT_RT kernel 5.10.21-rt34-sunxi on orangepi pc board successfully. Thanks to MX_Master's work。
this
cyclictest result was fine after "abuse" it hardly.
it's 393us
which was fine.
but when I switched to LinuxCNC /HAL Latency Test (linuxcnc2.8.1)
It turn out
851795ns(which is 852us) in Servo thread after "abuse" it. and some cases even worse.
could any one tell me what happened ? which result I should belive in ?
Thanks a lot !
Last edit: 30 Jun 2023 06:37 by lottefang.
Please Log in or Create an account to join the conversation.
- rmu
- Offline
- Elite Member
Less
More
- Posts: 277
- Thank you received: 100
30 Jun 2023 08:32 #274489
by rmu
Replied by rmu on topic Diffrent max latency results by LinuxCNC /HAL Latency Test or cyclictest
I don't think that is a matter of belief. Results are what they are.
Did you use isolcpus or something similar to isolate some core(s) for realtime tasks? Maybe worth a try.
Did you use isolcpus or something similar to isolate some core(s) for realtime tasks? Maybe worth a try.
The following user(s) said Thank You: rodw, lottefang
Please Log in or Create an account to join the conversation.
- rodw
- Away
- Platinum Member
Less
More
- Posts: 10780
- Thank you received: 3551
30 Jun 2023 09:15 #274495
by rodw
Replied by rodw on topic Diffrent max latency results by LinuxCNC /HAL Latency Test or cyclictest
The cyclictest results are pretty terrible. If you have isolcpus, something like
sudo cyclictest --mainaffinity=1 -a 2-5 -t -p80 -i10000
Where in my case 2-5 are the isolated cpus
I have found a reasonable correlation between latencytest and cyclictest
sudo cyclictest --mainaffinity=1 -a 2-5 -t -p80 -i10000
Where in my case 2-5 are the isolated cpus
I have found a reasonable correlation between latencytest and cyclictest
The following user(s) said Thank You: lottefang
Please Log in or Create an account to join the conversation.
- chris@cnc
- Offline
- Platinum Member
Less
More
- Posts: 529
- Thank you received: 139
30 Jun 2023 20:47 - 30 Jun 2023 20:49 #274538
by chris@cnc
Replied by chris@cnc on topic Diffrent max latency results by LinuxCNC /HAL Latency Test or cyclictest
I remember some days ago reading this here. Maybe you could try the 5.10.110-rockchip-rk3588 kernel and isolcpu=5,7
forum.linuxcnc.org/18-computer/48079-can...cnc?start=220#273771
forum.linuxcnc.org/18-computer/48079-can...cnc?start=220#273771
Last edit: 30 Jun 2023 20:49 by chris@cnc.
The following user(s) said Thank You: rodw, lottefang
Please Log in or Create an account to join the conversation.
- LinuxCNC
- General LinuxCNC Questions
- Diffrent max latency results by LinuxCNC /HAL Latency Test or cyclictest
Time to create page: 0.267 seconds