Error while Running Linuxcnc
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)
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.
26 Sep 2024 23:34 #310863
by rajsekhar
Replied by rajsekhar on topic Error while Running Linuxcnc
Ok, understood.
But please confirm whether Interrupt in CPU0 is correct or not.
But please confirm whether Interrupt in CPU0 is correct or not.
Please Log in or Create an account to join the conversation.
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.
27 Sep 2024 01:17 #310865
by rajsekhar
Replied by rajsekhar on topic Error while Running Linuxcnc
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?
Am I correct?
Please Log in or Create an account to join the conversation.
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
First download then
chmod +x pinirq.txt
then
sudo ./pinirq.txt enp4s0
This utility can check the mask:
First download then
chmod +x pinirq.txt
then
sudo ./pinirq.txt enp4s0
This utility can check the mask:
Attachments:
Please Log in or Create an account to join the conversation.
27 Sep 2024 03:46 #310871
by rajsekhar
Replied by rajsekhar on topic Error while Running Linuxcnc
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?
===========================================================
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.
Time to create page: 0.364 seconds