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
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/eccodes/versions.
These checks were done:
- built on NixOS
- Warning: no invocation of /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/bufr_compare_dir had a zero exit code or showed the expected version
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/codes_info passed the binary check.
- Warning: no invocation of /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/codes_count had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/codes_split_file had a zero exit code or showed the expected version
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/grib_histogram passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/grib_filter passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/grib_ls passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/grib_dump passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/grib_merge passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/grib2ppm passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/grib_set passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/grib_get passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/grib_get_data passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/grib_copy passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/grib_compare passed the binary check.
- Warning: no invocation of /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/codes_parser had a zero exit code or showed the expected version
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/grib_index_build passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/bufr_ls passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/bufr_dump passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/bufr_set passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/bufr_get passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/bufr_copy passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/bufr_compare passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/bufr_index_build passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/gts_get passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/gts_compare passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/gts_copy passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/gts_dump passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/gts_filter passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/gts_ls passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/metar_dump passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/metar_ls passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/metar_compare passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/metar_get passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/metar_filter passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/metar_copy passed the binary check.
- Warning: no invocation of /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/grib_count had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/bufr_count had a zero exit code or showed the expected version
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/grib_to_netcdf passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/codes_bufr_filter passed the binary check.
- Warning: no invocation of /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/tigge_check had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/tigge_name had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/tigge_accumulations had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/tigge_split had a zero exit code or showed the expected version
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/bufr_filter passed the binary check.
- 35 of 45 passed binary check by having a zero exit code.
- 33 of 45 passed binary check by having the new version present in output.
- found 2.8.0 with grep in /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0
- directory tree listing: https://gist.github.com/7edf806095f4a820d000f95893532dca
- du listing: https://gist.github.com/5742e612398104ad9b43d5604dd3c280
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/qpdf/versions.
These checks were done:
- built on NixOS
- /nix/store/razzvvhaim31v0qmv2f55y9w3659bdyy-qpdf-8.1.0/bin/fix-qdf passed the binary check.
- /nix/store/razzvvhaim31v0qmv2f55y9w3659bdyy-qpdf-8.1.0/bin/qpdf passed the binary check.
- /nix/store/razzvvhaim31v0qmv2f55y9w3659bdyy-qpdf-8.1.0/bin/zlib-flate passed the binary check.
- 3 of 3 passed binary check by having a zero exit code.
- 0 of 3 passed binary check by having the new version present in output.
- found 8.1.0 with grep in /nix/store/razzvvhaim31v0qmv2f55y9w3659bdyy-qpdf-8.1.0
- directory tree listing: https://gist.github.com/4bb6d8c7a59b4d3cfa1c78f0c45d9431
- du listing: https://gist.github.com/388a30c9e73f5667c8a8bb7a2740175e
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/flatpak/versions.
These checks were done:
- built on NixOS
- Warning: no invocation of /nix/store/2ig3b399yp3nlnhfyrv6yypyaf7x7rk3-flatpak-0.99.2/bin/flatpak-bisect had a zero exit code or showed the expected version
- /nix/store/2ig3b399yp3nlnhfyrv6yypyaf7x7rk3-flatpak-0.99.2/bin/flatpak-coredumpctl passed the binary check.
- /nix/store/2ig3b399yp3nlnhfyrv6yypyaf7x7rk3-flatpak-0.99.2/bin/.flatpak-wrapped passed the binary check.
- /nix/store/2ig3b399yp3nlnhfyrv6yypyaf7x7rk3-flatpak-0.99.2/bin/flatpak passed the binary check.
- 3 of 4 passed binary check by having a zero exit code.
- 2 of 4 passed binary check by having the new version present in output.
- found 0.99.2 with grep in /nix/store/2ig3b399yp3nlnhfyrv6yypyaf7x7rk3-flatpak-0.99.2
- directory tree listing: https://gist.github.com/4cd5330783ac4dc304e7ceba12395ba0
- du listing: https://gist.github.com/81060efb0965f7e05ba54655bce0f2ca
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/grib-api/versions.
These checks were done:
- built on NixOS
- Warning: no invocation of /nix/store/r53ihy5m6ckhm98bm7bnwdpdj59r7qs0-grib-api-1.27.0/bin/grib_keys had a zero exit code or showed the expected version
- /nix/store/r53ihy5m6ckhm98bm7bnwdpdj59r7qs0-grib-api-1.27.0/bin/grib_histogram passed the binary check.
- Warning: no invocation of /nix/store/r53ihy5m6ckhm98bm7bnwdpdj59r7qs0-grib-api-1.27.0/bin/grib_error had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/r53ihy5m6ckhm98bm7bnwdpdj59r7qs0-grib-api-1.27.0/bin/grib_add had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/r53ihy5m6ckhm98bm7bnwdpdj59r7qs0-grib-api-1.27.0/bin/big2gribex had a zero exit code or showed the expected version
- /nix/store/r53ihy5m6ckhm98bm7bnwdpdj59r7qs0-grib-api-1.27.0/bin/grib_debug passed the binary check.
- /nix/store/r53ihy5m6ckhm98bm7bnwdpdj59r7qs0-grib-api-1.27.0/bin/grib_info passed the binary check.
- /nix/store/r53ihy5m6ckhm98bm7bnwdpdj59r7qs0-grib-api-1.27.0/bin/grib_filter passed the binary check.
- /nix/store/r53ihy5m6ckhm98bm7bnwdpdj59r7qs0-grib-api-1.27.0/bin/grib_ls passed the binary check.
- /nix/store/r53ihy5m6ckhm98bm7bnwdpdj59r7qs0-grib-api-1.27.0/bin/grib_dump passed the binary check.
- /nix/store/r53ihy5m6ckhm98bm7bnwdpdj59r7qs0-grib-api-1.27.0/bin/grib2ppm passed the binary check.
- /nix/store/r53ihy5m6ckhm98bm7bnwdpdj59r7qs0-grib-api-1.27.0/bin/grib_set passed the binary check.
- /nix/store/r53ihy5m6ckhm98bm7bnwdpdj59r7qs0-grib-api-1.27.0/bin/grib_get passed the binary check.
- /nix/store/r53ihy5m6ckhm98bm7bnwdpdj59r7qs0-grib-api-1.27.0/bin/grib_get_data passed the binary check.
- /nix/store/r53ihy5m6ckhm98bm7bnwdpdj59r7qs0-grib-api-1.27.0/bin/grib_copy passed the binary check.
- Warning: no invocation of /nix/store/r53ihy5m6ckhm98bm7bnwdpdj59r7qs0-grib-api-1.27.0/bin/grib_repair had a zero exit code or showed the expected version
- /nix/store/r53ihy5m6ckhm98bm7bnwdpdj59r7qs0-grib-api-1.27.0/bin/grib_packing passed the binary check.
- Warning: no invocation of /nix/store/r53ihy5m6ckhm98bm7bnwdpdj59r7qs0-grib-api-1.27.0/bin/grib_cmp had a zero exit code or showed the expected version
- /nix/store/r53ihy5m6ckhm98bm7bnwdpdj59r7qs0-grib-api-1.27.0/bin/grib_convert passed the binary check.
- Warning: no invocation of /nix/store/r53ihy5m6ckhm98bm7bnwdpdj59r7qs0-grib-api-1.27.0/bin/grib_distance had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/r53ihy5m6ckhm98bm7bnwdpdj59r7qs0-grib-api-1.27.0/bin/grib_corruption_check had a zero exit code or showed the expected version
- /nix/store/r53ihy5m6ckhm98bm7bnwdpdj59r7qs0-grib-api-1.27.0/bin/grib_compare passed the binary check.
- Warning: no invocation of /nix/store/r53ihy5m6ckhm98bm7bnwdpdj59r7qs0-grib-api-1.27.0/bin/grib_parser had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/r53ihy5m6ckhm98bm7bnwdpdj59r7qs0-grib-api-1.27.0/bin/grib_count had a zero exit code or showed the expected version
- /nix/store/r53ihy5m6ckhm98bm7bnwdpdj59r7qs0-grib-api-1.27.0/bin/grib_index_build passed the binary check.
- Warning: no invocation of /nix/store/r53ihy5m6ckhm98bm7bnwdpdj59r7qs0-grib-api-1.27.0/bin/gg_sub_area_check had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/r53ihy5m6ckhm98bm7bnwdpdj59r7qs0-grib-api-1.27.0/bin/grib_moments had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/r53ihy5m6ckhm98bm7bnwdpdj59r7qs0-grib-api-1.27.0/bin/grib_to_json had a zero exit code or showed the expected version
- /nix/store/r53ihy5m6ckhm98bm7bnwdpdj59r7qs0-grib-api-1.27.0/bin/grib_to_netcdf passed the binary check.
- /nix/store/r53ihy5m6ckhm98bm7bnwdpdj59r7qs0-grib-api-1.27.0/bin/grib_list_keys passed the binary check.
- Warning: no invocation of /nix/store/r53ihy5m6ckhm98bm7bnwdpdj59r7qs0-grib-api-1.27.0/bin/tigge_check had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/r53ihy5m6ckhm98bm7bnwdpdj59r7qs0-grib-api-1.27.0/bin/tigge_name had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/r53ihy5m6ckhm98bm7bnwdpdj59r7qs0-grib-api-1.27.0/bin/tigge_accumulations had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/r53ihy5m6ckhm98bm7bnwdpdj59r7qs0-grib-api-1.27.0/bin/tigge_split had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/r53ihy5m6ckhm98bm7bnwdpdj59r7qs0-grib-api-1.27.0/bin/grib1to2 had a zero exit code or showed the expected version
- 16 of 35 passed binary check by having a zero exit code.
- 12 of 35 passed binary check by having the new version present in output.
- found 1.27.0 with grep in /nix/store/r53ihy5m6ckhm98bm7bnwdpdj59r7qs0-grib-api-1.27.0
- directory tree listing: https://gist.github.com/e6dee35a40cc23e8f92ab31e61d97635
- du listing: https://gist.github.com/09b91902bb419c1eb0f13bbc8e6a9ac0
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/libnfs/versions.
These checks were done:
- built on NixOS
- Warning: no invocation of /nix/store/rzhnqdk6w2pmkg770dp4d4b5dfhg6dxc-libnfs-3.0.0/bin/nfs-cat had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/rzhnqdk6w2pmkg770dp4d4b5dfhg6dxc-libnfs-3.0.0/bin/nfs-ls had a zero exit code or showed the expected version
- /nix/store/rzhnqdk6w2pmkg770dp4d4b5dfhg6dxc-libnfs-3.0.0/bin/nfs-cp passed the binary check.
- 1 of 3 passed binary check by having a zero exit code.
- 0 of 3 passed binary check by having the new version present in output.
- found 3.0.0 with grep in /nix/store/rzhnqdk6w2pmkg770dp4d4b5dfhg6dxc-libnfs-3.0.0
- directory tree listing: https://gist.github.com/41f09d1c597fdac38e45fb2ab6bec655
- du listing: https://gist.github.com/00ddd65dc42da40cbedb9ae1fe041f73
There doesn't seem to be a --without-python flag and since the system
framework is always available the build tries to enable python support
while we have it disabled by default and explicitly don't pass in the
python headers.