nixpkgs-suyu/pkgs/development
Vladimír Čunát 1bdb138710
nix: use boehmgc with enableLargeConfig = true
Fixes #43015 for me and hopefully also similar issues.

== Resource consumption ==

TL;DR: no change for small-memory cases, less CPU for large-memory cases.

I assume almost all of the large memory usage is just the expression
evaluation and managed by the GC, so I used just `nix-env -q...` to test.
Old and new lines for each command follow.  I tried to run each several
times, but the values were very stable (<1% difference on re-runs),
so only one line for each command-version pair is provided.

$ time nix-env -f . -qaP --description -A nix >/dev/null
- 0.06user 0.01system 0:00.07elapsed 101%CPU (0avgtext+0avgdata 29036maxresident)k
+ 0.06user 0.01system 0:00.07elapsed 102%CPU (0avgtext+0avgdata 29864maxresident)k

$ time nix-env -f . -qaP --description >/dev/null
- 6.45user 0.36system 0:06.82elapsed  99%CPU (0avgtext+0avgdata 1021024maxresident)k
+ 6.23user 0.33system 0:06.57elapsed 100%CPU (0avgtext+0avgdata  938408maxresident)k

$ time nix-env -f . --show-trace -qa --drv-path --system --meta --xml 2>&1 >/dev/null
- 56.35user 0.96system 0:31.03elapsed 184%CPU (0avgtext+0avgdata 3207708maxresident)k
+ 44.80user 0.91system 0:26.12elapsed 175%CPU (0avgtext+0avgdata 3192696maxresident)k

$ time ./result-nix-large/bin/nix-instantiate --dry-run --eval --strict \
    --show-trace ./maintainers/scripts/eval-release.nix > /dev/null
- Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS
- Command terminated by signal 6
- 175.18user 2.68system 1:17.42elapsed 229%CPU (0avgtext+0avgdata 8468440maxresident)k
+ 178.48user 2.78system 1:15.11elapsed 241%CPU (0avgtext+0avgdata 8460572maxresident)k
2018-07-06 13:03:45 +02:00
..
arduino
beam-modules
bower-modules/generic
compilers kotlin: 1.2.50 -> 1.2.51 2018-07-03 09:18:01 -04:00
coq-modules
dotnet-modules/patches
em-modules/generic
go-modules
guile-modules guile-reader: init at 0.6.2 2018-06-27 15:23:20 -03:00
haskell-modules Revert "haskell generic-builder: Use strictDeps always" 2018-07-04 13:18:21 +02:00
idris-modules idris: Clean up wrapper 2018-07-02 02:35:46 +02:00
interpreters gauche: 0.9.5 -> 0.9.6 2018-07-04 00:28:50 +09:00
java-modules
libraries nix: use boehmgc with enableLargeConfig = true 2018-07-06 13:03:45 +02:00
lisp-modules
lua-modules
misc treewide: http -> https sources (#42676) 2018-06-28 20:43:35 +02:00
mobile treewide: http -> https sources (#42676) 2018-06-28 20:43:35 +02:00
node-packages nodePackages: meguca: use node2nix 1.6.0 2018-06-30 19:58:14 -05:00
ocaml-modules ocamlPackages.lambdaTerm: remove spurious dependency to camlp4 2018-06-28 07:16:49 +00:00
perl-modules
pharo
pure-modules
python-modules pythonPackages.python-prctl: init at 1.7 (#42353) 2018-07-04 11:54:00 +00:00
r-modules rPackages.rhdf5: fix installation 2018-07-02 18:51:18 +02:00
ruby-modules Adding config for the tiny_tds gem (#42406) 2018-06-27 11:56:18 +01:00
tools Merge pull request #42965 from dtzWill/update/boomerang-2018-07-03 2018-07-03 21:25:25 -05:00
web nodePackages: regenerate with node2nix 1.6.0 2018-06-28 23:26:44 +02:00