[OE-core] [PATCH v3 3/3] image_types.bbclass: Set memory usage limit and CPU threads for xz

Khem Raj raj.khem at gmail.com
Fri Feb 15 19:58:09 UTC 2019


On Fri, Feb 15, 2019 at 5:44 AM Otavio Salvador
<otavio.salvador at ossystems.com.br> wrote:
>
> On Tue, Feb 12, 2019 at 3:48 AM Khem Raj <raj.khem at gmail.com> wrote:
> >
> > when building with opkg backend and huge packages e.g. chromium/llvm all
> > going in parallel, memory pressure causes xz to catapult with
> >
> > do_package_write_ipk: Failed to create package, opkg-build failed with: xz: (stdin): Cannot allocate memory
> >
> > since there are many tasks going on in parallel, xz adds to memory pressure
> > and it wants it all, put an upper limit for memory xz can use
> >
> > We add a variable XZ_MAXRAM with 30% of RAM limit and can be customized
> > if builders have more memory one can set it like
>
> The commit log refers to the wrong variable name, it seems.
>

I think thats a good point. but we should submit right names for documentation

>
> --
> Otavio Salvador                             O.S. Systems
> http://www.ossystems.com.br        http://code.ossystems.com.br
> Mobile: +55 (53) 9 9981-7854          Mobile: +1 (347) 903-9750


More information about the Openembedded-core mailing list