On 2022-08-27 15:20, Alexander Kanavin wrote:
On Sat, 27 Aug 2022 at 21:15, Edwin Török <ed...@etorok.net> wrote:
If XZ always uses 50% of available memory then adding more RAM won't
help though. The only safe value would be BB_NUMBER_OF_THREADS=1.
But does it? I wonder if reducing XZ_THREADS will actually reduce the
RAM consumption as well. If the problem was common, it would be
reported a lot more, and yet it's not. So I'd suggest you run
experiments with XZ_THREADS first.

Alex

Edwin, Alex,

We have a shiny new hammer called PSI  or /proc/pressure (1) and I think that everyone should use it! ;-)

We should both try your build to see if it helps at this early stage but 3x builds on a 64 GB machine does seem to be too much.

If not, maybe we could make a decision about the % of memory / XZ_THREADS more dynamically based on available memory or even by making xz be more aware of limited available RAM somehow.

../Randy


1) https://lore.kernel.org/bitbake-devel/?q=%2Fproc%2Fpressure






--
# Randy MacLeod
# Wind River Linux

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#169975): 
https://lists.openembedded.org/g/openembedded-core/message/169975
Mute This Topic: https://lists.openembedded.org/mt/93294351/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to