View previous topic :: View next topic |
Author |
Message |
nxe9 Tux's lil' helper
Joined: 05 Jun 2021 Posts: 122
|
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: 122
|
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: 5141 Location: Bavaria
|
|
Back to top |
|
|
nxe9 Tux's lil' helper
Joined: 05 Jun 2021 Posts: 122
|
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: 5141 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: 122
|
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: 5141 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 |
|
|
nxe9 Tux's lil' helper
Joined: 05 Jun 2021 Posts: 122
|
Posted: Sun Nov 24, 2024 2:02 pm Post subject: |
|
|
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 |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5141 Location: Bavaria
|
Posted: Sun Nov 24, 2024 3:50 pm Post subject: |
|
|
Yes, you can ... slow down emerge
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 |
|
|
nxe9 Tux's lil' helper
Joined: 05 Jun 2021 Posts: 122
|
Posted: Sun Nov 24, 2024 4:06 pm Post subject: |
|
|
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 |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5141 Location: Bavaria
|
|
Back to top |
|
|
|