Error while Running Linuxcnc

More
26 Sep 2024 23:18 #310860 by PCW
Replied by PCW on topic Error while Running Linuxcnc
Yes, your Ethernet interface is named enp4s0

Look like ethtool is not included in your linuxcnc distribution

Note that if you have Realtek hardware you will need to load the DKMS driver
(and ethtool in not needed, ethtool is only needed for Intel Ethernet hardware)

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

More
26 Sep 2024 23:34 #310863 by rajsekhar
Ok, understood.

But please confirm whether Interrupt in CPU0 is correct or not. 

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

More
27 Sep 2024 00:12 #310864 by PCW
Replied by PCW on topic Error while Running Linuxcnc
Yes, looks like only CPU 0 get interrupts from enp4s0.

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

More
27 Sep 2024 01:17 #310865 by rajsekhar
But with isolcpu=1, I understand that servothread runs in CPU1 and by irq balance setting, we are aiming the ethernet interrupts in CPU1, not in CPU0.

Am I correct?

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

More
27 Sep 2024 02:34 #310868 by PCW
Replied by PCW on topic Error while Running Linuxcnc
As a test, you can try running this utility to pin the IRQ

 

File Attachment:

File Name: pinirq_2024-09-26.txt
File Size:1 KB


First download  then

chmod +x pinirq.txt

 then

sudo ./pinirq.txt enp4s0


This utility can check the mask:

 

File Attachment:

File Name: checkmask_...9-26.txt
File Size:1 KB

 
Attachments:

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

More
27 Sep 2024 03:46 #310871 by rajsekhar
Both scripts runs and results as follows:
===========================================================
raycnc1@debian:~/Downloads$ sudo ./pinirq_2024-09-26.txt enp4s0
Cores: 2
Old CPU Mask: 2
Set device enp4s0 IRQ 32 CPU mask to 2
raycnc1@debian:~/Downloads$ sudo ./checkmask_2024-09-26.txt enp4s0
Cores: 2
Actual CPU Mask: 2
Desired CPU Mask: 2
IRQ: 32
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.1.0-18-rt-amd64 root=UUID=bc617657-6a6c-4afa-9a67-ef553e3b2439 ro initrd=/install/gtk/initrd.gz quiet isolcpus=1
raycnc1@debian:~/Downloads$
==========================================================

I did not understand the result though. Is it ok?













 

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

Moderators: PCWjmelson
Time to create page: 0.364 seconds
Powered by Kunena Forum