Unexpected realtime delay on task 0 on a HP8300

More
2 years 6 months ago - 2 years 6 months ago #297411 by PCW
In my experience, it makes a large difference in network latency
to use isolcpus and pin the Ethernet device IRQ to the same CPU that's
running LinuxCNC's realtime.

For example, I'm typing this on a HP 800 G1 Elite that I use for normal
browsing, compilations, videos etc. At the same time, it is always running
LinuxCNC. Without IRQ pinning, it would drop (timeout)  a packet maybe
once or twice a week. With IRQ pinning, it never drops packets...
Last edit: 2 years 6 months ago by PCW.
The following user(s) said Thank You: tommylight, lrak

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

More
2 years 6 months ago - 2 years 6 months ago #298033 by lrak
OK - that seems to have fixed it - it has been up for some days now with out the hiccup..

What I did :
installed irqbalance

I had to change this line in /etc/irqbalance.d/lcnc_irqpolicy.sh


#NIC=`awk 'BEGIN{nic=""} {if ($1=="iface") {tmpnic = $2} if ($1=="address") {if ($2 == 10.10.10.1) {nic = tmpnic}}} END{print(nic)}' /etc/network/interfaces`
NIC=enp2s0



NIC just needs the name of the interface.
Last edit: 2 years 6 months ago by lrak.

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

Time to create page: 0.105 seconds
Powered by Kunena Forum