Remco van 't Veer <[email protected]> writes:

> Hi,
>
> A machine with plenty cores (16 according to nproc) but little RAM
> (16Gb) often gets OOM failures when building packages (especially rust
> based) because 16 memory hungry compilers are run in parallel.  I can
> workaround this by passing "-c 4" to guix build but tend to forget only
> to find out an hour into a build that it gets killed by OOM.
>
> Is there a way to make the maximum number of cores for a guix build
> permanent by setting some environment variable or maybe
> guix-service-type?
>
> Remco

Hi,

Look at "2.3 Invoking 'guix-daemon'", "2.2.1 Build Environment Setup" and
guix-configuration in "11.10.1 Base Services" in the manual.



Reply via email to