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

Reply via email to