Op 12-04-2021 om 10:13 schreef Robert [email protected]:
Hi,

My comments are in-line.

On 11/04/2021 18:23, Gmane Admin wrote:
My build machine has 8 cores + HT so bitbake enthusiastically assumes 16. However I have (only?) 16GB of RAM (+24GB swap space).

16GB of RAM has always been more then enough with 4 core + HT, but now building certain recipes (nodejs, but rust will probably do it as well) eats up more memory then there actually is RAM causing excessive swapping.

The RAM usage depends heavily on what you are building ;) - It could be some crazy C++ stuff ;)

Yeah, C++. But apearently it's during the LTO phase where it eat my memory.

Is Linux your build host?

Yup.

Then you can use cgroups to limit resources like memory.

So then it would just fail the build?

Do you use a build container? It uses cgroups underneath.

Nope.

e.g. docker:

https://docs.docker.com/config/containers/resource_constraints/

Regards,

Robert



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53086): https://lists.yoctoproject.org/g/yocto/message/53086
Mute This Topic: https://lists.yoctoproject.org/mt/82015730/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to