nixpkgs/pkgs/development
Graham Christensen c2b898da76 treewide: drop -l$NIX_BUILD_CORES
Passing `-l$NIX_BUILD_CORES` improperly limits the overall system load.

For a build machine which is configured to run `$B` builds where each
build gets `total cores / B` cores (`$C`), passing `-l $C` to make will
improperly limit the load to `$C` instead of `$B * $C`.

This effect becomes quite pronounced on machines with 80 cores, with
40 simultaneous builds and a cores limit of 2. On a machine with this
configuration, Nix will run 40 builds and make will limit the overall
system load to approximately 2. A build machine with this many cores
can happily run with a load approaching 80.

A non-solution is to oversubscribe the machine, by picking a larger
`$C`. However, there is no way to divide the number of cores in a way
which fairly subdivides the available cores when `$B` is greater than
1.

There has been exploration of passing a jobserver in to the sandbox,
or sharing a jobserver between all the builds. This is one option, but
relatively complicated and only supports make. Lots of other software
uses its own implementation of `-j` and doesn't support either `-l` or
the Make jobserver.

For the case of an interactive user machine, the user should limit
overall system load using `$B`, `$C`, and optionally systemd's
cpu/network/io limiting features.

Making this change should significantly improve the utilization of our
build farm, and improve the throughput of Hydra.
2022-09-22 16:01:23 -04:00
..
androidndk-pkgs
beam-modules
bower-modules/generic
chez-modules
compilers Revert "rustc: build with jemalloc" 2022-09-22 07:11:33 -04:00
coq-modules coqPackages.QuickChick: 1.6.2 → 1.6.4 2022-09-20 04:26:37 +02:00
dhall-modules
dotnet-modules
em-modules/generic
embedded treewide: drop -l$NIX_BUILD_CORES 2022-09-22 16:01:23 -04:00
gnuradio-modules
guile-modules
haskell-modules haskellPackages: mark builds failing on hydra as broken 2022-09-21 18:13:33 +02:00
idris-modules
interpreters Merge master into staging-next 2022-09-22 00:03:22 +00:00
java-modules
libraries treewide: drop -l$NIX_BUILD_CORES 2022-09-22 16:01:23 -04:00
lisp-modules
lisp-modules-new
lua-modules
misc
mobile
nim-packages
node-packages nodePackages.@withgraphite/graphite-cli: init at 0.20.10 2022-09-19 11:28:48 -07:00
ocaml-modules ocamlPackages.mimic: 0.0.4 -> 0.0.5 2022-09-21 22:22:26 +02:00
octave-modules
perl-modules
pharo
php-packages
python-modules treewide: drop -l$NIX_BUILD_CORES 2022-09-22 16:01:23 -04:00
python2-modules
quickemu
r-modules
ruby-modules
scheme-modules/scheme-bytestructures
tools treewide: drop -l$NIX_BUILD_CORES 2022-09-22 16:01:23 -04:00
web