Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on ARM
  • Search

Raspberry Pi4B 8GB EMERGE_DEFAULT_OPTS

Gentoo on all things ARM. Both 32 bit and 64 bit.
Tell about your hardware and CHOST.
Problems with crossdev targeting ARM hardware go here too.
Post Reply
  • Print view
Advanced search
9 posts • Page 1 of 1
Author
Message
n1ese
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Sun Sep 29, 2019 3:25 pm

Raspberry Pi4B 8GB EMERGE_DEFAULT_OPTS

  • Quote

Post by n1ese » Mon Jun 13, 2022 10:48 pm

What would be good --jobs and --load-average settings be for EMERGE_DEFAULT_OPS on a Raspberry Pi4B with 8GB of RAM.

Today, I emerged x11-base/xorg-server and x11-terms/xterm. Two of the dependices called for two different versions of sys-devel/llvm and it emerged them both at the same time:

Code: Select all

>>> Emerging (66 of 75) sys-devel/llvm-13.0.1::gentoo
>>> Emerging (67 of 75) sys-devel/llvm-14.0.4::gentoo
It took over 8 hours to emerge both at the same time and I was really surprised it took so long. The entire time, my system was running with a load average over 8. Is compiling LLVM really this taxing? I'm also surprised two different versions were requested/needed.

My make.conf:

Code: Select all

MAKEOPTS="-j4"
EMERGE_DEFAULT_OPTS="--jobs 4 --load-average 3.7"
Last edited by n1ese on Mon Jun 13, 2022 11:27 pm, edited 1 time in total.
Top
Leonardo.b
Guru
Guru
Posts: 314
Joined: Sat Oct 10, 2020 9:24 pm

  • Quote

Post by Leonardo.b » Mon Jun 13, 2022 11:13 pm

In my opinion, you should not compile more packages in parallel.
Top
n1ese
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Sun Sep 29, 2019 3:25 pm

  • Quote

Post by n1ese » Tue Jun 14, 2022 12:37 am

Leonardo.b wrote:In my opinion, you should not compile more packages in parallel.
yeah, thinking a couple guides I read lead me astray.
Top
Hu
Administrator
Administrator
Posts: 24385
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Tue Jun 14, 2022 1:13 am

The typical advice I see is to allocate 2GB RAM per job. By that rule, you need 4 * 4 * 2GB = 32GB RAM on this device for your current settings.

To see why you need 2 versions of LLVM, we would need to see the output of emerge --tree --verbose before you installed them. You might be able to answer this now by checking emerge --pretend --verbose --depclean sys-devel/llvm. I would expect that emerge --ask --verbose x11-base/xorg-server x11-terms/xterm should have informed you that 2 LLVM versions were scheduled.
Top
n1ese
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Sun Sep 29, 2019 3:25 pm

  • Quote

Post by n1ese » Tue Jun 14, 2022 1:21 am

Hu wrote:To see why you need 2 versions of LLVM, we would need to see the output of emerge --tree --verbose before you installed them. You might be able to answer this now by checking emerge --pretend --verbose --depclean sys-devel/llvm. I would expect that emerge --ask --verbose x11-base/xorg-server x11-terms/xterm should have informed you that 2 LLVM versions were scheduled.

Code: Select all

ganymede ~ # emerge --pretend --verbose --depclean sys-devel/llvm

Calculating dependencies... done!
  sys-devel/llvm-13.0.1 pulled in by:
    media-libs/mesa-22.0.3 requires <sys-devel/llvm-14:=, <sys-devel/llvm-14:13/13=, sys-devel/llvm:13

  sys-devel/llvm-14.0.4 pulled in by:
    sys-devel/llvmgold-14 requires sys-devel/llvm:14[binutils-plugin]
Top
Hu
Administrator
Administrator
Posts: 24385
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Tue Jun 14, 2022 2:40 pm

That provides the immediate answer. llvmgold brought in the newer version. mesa brought in the older one. You could optionally add those to the command if you want to dig deeper and understand why each of them are needed.
Top
n1ese
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Sun Sep 29, 2019 3:25 pm

  • Quote

Post by n1ese » Tue Jun 14, 2022 3:40 pm

Hu wrote:That provides the immediate answer. llvmgold brought in the newer version. mesa brought in the older one. You could optionally add those to the command if you want to dig deeper and understand why each of them are needed.
Yeah, I'm starting to become more confused.

Code: Select all

emerge --pretend --verbose --depclean sys-devel/llvmgold

Calculating dependencies... done!
  sys-devel/llvmgold-14 pulled in by:
    sys-devel/llvm-13.0.1 requires >=sys-devel/llvmgold-13
    sys-devel/llvm-14.0.4 requires >=sys-devel/llvmgold-14
Top
Hu
Administrator
Administrator
Posts: 24385
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Tue Jun 14, 2022 4:15 pm

Mesa caused you to need llvm-13. llvm-13 needed any recent llvmgold. The most recent llvmgold is llvmgold-14, which is acceptable to llvm, so it was installed. Once you needed llvmgold-14, then you also needed llvm-14.
Top
n1ese
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Sun Sep 29, 2019 3:25 pm

  • Quote

Post by n1ese » Tue Jun 14, 2022 4:40 pm

Hu wrote:Mesa caused you to need llvm-13. llvm-13 needed any recent llvmgold. The most recent llvmgold is llvmgold-14, which is acceptable to llvm, so it was installed. Once you needed llvmgold-14, then you also needed llvm-14.
Gotcha, makes sense now, thanks.
Top
Post Reply
  • Print view

9 posts • Page 1 of 1

Return to “Gentoo on ARM”

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

 

 

magic