We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nix-collect-garbage uses lsof on OS X to find all opened files by all processes in order to not collect opened files:
nix-collect-garbage
lsof
nix/src/libstore/gc.cc
Line 450 in 41a5246
Unfortunately lsof is really slow on OS X. On my Macbook Pro lsof takes more than 6 seconds:
time lsof -n -w -F n > /dev/null lsof -n -w -F n > /dev/null 0.24s user 6.01s system 99% cpu 6.252 total
This actually caused the gc-concurrent.sh test to fail because nix-collect-garbage takes longer to run than the nix build started earlier.
The text was updated successfully, but these errors were encountered:
Disable findRuntimeRoots on darwin when running tests because lsof is…
ee1e313
… slow See: NixOS#3011
I marked this as stale due to inactivity. → More info
Sorry, something went wrong.
I closed this issue due to inactivity. → More info
No branches or pull requests
nix-collect-garbage
useslsof
on OS X to find all opened files by all processes in order to not collect opened files:nix/src/libstore/gc.cc
Line 450 in 41a5246
Unfortunately
lsof
is really slow on OS X. On my Macbook Prolsof
takes more than 6 seconds:This actually caused the gc-concurrent.sh test to fail because
nix-collect-garbage
takes longer to run than the nix build started earlier.The text was updated successfully, but these errors were encountered: