View previous topic :: View next topic |
Author |
Message |
nxe9 Tux's lil' helper
Joined: 05 Jun 2021 Posts: 120
|
Posted: Sat Nov 23, 2024 5:32 pm Post subject: Slow compilation time on meteor lake laptop |
|
|
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 |
|
|
nxe9 Tux's lil' helper
Joined: 05 Jun 2021 Posts: 120
|
Posted: Sat Nov 23, 2024 7:10 pm Post subject: |
|
|
Same result with sys-power/thermald. I gues I'll just have to try laptop-mode-tools. |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5138 Location: Bavaria
|
|
Back to top |
|
|
nxe9 Tux's lil' helper
Joined: 05 Jun 2021 Posts: 120
|
Posted: Sat Nov 23, 2024 8:00 pm Post subject: |
|
|
Old i7 desktop: 32 GB
New Ultra 7 notebook: 96 GB |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5138 Location: Bavaria
|
Posted: Sat Nov 23, 2024 9:32 pm Post subject: |
|
|
nxe9 wrote: | New Ultra 7 notebook: 96 GB |
Okay ... should be reasonably sufficient.
So, yes, the next you should check is the temperature. _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
nxe9 Tux's lil' helper
Joined: 05 Jun 2021 Posts: 120
|
Posted: Sun Nov 24, 2024 2:22 am Post subject: |
|
|
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 |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5138 Location: Bavaria
|
Posted: Sun Nov 24, 2024 11:37 am Post subject: |
|
|
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 |
|
|
|