- Posts: 752
- Thank you received: 0
USB activity causes network error
11 months 3 weeks ago #337799
by mariusl
Regards
Marius
www.bluearccnc.com
Replied by mariusl on topic USB activity causes network error
I got this result when I ran the checkmask file. I am sure that I don't know how to use isolcpu. I want to isolate two cores with last core being 7. SO cores 6 and 7 to be used for linuxcnc.
Cores: 8
Actual CPU Mask: ff
Desired CPU Mask: 128
IRQ: 24
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.1.0-40-rt-amd64 root=UUID=bfdcf9b0-7caa-4c4b-b4c3-585accea347a ro quiet isolcpus=2,7
Cores: 8
Actual CPU Mask: ff
Desired CPU Mask: 128
IRQ: 24
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.1.0-40-rt-amd64 root=UUID=bfdcf9b0-7caa-4c4b-b4c3-585accea347a ro quiet isolcpus=2,7
Regards
Marius
www.bluearccnc.com
Please Log in to join the conversation.
11 months 3 weeks ago #337805
by unknown
Replied by unknown on topic USB activity causes network error
Some basics here
access.redhat.com/solutions/480473
Bit more detailed
rigtorp.se/low-latency-guide/
Your config isolates core 2 & 7.
I read a while back about isolating cores that were on the same die....has something to do with cahe and the like. I really wish I could recall that article.
access.redhat.com/solutions/480473
Bit more detailed
rigtorp.se/low-latency-guide/
Your config isolates core 2 & 7.
I read a while back about isolating cores that were on the same die....has something to do with cahe and the like. I really wish I could recall that article.
Please Log in to join the conversation.
11 months 3 weeks ago #337806
by mariusl
Regards
Marius
www.bluearccnc.com
Replied by mariusl on topic USB activity causes network error
Ok sorted that out. Now how do I know that linuxcnc is running on the last two cpu's, or, how do I force it to run there?
Regards
Marius
www.bluearccnc.com
Please Log in to join the conversation.
11 months 3 weeks ago #337816
by unknown
Replied by unknown on topic USB activity causes network error
Please Log in to join the conversation.
11 months 3 weeks ago #337834
by rodw
Replied by rodw on topic USB activity causes network error
Once you have isolated cores, Real time applications (like Linuxcnc) will run on one of those cores. More particularly, the RT servo thread will run there. I think user space parts will run on non isolated cores where there is no need to be in time...
Please Log in to join the conversation.
11 months 3 weeks ago #337864
by mariusl
Regards
Marius
www.bluearccnc.com
Replied by mariusl on topic USB activity causes network error
Thanks Rob. So it will make sense then to force the eth0 irq to the last core?
Regards
Marius
www.bluearccnc.com
Please Log in to join the conversation.
11 months 3 weeks ago #337869
by rodw
Replied by rodw on topic USB activity causes network error
Yes, be guided by PCW there. Thats what he says but a lot of RT stuff I have read indicates it should be on a seperate core. I have wondered about setting the affinity for eth0 to core 6 and the linuxcnc rtapi thread irq to core 7 (given isolcpus=6,7) The latency test is really irrelevant with mesa hardware and you need to focus on network latency.Thanks Rob. So it will make sense then to force the eth0 irq to the last core?
Please Log in to join the conversation.
11 months 3 weeks ago #337873
by mariusl
Regards
Marius
www.bluearccnc.com
Replied by mariusl on topic USB activity causes network error
I am testing on a machine with 8 cores but the units that are giving me uphill all have only 4 cores. I will isolate 2,3 and put the eth0 irq on 2 to test. I will report back once I have tested it. Unfortunately all the machines that are problematic are a couple of hours away from me. Is there a way to test the network latency?
Thanks Rob. So it will make sense then to force the eth0 irq to the last core?
Yes, be guided by PCW there. Thats what he says but a lot of RT stuff I have read indicates it should be on a seperate core. I have wondered about setting the affinity for eth0 to core 6 and the linuxcnc rtapi thread irq to core 7 (given isolcpus=6,7) The latency test is really irrelevant with mesa hardware and you need to focus on network latency.
Regards
Marius
www.bluearccnc.com
Please Log in to join the conversation.
11 months 3 weeks ago #338071
by rodw
Replied by rodw on topic USB activity causes network error
Try this command and review results when complete
The max reading is usually the first entry as it connects so look at average and standard deviation.
Code:
sudo chrt 99 ping -i .001 -c 600000 -q 10.10.10.10
Please Log in to join the conversation.
Time to create page: 0.056 seconds
