Latency, error finishing read, and IRQ affinity

More
2 years 5 months ago - 2 years 5 months ago #300440 by PCW
 
Can you post the results of running this script:

File Attachment:

File Name: checkmask.txt
File Size:338 B


to run

mv checkmask.txt checkmask
chmod +x checkmask

then

./checkmask enp2s0
Last edit: 2 years 5 months ago by PCW.
The following user(s) said Thank You: Swag

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

More
2 years 5 months ago #300441 by Swag
Here the results from the Debian 12 system that is not working:
Code:
Cores: 4 Actual CPU Mask: 2 Desired CPU Mask: 8 Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.1.0-21-rt-amd64 root=UUID=404def33-1162-4fb1-89b1-fe0f54513cfc ro quiet isolcpus=3 intel_idle.max_cstate=1 i915.enable_rc6=0

And here the results from the Debian 10 system that is working (same computer, just swapping HDD back and forth):
Code:
Cores: 4 Actual CPU Mask: 2 Desired CPU Mask: 8 Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.19.0-26-rt-amd64 root=UUID=85bd3bc9-e8c5-4aa9-99cb-c3ad9df9ef66 ro initrd=/install/gtk/initrd.gz quiet isolcpus=3 intel_idle.max_cstate=1 i915.enable_rc6=0

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

More
2 years 5 months ago #300442 by PCW
Can you try pinning the Ethernet IRQ to the last processor:

 

File Attachment:

File Name: pinirq_2024-05-12.txt
File Size:653 B


Use by

mv pinirq.txt pinirq
chmod +x pinirq

sudo ./pinirq enp2s0

and then try LinuxCNC again

NOTE: Look at the script before you run it as with any script
from unknown sources, especially scripts that need sudo...

 
The following user(s) said Thank You: Swag

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

More
2 years 5 months ago #300443 by tommylight
Question, why and where did you get the info about using i915 in the kernel line?
Remove that, update grub and try again.
-
Pretty sure i read hundreds of times about i915 having to be blacklisted a few years back, so using it now seems really strange.
It was an intel chipset that lasted till i965 or i945, so that is superseded, probably 15 or more years ago.

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

More
2 years 5 months ago #300444 by Swag
Strange, for some reason I thought the rt_setup script had already done that.  Obviously I was mistaken as that does seem to have done the trick, have the original servo_thread value and have run multiple times through the test program. 

Really can not thank you enough and sorry that I missed that in all my other troubleshooting.
Code:
Cores: 4 Actual CPU Mask: 8 Desired CPU Mask: 8 Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.1.0-21-rt-amd64 root=UUID=404def33-1162-4fb1-89b1-fe0f54513cfc ro quiet isolcpus=3 intel_idle.max_cstate=1 i915.enable_rc6=0

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

More
2 years 5 months ago - 2 years 5 months ago #300445 by Swag
I do not know where the i915 came from, this is a vanilla install from the distro and the 2.8 was the same. Ah, I see, it is in the rt_setup script pinned to the start of this thread. I did run that in both setups trying to bring latency down.
Code:
if ! grep -vE '^[[:space:]]*#' $GRUB_FILE | grep -E '^[[:space:]]*GRUB_CMDLINE_LINUX_DEFAULT.*i915.enable_rc6' > /dev/null then     echo "Disabling intel graphics power save option."     sed -i "/^GRUB_CMDLINE_LINUX_DEFAULT=/ s/\"$/ i915.enable_rc6=0\"/" $GRUB_FILE     do_update_grub=1 fi
Last edit: 2 years 5 months ago by Swag.

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

Time to create page: 0.083 seconds
Powered by Kunena Forum