Help me solve big latency (INTEL NUC7 / Pentium J5005 )

More
25 Oct 2024 00:14 #313170 by tar_san
Hi, I'm new here.

I downloaded recent LinuxCNC image
  LinuxCNC 2.9.3 Debian 12 Bookworm PREEMPT-RT ISO

and I'm trying to setup to INTEL NUC7 (Pentium J5005 4core /8GB MEM + SSD).

I've read many thread on this forum and  I've configured BIOS and GRUB.

I got this big latency as a result .  (latency.png)
What am I missing ?

Please help me solve this big latency.


What I did are
1) I added GRUB.
isolcpus=1,2,3 intel_idle.max_cstate=0 processor.max_cstate=0 idle=poll

2) I configured BIOS (screenshots)
(biosN.png)

Thank you.
 

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

More
25 Oct 2024 00:56 #313173 by tommylight
First, test with
latency-histogram --nobase --sbinsize 1000 --show
If that is still bad, see if you can set the package power limit in BIOS to 0 for both sustained and burst mode,
Then try disabling WLAN it can cause huge latency spikes on some of those NUC's
The following user(s) said Thank You: tar_san

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

More
25 Oct 2024 06:13 - 25 Oct 2024 06:18 #313185 by royka
What tommylight said indeed. HDMI CEC control off, HDD led off.
And these kernel parameters worked good for me:
isolcpus=3 intel_pstate=disable processor.max_cstate=0 idle=poll cpufreq.default_governor=performance i915.enable_dc=0 ahci.mobile_lpm_policy=1 irqaffinity=0 nomodeset quiet

Bad memory can also be a cause. You can check the following command to see if there are interrupts of other devices on the isolated cpus: cat /proc/interrupts
Did you check the temperature?
Last edit: 25 Oct 2024 06:18 by royka.
The following user(s) said Thank You: tommylight, tar_san

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

More
26 Oct 2024 02:26 #313237 by tar_san
Thank you for your advice, everyone.

I got this result so far. (90 μsec jitter) really improved. 

My question is " Is 90 μsec jitter is good enough to run LinuxCNC with MESA(Ethernet FPGA Stepper) ?

 
Attachments:

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

More
26 Oct 2024 02:29 #313238 by tar_san
Thank you.

I set the package power limit in BIOS to 0 for both sustained and burst mode,
But PC worked incredibly slow ..

Anyway, thank you so much. I posted new result, very improved.

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

More
26 Oct 2024 02:31 #313239 by tar_san
Thank you so much.

I posted new result ( but I did not apply these options )
I will test later.
I should learn these options and tips.

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

More
26 Oct 2024 13:35 #313254 by tommylight
Yes it is good for Mesa, so if you have the Mesa, wire it, pewer it, connect and do some tests, might need some network tweaks, but might be all good.

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

Time to create page: 0.081 seconds
Powered by Kunena Forum