[Dev] Is it possible to compile multiple packages at the same time with libremakepkg?

Megver83 megver83 at openmailbox.org
Tue May 23 16:20:00 GMT 2017

Isaac David:
> yes, I can attest that compiling that many kernels every few weeks is
> pure madness and bad for your electricity bills :)
> do you have the -j MAKEFLAG equal the number of cores in your
> /etc/makepkg.conf?

Yes, I do.

$ cat /etc/makepkg.conf | grep MAKEFLAG

I've two cores :P

> if so, I don't think you would gain much from
> having many packages compile at the same time, given that all of your
> cores are already in use for the longest time. 

But it is possible?

> I can even imagine it
> resulting in increased total compilation time because of extra amounts
> of context switching, cache misses, who knows, don't take my word for
> it.
> as for ARM, we should investigate using a full cross-toolchain (or a
> partial, non-linking cross-compiler on x86 + distcc running on a native
> system like ALARM does[^1]) as a way to make the most of faster x86
> hardware. there are caveats nonetheless compared to either
> libretools+qemu or native libretools on ARM. namely, no support for it
> in libretools and a different assortment of failing packages. assuming
> there's enough RAM to finish the compilation, native is the best when
> it comes to the amount of packages that can be successfully
> compiled. the same may be true of a native farm + distcc, but I have
> never tried such a thing.
> [^1]: https://archlinuxarm.org/wiki/Distcc_Cross-Compiling
>     ^ I used to follow this method before moving to qemu (for the
>     extra packages that wouldn't compile)

GPG: 0x227CA7C556B2BA78

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.parabola.nu/pipermail/dev/attachments/20170523/5d0ae47f/attachment.sig>

More information about the Dev mailing list