USB activity causes network error
- mariusl
-
Topic Author
- Offline
- Platinum Member
-
04 Nov 2025 09:19 - 04 Nov 2025 09:22 #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
Last edit: 04 Nov 2025 09:22 by mariusl.
Please Log in or Create an account to join the conversation.
- unknown
- Away
- Platinum Member
-
Less
More
- Posts: 747
- Thank you received: 247
04 Nov 2025 11:11 #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 or Create an account to join the conversation.
- mariusl
-
Topic Author
- Offline
- Platinum Member
-
04 Nov 2025 11:24 #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 or Create an account to join the conversation.
- unknown
- Away
- Platinum Member
-
Less
More
- Posts: 747
- Thank you received: 247
04 Nov 2025 15:41 #337816
by unknown
Replied by unknown on topic USB activity causes network error
Please Log in or Create an account to join the conversation.
- rodw
-
- Away
- Platinum Member
-
Less
More
- Posts: 11482
- Thank you received: 3851
04 Nov 2025 19:33 #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...
The following user(s) said Thank You: mariusl
Please Log in or Create an account to join the conversation.
- mariusl
-
Topic Author
- Offline
- Platinum Member
-
05 Nov 2025 06:00 - 05 Nov 2025 06:01 #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
Last edit: 05 Nov 2025 06:01 by mariusl.
Please Log in or Create an account to join the conversation.
- rodw
-
- Away
- Platinum Member
-
Less
More
- Posts: 11482
- Thank you received: 3851
05 Nov 2025 07:50 #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 or Create an account to join the conversation.
- mariusl
-
Topic Author
- Offline
- Platinum Member
-
05 Nov 2025 08:46 - 05 Nov 2025 08:48 #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
Last edit: 05 Nov 2025 08:48 by mariusl.
Please Log in or Create an account to join the conversation.
Moderators: snowgoer540
Time to create page: 0.080 seconds