Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

how do you guys handle qtwebengine

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
58 posts
  • Previous
  • 1
  • 2
  • 3
Author
Message
logrusx
Advocate
Advocate
User avatar
Posts: 3526
Joined: Thu Feb 22, 2018 2:29 pm

  • Quote

Post by logrusx » Tue Oct 15, 2024 11:00 am

Chiitoo wrote:
Zucca wrote:

Code: Select all

2024-10-14T12:47:02 >>> dev-qt/qtwebengine: 9:19:17
on

Code: Select all

Intel(R) Core(TM) i5-7600T (4) @ 3.70 GHz
with 32GiB of RAM.

Holy compilation marathon, Batman!
I knew qtwebengine was big, but that big? Although I had USE=-jumbo-build.
Has anyone measured how much jumbo-build reduces the compilation time? In percents?
It's been a while since I actually tried, but I would still guess it should be about 50% of the time with 'jumbo-build' disabled (assuming the increased memory-use will not be a problem).
Back in the days of jumboo-enabled chromium builds it was something like 7 hours compared to more than 35 hours for my poor old E6200 - dual core dual thread processor with 6 GB of RAM.
Chiitoo wrote:
Zucca wrote:Also I always thought it was based on webkit and not the chromium (blink) fork.
There was Qt Webkit [1], which kind of fell into slumber, and eventually lost its outside-Qt maintainers as well.

1. https://code.qt.io/cgit/qt/qtwebkit.git/
Chromium was initially based on webkit but that was more than a decade ago. That's why it was fast and compiled quickly. Then I abandoned Linux for a while and I don't know when it dropped the webkit part and became the monster that it now is.

Webkit itself was an internal Apple project that I think Safari was based on. It may still be.

p.s. I just checked because I remember something about KDE. Webkit is a fork of KHTML.

Best Regards,
Georgi
Top
Zucca
Moderator
Moderator
User avatar
Posts: 4679
Joined: Thu Jun 14, 2007 10:31 pm
Location: Rasi, Finland
Contact:
Contact Zucca
Website

  • Quote

Post by Zucca » Tue Oct 15, 2024 5:35 pm

eschwartz wrote:Counterpoint: -O0 disables optimizations that lead to smaller code size, which means that the linker needs to do more work to link it all.
Ah. I didn't think that... Good (counter)point. ;)

Anyways... webkit-gtk seems quite lighter to compile:

Code: Select all

2024-10-15T03:44:16 >>> net-libs/webkit-gtk: 5:38:39
.
I might as well now rebuild both with USE=jumbo-build... Let's gather some statistics.
..: Zucca :..

Code: Select all

init=/sbin/openrc-init
-systemd -logind -elogind seatd
I am NaN! I am a man!
Top
Zucca
Moderator
Moderator
User avatar
Posts: 4679
Joined: Thu Jun 14, 2007 10:31 pm
Location: Rasi, Finland
Contact:
Contact Zucca
Website

  • Quote

Post by Zucca » Wed Oct 16, 2024 6:08 am

Code: Select all

M710q ~ # qlop
2024-10-15T22:49:10 >>> net-libs/webkit-gtk: 1:51:00
2024-10-16T00:40:10 >>> dev-qt/qtwebengine: 4:57:55
As expected. Webkit-gtk compiles quite a lot faster with jumbo-build.
..: Zucca :..

Code: Select all

init=/sbin/openrc-init
-systemd -logind -elogind seatd
I am NaN! I am a man!
Top
tckosvic
Apprentice
Apprentice
Posts: 198
Joined: Tue Apr 18, 2023 4:17 pm

  • Quote

Post by tckosvic » Mon Oct 21, 2024 12:42 pm

I just did an emerge update and emerge compiled two different versions of qtwebengine in one emerge task. These were 5.15.14 and 6.7.3. This took about a day and a half on a reasonably fast i7 chip with 6 cpus dedicated to the task.

I am not sure how this could occur. Anyone with any insights?
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3526
Joined: Thu Feb 22, 2018 2:29 pm

  • Quote

Post by logrusx » Mon Oct 21, 2024 1:18 pm

tckosvic wrote:I just did an emerge update and emerge compiled two different versions of qtwebengine in one emerge task. These were 5.15.14 and 6.7.3. This took about a day and a half on a reasonably fast i7 chip with 6 cpus dedicated to the task.

I am not sure how this could occur. Anyone with any insights?
When two versions can coexist, they are given slots, so that applications requiring different versions can still coexist together. You emerged two different slots. Whether you have applications that necessitated it or you just had qtwebengine in world and portage found the update.

Best Regards,
Georgi
Top
Zucca
Moderator
Moderator
User avatar
Posts: 4679
Joined: Thu Jun 14, 2007 10:31 pm
Location: Rasi, Finland
Contact:
Contact Zucca
Website

  • Quote

Post by Zucca » Tue Nov 05, 2024 10:14 am

I needed to compile qtwebengine on my main laptop.
With AMD Ryzen 5 3500U and non expandable 8GiB of RAM from which 6.7GiB is available (the missing is used by iGPU). So I chose to go with USE="-jumbo-build".
Although the CPU has 4 cores and 8 threads I normally let portage use 4 per build process so that I can still use the laptop while updates are being built. Also if I was to set jobs any higher I think I'd run out of memory.
Because of the lack of memory, I also used the NVMe SSD disk space for PORTAGE_TMPDIR since the temp files for qtwebengine take a little over 6GiB at worst.
Lastly, I use a daemon which downclocks the CPU so that the fan doesn't make too much noise.

And...

Code: Select all

NBLK-WAX9X ~ # qlop qtwebengine
2024-11-04T02:57:11 >>> dev-qt/qtwebengine: 28:01:00
... Yeah. I understand why some people like to use binary packages.
Yes. I did quickpkg'd that after the compilation.

I think I could only speed up the compilation by letting CPU clock as high as possible.
My rough guess would be that the compilation would then take 16-18 hours.

I think I'll set the minimum RAM requirement for my future systems to 16GiB.
..: Zucca :..

Code: Select all

init=/sbin/openrc-init
-systemd -logind -elogind seatd
I am NaN! I am a man!
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3526
Joined: Thu Feb 22, 2018 2:29 pm

  • Quote

Post by logrusx » Tue Nov 05, 2024 11:03 am

Zucca wrote: I think I could only speed up the compilation by letting CPU clock as high as possible.
viewtopic-p-8842339.html#8842339

Best Regards,
Georgi
Top
Zucca
Moderator
Moderator
User avatar
Posts: 4679
Joined: Thu Jun 14, 2007 10:31 pm
Location: Rasi, Finland
Contact:
Contact Zucca
Website

  • Quote

Post by Zucca » Tue Nov 05, 2024 2:06 pm

Yeah. I could use ccache for bigger packages. But at this point the only package really needing it would be qtwebengine.
Every other package I have on my system compiles in under 5 hours or so. Night time builds.

If qtwebengine stays on my system I will consider ccache.
..: Zucca :..

Code: Select all

init=/sbin/openrc-init
-systemd -logind -elogind seatd
I am NaN! I am a man!
Top
Post Reply

58 posts
  • Previous
  • 1
  • 2
  • 3

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy