Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Slow compilation time on meteor lake laptop
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
nxe9
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jun 2021
Posts: 122

PostPosted: Sat Nov 23, 2024 5:32 pm    Post subject: Slow compilation time on meteor lake laptop Reply with quote

Hi, compilation on my laptop seems to take too long for me. firefox needs about 60 minutes to build on my Ultra 155H. I can reproduce it. On my old desktop i7-4790k it takes about 50 minutes. All 22 threads are used at 100 % according to htop. What I notice is that on the laptop htop shows cpu usage in blue (low priority). I think that's the problem. I haven't configured any power management so far. I have no idea how the kernel manages this and why it decides for restrictions on a laptop. The laptop is constantly connected to the power supply. Or maybe it has something to do with the temperature of the laptop? However, I do not believe that a laptop with a powerful new processor is worse than 10-year-old cpu.

Should I make the settings using app-laptop/laptop-mode-tools or what is the best option?

Kernel: 6.11.10-gentoo-dist (sys-kernel/gentoo-kernel)
System is up to date
GUI: X11 / wm awesome with eloging starting in boot

Edit:
Quote:
To make use of Intel's Linux thermal daemon you first need to emerge sys-power/thermald and enable it via:

https://wiki.gentoo.org/wiki/Power_management/Guide/de

Quote:
thermald is a Linux daemon used to prevent the overheating of platforms. This daemon monitors temperature and applies compensation using available cooling methods.

By default, it monitors CPU temperature using available CPU digital temperature sensors and maintains CPU temperature under control, before HW takes aggressive correction action.

archlinux.org

I installed themald and added it via rc-config. I will compile again and see what the result will be.
Back to top
View user's profile Send private message
nxe9
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jun 2021
Posts: 122

PostPosted: Sat Nov 23, 2024 7:10 pm    Post subject: Reply with quote

Same result with sys-power/thermald. I gues I'll just have to try laptop-mode-tools.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5141
Location: Bavaria

PostPosted: Sat Nov 23, 2024 7:42 pm    Post subject: Reply with quote

How much RAM has your old i7 and your new notebook?
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
nxe9
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jun 2021
Posts: 122

PostPosted: Sat Nov 23, 2024 8:00 pm    Post subject: Reply with quote

Old i7 desktop: 32 GB
New Ultra 7 notebook: 96 GB
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5141
Location: Bavaria

PostPosted: Sat Nov 23, 2024 9:32 pm    Post subject: Reply with quote

nxe9 wrote:
New Ultra 7 notebook: 96 GB

Okay ... should be reasonably sufficient. :lol:

So, yes, the next you should check is the temperature.
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
nxe9
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jun 2021
Posts: 122

PostPosted: Sun Nov 24, 2024 2:22 am    Post subject: Reply with quote

So far I have installed themald and laptop_mode. Both are added with rc-update. Laptop_mode has default configuration. Still the same, firefox needs the same amount of time.

I ran the 7z benchmark on Windows and Gentoo and on windows the results are much better.The average MIPS for compressing / decompressing are about 70000 on windows whereas about 42500/25000 (compressing / decompressing) on gentoo. What I noticed is that in the case of 7z htop shows the cpu in green instead of blue.

I don't know what to do next. It looks like the laptop with is not working at full capacity.

/etc/laptop-mode/laptop-mode.conf contains the default value
Code:
ENABLE_LAPTOP_MODE_ON_AC=0

So I guess in my case laptop mode does not start and the kernel is controlling it its own way, right? Perhaps I should change this value? But the comment is
Quote:
Enable laptop mode power savings, even when on AC power.


I would expect "=0" means laptop mode is off and I don't understand why the kernel would make any throttling when I have a cable connected and no laptop mode.

Edit:
Code:
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
performance
performance
...
<22 times>

Scaling governor seems to be ok for me.

Edit 2:
What about https://wiki.gentoo.org/wiki/Portage_niceness ? Can I adjust something with niceness?

Edit 3:
All cores are <60 C during firefox compilation and hight/crit values listed by sensor are +110 C.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5141
Location: Bavaria

PostPosted: Sun Nov 24, 2024 11:37 am    Post subject: Reply with quote

I would like to have a look at the output of “dmesg” (complete) from your notebook; and of “dmesg | grep Bogo” from your i7.
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
nxe9
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jun 2021
Posts: 122

PostPosted: Sun Nov 24, 2024 2:02 pm    Post subject: Reply with quote

desktop i7:
Code:
dmesg | grep Bogo
[    0.150403] Calibrating delay loop (skipped), value calculated using timer frequency.. 7997.41 BogoMIPS (lpj=3998708)
[    0.168556] smpboot: Total of 8 processors activated (63979.32 BogoMIPS)


notebook ultra i7
Code:
dmesg | grep Bogo
[    0.282190] Calibrating delay loop (skipped), value calculated using timer frequency.. 5992.00 BogoMIPS (lpj=9984000)
[    0.325559] smpboot: Total of 22 processors activated (131841.00 BogoMIPS)


notebook ultra i7 full dmesg
https://bpa.st/VFZA
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5141
Location: Bavaria

PostPosted: Sun Nov 24, 2024 3:50 pm    Post subject: Reply with quote

nxe9 wrote:
[...] What about https://wiki.gentoo.org/wiki/Portage_niceness ? Can I adjust something with niceness? [...]

Yes, you can ... slow down emerge :lol:

nxe9 wrote:
I don't know what to do next. It looks like the laptop with is not working at full capacity.
[...]
All cores are <60 C during firefox compilation and hight/crit values listed by sensor are +110 C.

That's what tells me something is wrong and that's why I wanted to see the system log to be on the safe side; and because you are using our dist-kernel everything is fine - as I expected. If the CPU temperature is 60°, then the CPU is not working at 100% ... or has been throttled. If the kernel is innocent, then only the BIOS remains to blame. Yes, I know that some notebook manufacturers install nasty limits here so that their (poor) heat dissipation is sufficient. Yes, some notebook manufacturers even go so far as to differentiate in the BIOS whether a Windows or an “other OS” is booted ...

You probably already know that you have 6 P-cores, 8 E-cores and 2 low-power E-cores. What happens if you use makeopts=“-j20” (instead of 22)? Have you looked in the BIOS settings to see what you can configure there?

You probably already know that with 96 GB you probably have 4 RAM bars (so access is always slower than with 2 bars) ... some BIOS even have problems here and a significant drop in memory access.

It could be that you have to live with the current performance ... :(
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
nxe9
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jun 2021
Posts: 122

PostPosted: Sun Nov 24, 2024 4:06 pm    Post subject: Reply with quote

After purchasing, I immediately updated the bios via Windows. I currently have the latest bios version.

I don't really believe that the fault is in the BIOS, because why there are much better 7z benchmark results on Windows?

There is 2x48 GB RAM.

What really surprises me is the fact that on the desktop all kernels are green in htop. On the notebook, however, they are all blue. It looks like the kernel doesn't want to run these threads with full priority. However, I don't know why.

Next steps I will take:
1. makeopts -j20
2. Review the bios settings
2. Try 7z benchmark on arch live usb.
3. Try 7z benchmark on ubuntu live usb.

I will tell you about the result

Edit:
4. I can also try to run arch live usb, chroot into gentoo and build firefox again. In this case, the compilation will be with the Arch kernel, so it is also interesting what the result will be.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5141
Location: Bavaria

PostPosted: Sun Nov 24, 2024 4:15 pm    Post subject: Reply with quote

Yes, a comparison with another distribution can help to shed light on the situation.
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum