Conversation
|
|
nixosTests.bpf is still happy. |
|
Oh I see, bcc links with clang/llvm static libraries hmm... Technically I'd rather go the other way around: keep the large closure but set ENABLE_LLVM_SHARED=ON so the code isn't duplicated, which would save space on systems that pull in clang anyway (albeit much less impressive than your ~1.7G to ~300M (398.8MB locally) -- it only reduces bcc itself from 160M to 18M), but I can see your point and some "production" environments could want bcc without the huge llvm libs... Would it perhaps make sense to do both? e.g. make bcc shared but add a new bcc-staticllvm subpackage (through an option to the bcc package.nix) that links statically as currently with your remove-references-to added? Either way if we keep remove-references-to I'd rather add a check that llvm is statically linked (e.g. ldd |
|
I don't want to split into shared/static. Shared would be better, (with |
bfe0e82 to
2d7031a
Compare
|
added disallowedReferences |
Right, perhaps llvm closures can be reworked somehow but that does sound like more work... I think at this point prioritizing this closure size or prioritizing the whole store size with llvm installed is more of a project decision than a maintainer decision, so happy to defer to whoever knows about it -- would you be kind enough to bring it up on discourse or somewhere it can get attention perhaps? Ideally I'd see something like:
(BTW moving the .a out would only reduce the closure size by about 350MB (so 1.7GB -> 1.55GB from dynamic linking bcc -> 1.2GB from not keeping llvm .a around), I'm not sure this is good enough for you)
Thanks |
|
Sadly I don't have the time to try to rework anything in the LLVM package set at the moment. There's a discussion somewhere in matrix about trying to fix the .a files not to get pulled in for LLVM, not going to try to permalink to it because I can never get matrix search to work. |
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/7569 |
Reduces closure from ~1.7G to ~300M
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.