View previous topic :: View next topic |
Author |
Message |
Hu Administrator
Joined: 06 Mar 2007 Posts: 22626
|
Posted: Wed Jan 23, 2019 2:48 am Post subject: |
|
|
If avoiding big updates is a sufficient priority for you, another option would be to force Portage to ignore subslots. Take the icu upgrade now. Refuse to rebuild the consuming packages. Rely on @preserved-rebuild to retain the old parts of icu until qtwebengine/libreoffice no longer need those old parts. That way, as soon as you rebuild something that uses icu, you switch it to the new version, even if you hold a few packages back for special circumstances. |
|
Back to top |
|
|
Verdazil n00b
Joined: 14 Feb 2019 Posts: 47 Location: One small country ...
|
Posted: Wed Mar 20, 2019 6:26 pm Post subject: Time required to emerge package |
|
|
Code: | ivybridge-pc /home/neo # genlop -t qtwebengine
* dev-qt/qtwebengine
Sun Mar 10 00:30:45 2019 >>> dev-qt/qtwebengine-5.11.3
merge time: 1 hour, 45 minutes and 24 seconds.
Mon Mar 11 22:40:41 2019 >>> dev-qt/qtwebengine-5.11.3
merge time: 2 hours, 9 minutes and 18 seconds.
Mon Mar 18 05:16:27 2019 >>> dev-qt/qtwebengine-5.12.1
merge time: 4 hours, 58 minutes and 29 seconds.
| Why does it take more and more time to build a package? Next time will need 10 hours?! _________________ GA-Z170X-UD3 / i7-6700K / DDR4 32GB / Radeon RX 570 / TL-WDN4800 / Samsung SSD 850 EVO 250 Gb + WD Green WDC 2 Tb / BenQ BL2711U + LG TV 42LF650V |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31257 Location: here
|
Posted: Wed Mar 20, 2019 7:11 pm Post subject: |
|
|
In my system is normal
Code: | Wed Jul 4 11:29:22 2018 >>> dev-qt/qtwebengine-5.11.1
merge time: 1 hour, 45 minutes and 7 seconds.
Sat Oct 20 18:37:41 2018 >>> dev-qt/qtwebengine-5.11.2
merge time: 1 hour, 38 minutes and 18 seconds.
Fri Dec 7 20:33:57 2018 >>> dev-qt/qtwebengine-5.11.3
merge time: 1 hour, 39 minutes and 49 seconds.
Fri Mar 1 21:41:13 2019 >>> dev-qt/qtwebengine-5.12.1
merge time: 1 hour, 36 minutes and 45 seconds.
Sun Mar 17 16:39:34 2019 >>> dev-qt/qtwebengine-5.12.2
merge time: 1 hour, 31 minutes and 16 seconds. |
You changed something? what were you doing while the package compiles? _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Verdazil n00b
Joined: 14 Feb 2019 Posts: 47 Location: One small country ...
|
Posted: Wed Mar 20, 2019 7:19 pm Post subject: |
|
|
fedeliallalinea wrote: | You changed something? what were you doing while the package compiles? | Only installed additional packages and did an update. No additional tasks at compile time. _________________ GA-Z170X-UD3 / i7-6700K / DDR4 32GB / Radeon RX 570 / TL-WDN4800 / Samsung SSD 850 EVO 250 Gb + WD Green WDC 2 Tb / BenQ BL2711U + LG TV 42LF650V |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31257 Location: here
|
Posted: Wed Mar 20, 2019 7:28 pm Post subject: |
|
|
You enabled/disabled jumbo-build? _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54577 Location: 56N 3W
|
Posted: Wed Mar 20, 2019 7:45 pm Post subject: |
|
|
Verdazil,
That command gives elapsed time. Elapsed time depends on what else you are doing at the time.
By default, portage runs things with a nice value of 3. Your interactive tasks run at a nice value of 0. The means your tasks are always run ahead of emerges when there are several things competing for CPU time.
Other factors can extend elapsed time, e.g. swapping. You need to compare build conditions and build times together. Elapsed times alone are not very useful.
Code: | Sun Sep 30 18:28:52 2018 >>> dev-qt/qtwebengine-5.11.1
merge time: 47 minutes and 56 seconds.
Thu Oct 18 21:35:10 2018 >>> dev-qt/qtwebengine-5.11.1
merge time: 55 minutes and 25 seconds.
Sat Oct 20 14:27:42 2018 >>> dev-qt/qtwebengine-5.11.2
merge time: 40 minutes and 46 seconds.
Sat Nov 10 23:43:55 2018 >>> dev-qt/qtwebengine-5.11.2
merge time: 1 hour, 23 minutes and 50 seconds.
Sat Dec 8 13:03:19 2018 >>> dev-qt/qtwebengine-5.11.3
merge time: 49 minutes and 33 seconds.
Sat Mar 2 01:47:00 2019 >>> dev-qt/qtwebengine-5.12.1
merge time: 1 hour, 32 minutes and 57 seconds.
Tue Mar 19 19:52:45 2019 >>> dev-qt/qtwebengine-5.12.2
merge time: 1 hour, 21 minutes and 45 seconds. |
That's from a 96 core arm64 system that runs MAKEOPTS="-j100" and emerge --jobs=6 ... It does not swap.
I have no idea what was running at the same time as those times were recorded. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Verdazil n00b
Joined: 14 Feb 2019 Posts: 47 Location: One small country ...
|
Posted: Wed Mar 20, 2019 8:34 pm Post subject: |
|
|
NeddySeagoon wrote: | Verdazil,
That command gives elapsed time. Elapsed time depends on what else you are doing at the time.
By default, portage runs things with a nice value of 3. Your interactive tasks run at a nice value of 0. The means your tasks are always run ahead of emerges when there are several things competing for CPU time.
Other factors can extend elapsed time, e.g. swapping. You need to compare build conditions and build times together. Elapsed times alone are not very useful. |
If I look at # top, I see that there are no other resource-intensive tasks. So, the reason is not performing other tasks. I think so also, because this behavior is always observed for all packages. Always more and more time, never less. _________________ GA-Z170X-UD3 / i7-6700K / DDR4 32GB / Radeon RX 570 / TL-WDN4800 / Samsung SSD 850 EVO 250 Gb + WD Green WDC 2 Tb / BenQ BL2711U + LG TV 42LF650V |
|
Back to top |
|
|
saellaven l33t
Joined: 23 Jul 2006 Posts: 654
|
Posted: Wed Mar 20, 2019 9:17 pm Post subject: |
|
|
I don't have that package on my system, but C++ programs can take a notoriously long time to compile and each version of gcc has gotten slower at it. Is it possible you switched versions of gcc in the meantime?
It's also possible you were compiling multiple QT/KDE packages (all C++) at the same time as part of an upgrade, and they all slowed each other down. |
|
Back to top |
|
|
Verdazil n00b
Joined: 14 Feb 2019 Posts: 47 Location: One small country ...
|
Posted: Thu Mar 21, 2019 4:26 am Post subject: |
|
|
gcc version did not change
Code: | $ gcc --version
gcc (Gentoo 8.2.0-r6 p1.7) 8.2.0
Copyright (C) 2018 Free Software Foundation, Inc. |
In the console, updates are performed strictly sequentially. One by one. This is a very bad idea to run multiple updates at the same time! _________________ GA-Z170X-UD3 / i7-6700K / DDR4 32GB / Radeon RX 570 / TL-WDN4800 / Samsung SSD 850 EVO 250 Gb + WD Green WDC 2 Tb / BenQ BL2711U + LG TV 42LF650V |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54577 Location: 56N 3W
|
Posted: Thu Mar 21, 2019 8:29 pm Post subject: |
|
|
Verdazil,
It can't be that bad to update several packages at the same time, provided you have the resource to support it.
The emerge command can do it if you give the correct option.
Look up the --jobs= option _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6065 Location: Removed by Neddy
|
Posted: Thu Mar 21, 2019 8:38 pm Post subject: |
|
|
IO can also slow this down _________________
Quote: | Removed by Chiitoo |
|
|
Back to top |
|
|
Verdazil n00b
Joined: 14 Feb 2019 Posts: 47 Location: One small country ...
|
Posted: Fri Mar 22, 2019 4:35 am Post subject: |
|
|
NeddySeagoon wrote: | Look up the --jobs= option |
I meant something completely different. A bad idea is to install or update packages simultaneously in different terminal windows. _________________ GA-Z170X-UD3 / i7-6700K / DDR4 32GB / Radeon RX 570 / TL-WDN4800 / Samsung SSD 850 EVO 250 Gb + WD Green WDC 2 Tb / BenQ BL2711U + LG TV 42LF650V |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Fri Mar 22, 2019 7:20 am Post subject: |
|
|
Verdazil wrote: | NeddySeagoon wrote: | Look up the --jobs= option |
I meant something completely different. A bad idea is to install or update packages simultaneously in different terminal windows. |
It's actually safe to do that (we're not Debian), but it's still not a good idea - will waste time if you have two emerge processes trying to install the same dependencies. |
|
Back to top |
|
|
cyril42e n00b
Joined: 10 Oct 2014 Posts: 3
|
Posted: Sat May 25, 2019 8:48 am Post subject: |
|
|
It seems @fedeliallalinea had the right hint, except that it is because the jumbo-build use flag was enabled by default before 5.11 and disabed by default starting with 5.12:
Code: |
# diff /usr/portage/dev-qt/qtwebengine/qtwebengine-5.11.3.ebuild /usr/portage/dev-qt/qtwebengine/qtwebengine-5.12.3.ebuild
14c14
< IUSE="alsa bindist designer geolocation +jumbo-build pax_kernel pulseaudio
---
> IUSE="alsa bindist designer geolocation jumbo-build pax_kernel pulseaudio
|
I guess that people who had explicitly set this use flag did not see any change, but those who didn't have seen their build time doubling, as I'm also experiencing right now[/code]:
Code: |
# genlop -t qtwebengine
...
Mon Aug 27 00:24:03 2018 >>> dev-qt/qtwebengine-5.9.6-r1
merge time: 1 hour, 32 minutes and 6 seconds.
Fri May 3 04:01:53 2019 >>> dev-qt/qtwebengine-5.11.3
merge time: 1 hour, 19 minutes and 49 seconds.
# genlop -c
Currently merging 5 out of 13
* dev-qt/qtwebengine-5.12.3
current merge time: 2 hours, 46 minutes and 59 seconds.
ETA: any time now.
|
Now the question is, is there a good reason for disabling it by default, and is it safe to enable it back ? |
|
Back to top |
|
|
Chiitoo Administrator
Joined: 28 Feb 2010 Posts: 2728 Location: Here and Away Again
|
Posted: Sat May 25, 2019 8:31 pm Post subject: |
|
|
I initially set 'jumbo-build' to be enabled by default during testing, and I believe I intended to reverse it before it ever hit the official Gentoo ebuild repository, but kind of forgot, I maybe guess.
It can lead to an increased memory usage during compilation, causing build failures on machines sporting less than enough RAM, and as such, having it disabled by default makes more sense to me. For those having no such issues, it's probably still better to have it enabled (faster builds).
Apologies for the confusion! _________________ Kindest of regardses. |
|
Back to top |
|
|
Dragonix Apprentice
Joined: 21 May 2006 Posts: 253 Location: Germany
|
Posted: Mon May 27, 2019 9:37 am Post subject: qtwebengine-5.12.3 and jumbo-build |
|
|
Hi,
as this thread is one of the first results when googling for "gentoo qtwebengine" I thought I'd share my experience with the recent update to qtwebengine-5.12.3.
I've got 3 gentoo boxes (Sandy Bridge/32GB Ram/-j12, Skylake/16 GB Ram/-j5, Core2Duo/4GB Ram + 4 GB Swap/-j3), and on every one of these systems I noticed a significant increase in the compile time. Finally I realized, that qtwebengine was previously built with "jumbo-build" enabled, which became disabled for 5.12.3. After re-enabling "jumbo-build", the compile times went back to normal (Sandy Bridge: 2 hours back to 1 hour, Skylake: 3 hours back to 1.5 hours, Core2Duo: 14 hours back to 6.5 hours).
So, at least for me, enabling "jumbo-build" lead to a great improvement in regards to compile time - even on my smallest system with only 4GB Ram+4GB Swap (in my experience, swap is needed irrespective of "jumbo-build", 4GB Ram don't suffice).
Hope this helps someone,
Matthias |
|
Back to top |
|
|
<3 Veteran
Joined: 21 Oct 2004 Posts: 1083
|
Posted: Wed May 29, 2019 3:19 am Post subject: webkit/blink based browsers have got ridiculus compile times |
|
|
I don't know what is going on with webkit/blink but the compile times have gotten way out of hand lately. It's even worse than GCC or libreoffice.
Code: | #sudo genlop -t qtwebengine
* dev-qt/qtwebengine
Sat Aug 11 06:03:09 2018 >>> dev-qt/qtwebengine-5.9.6-r1
merge time: 5 hours, 29 minutes and 26 seconds.
Fri Aug 17 04:07:20 2018 >>> dev-qt/qtwebengine-5.9.6-r1
merge time: 5 hours, 34 minutes and 18 seconds.
Fri Oct 19 01:14:26 2018 >>> dev-qt/qtwebengine-5.11.1
merge time: 7 hours, 2 minutes and 45 seconds.
Mon Dec 10 08:01:36 2018 >>> dev-qt/qtwebengine-5.11.1
merge time: 6 hours, 53 minutes and 35 seconds.
Tue Jan 8 12:01:05 2019 >>> dev-qt/qtwebengine-5.11.1
merge time: 7 hours and 26 seconds.
Sat Jan 12 11:32:48 2019 >>> dev-qt/qtwebengine-5.11.3
merge time: 6 hours, 58 minutes and 19 seconds.
Fri Feb 8 10:20:57 2019 >>> dev-qt/qtwebengine-5.11.3
merge time: 8 hours, 18 minutes and 2 seconds.
Tue May 28 14:28:16 2019 >>> dev-qt/qtwebengine-5.12.3
merge time: 18 hours, 7 minutes and 18 seconds. |
I am using an older sandy bridge based core i7-2630QM 4 core + 4 logical CPU with 6GB ram and a Samsung SSD with -j9 in my C++ flags. So while I don't have a top of the line laptop, it still should not be this bad, should it? For years I have told potential Gentoo converts that compile times are a non-issue with a modern computer but 18 hours for qtwebengine? This is insane! A few versions ago it took 5 hours which is long enough, but WTF 18 hours, what is going on here? What made matters worse is that during the compile my computer was crawling at a snails pace which does not usually happen while emerging a program? Is 6GB RAM enough these days? Is it time to upgrade to more memory or do I need an entirely new laptop or is there some compiler flag that I am missing? WTF is going on?
About a year ago I unmerged Chromium due to the many version bumps almost every week and the long compile time associated with it. I can only imagine how long that would take to compile these days. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20484
|
Posted: Wed May 29, 2019 4:56 am Post subject: |
|
|
Merged the previous post. The times for qtwebengine look a lot like the discussion here. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
Dragonix Apprentice
Joined: 21 May 2006 Posts: 253 Location: Germany
|
Posted: Wed May 29, 2019 7:07 am Post subject: |
|
|
@<3:
Do you have "jumbo-build" enabled? As I've written above your post, starting with 5.12.3 "jumbo-build" became disabled as a default (at least for me). Reenabling "jumbo-build" reduced the compile times massively (again, at least for me).
Nevertheless, perhaps you're running out of RAM - did you try to lower the MAKEOPTS to -j4? I'm wondering because even my much older Core2Duo System (4GB RAM+4GB Swap) is faster than your Quadcore (6.5 hours with jumbo-build, 14 hours without jumbo-build). Alternatively, there's something wrong with my installation... |
|
Back to top |
|
|
mikefot l33t
Joined: 19 Nov 2014 Posts: 709
|
Posted: Wed May 29, 2019 10:41 am Post subject: |
|
|
Thanks for pointing out the use flag option.
I have also found to be an overnight swap hog compilation.
It used to compile a lot more quickly - it must have been the loss of the jumbo-build default setting.
It turns the pc into a space heater.
I now have a minimal install using i3 as the window manager. No lxde or kde etc.
I did Code: | emerge libreoffice-bin | but it did not install qtwebengine as a result.
For an older machine you could try a very minimal install with e.g. i3 as the window manager and have a separate installation of
debian alongside it.
Then install bedrock linux. Use it to run gentoo and debian together.
Get libreoffice etc from the debian OS.
Regards
MF |
|
Back to top |
|
|
Chiitoo Administrator
Joined: 28 Feb 2010 Posts: 2728 Location: Here and Away Again
|
Posted: Wed May 29, 2019 11:57 am Post subject: |
|
|
Yeah, with 6 GiBs of RAM, and 8 threads, I'd imagine it's very likely that swapping will occur, which may indeed slow everything down. A lot.
It might be interesting to try if lowering MAKEOPTS and enabling USE="jumbo-build" would be better, than higher MAKEOPTS but USE="-jumbo-build". Not many will want to actually test this out of course, since it takes such a long time...
If I go with MAKEOPTS="-j16" (Ryzen 7 1700), I'll dip over into swap by over 8 GiBs, and I have 16 GiBs of RAM. I need to go with '-j11' or even '-j10' to avoid swapping. (This is with USE="jumbo-build".)
I run with Qt 5.13.9999 currently (always the latest versions), to help with packaging it all for Gentoo (I mainly work on the qt overlay at this time), and I often build all of it at least once per day. I, too, would like it if the Chromium within would become less insane. :]
(I make use of 'ccache' a lot, so I'm not always building things from scratch. With regards to the WebEngine, the longer builds only happen when Chromium is updated for it, which, for normal use, would definitely happen during a new release, so 'ccache' won't help there.) _________________ Kindest of regardses. |
|
Back to top |
|
|
skellr l33t
Joined: 18 Jun 2005 Posts: 978 Location: The Village, Portmeirion
|
Posted: Wed May 29, 2019 8:41 pm Post subject: |
|
|
<3 wrote: | I don't know what is going on with webkit/blink but the compile times have gotten way out of hand lately. It's even worse than GCC or libreoffice.
Code: | #sudo genlop -t qtwebengine
* dev-qt/qtwebengine
Sat Aug 11 06:03:09 2018 >>> dev-qt/qtwebengine-5.9.6-r1
merge time: 5 hours, 29 minutes and 26 seconds.
Fri Aug 17 04:07:20 2018 >>> dev-qt/qtwebengine-5.9.6-r1
merge time: 5 hours, 34 minutes and 18 seconds.
Fri Oct 19 01:14:26 2018 >>> dev-qt/qtwebengine-5.11.1
merge time: 7 hours, 2 minutes and 45 seconds.
Mon Dec 10 08:01:36 2018 >>> dev-qt/qtwebengine-5.11.1
merge time: 6 hours, 53 minutes and 35 seconds.
Tue Jan 8 12:01:05 2019 >>> dev-qt/qtwebengine-5.11.1
merge time: 7 hours and 26 seconds.
Sat Jan 12 11:32:48 2019 >>> dev-qt/qtwebengine-5.11.3
merge time: 6 hours, 58 minutes and 19 seconds.
Fri Feb 8 10:20:57 2019 >>> dev-qt/qtwebengine-5.11.3
merge time: 8 hours, 18 minutes and 2 seconds.
Tue May 28 14:28:16 2019 >>> dev-qt/qtwebengine-5.12.3
merge time: 18 hours, 7 minutes and 18 seconds. |
I am using an older sandy bridge based core i7-2630QM 4 core + 4 logical CPU with 6GB ram and a Samsung SSD with -j9 in my C++ flags. So while I don't have a top of the line laptop, it still should not be this bad, should it? For years I have told potential Gentoo converts that compile times are a non-issue with a modern computer but 18 hours for qtwebengine? This is insane! A few versions ago it took 5 hours which is long enough, but WTF 18 hours, what is going on here? What made matters worse is that during the compile my computer was crawling at a snails pace which does not usually happen while emerging a program? Is 6GB RAM enough these days? Is it time to upgrade to more memory or do I need an entirely new laptop or is there some compiler flag that I am missing? WTF is going on?
About a year ago I unmerged Chromium due to the many version bumps almost every week and the long compile time associated with it. I can only imagine how long that would take to compile these days. |
Laptops seem to accumulate alot of "dust" in their narrow/restricted air vents. I would tear into the case and disassemble it to clean out the vents to make sure it isn't overheating and going into thermal throttling.
My 5th gen i5 does better than my 3rd gen i7 overall, unless it overheats. I think something else is throwing a wrench in the works. |
|
Back to top |
|
|
skellr l33t
Joined: 18 Jun 2005 Posts: 978 Location: The Village, Portmeirion
|
Posted: Wed May 29, 2019 9:35 pm Post subject: |
|
|
Just installed falkon to see what would happen...
Code: |
omen ~ # qlop -tH dev-qt/qtwebengine
qtwebengine: 2 hours, 22 minutes, 8 seconds for 1 merges
omen ~ # uname -a
Linux omen 5.1.5 #1 SMP Tue May 28 16:15:02 UTC 2019 x86_64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz GenuineIntel GNU/Linux
omen ~ # emerge -pv dev-qt/qtwebengine
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] dev-qt/qtwebengine-5.12.3:5/5.12::gentoo USE="alsa system-ffmpeg system-icu widgets -bindist -debug -designer -geolocation -jumbo-build -pax_kernel -pulseaudio -test" 0 KiB
Total: 1 package (1 reinstall), Size of downloads: 0 KiB |
I know it it went into thermal throttling because HP Omen laptops are terrible for cooling.
Code: | [19145.080350] mce: CPU5: Package temperature above threshold, cpu clock throttled (total events = 47557) |
But still... |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3916
|
Posted: Wed May 29, 2019 10:55 pm Post subject: |
|
|
C++ sucks in compile time..
qt5 is ridiculous..
So is net-libs/webkit-gtk...
rustc also tragical.
They take much longer to compile even than a fully blown kernel.
Its the abominable C++
I usually use an --exclude flag in emerge until things start to get nasty..
|
|
Back to top |
|
|
<3 Veteran
Joined: 21 Oct 2004 Posts: 1083
|
Posted: Thu May 30, 2019 1:52 am Post subject: |
|
|
Thanks for the tips, for years I thought about upgrading my RAM but 6GB seemed plenty now my hand might be forced to upgrade. Unfortunately The max my laptop will hold is 16GB, I might need to consider rebuilding my old gaming rig and using that as my primary PC with newer parts and using that as a discc sever for my laptop. For now I have re-enabled cache and use = jumbo-build. For other programs -j9 works fine on my lap top even with limited memory, is it possible to set a low job number for qtwebengine only? |
|
Back to top |
|
|
|