Open basvandijk opened 5 years ago
I marked this as stale due to inactivity. → More info
I closed this issue due to inactivity. → More info
Lix has an interesting fix for this issue, using libproc
to workaround this issue: https://gerrit.lix.systems/c/lix/+/723.
Curious if this patch could be backported to Nix.
nix-collect-garbage
useslsof
on OS X to find all opened files by all processes in order to not collect opened files: https://github.com/NixOS/nix/blob/41a52466854ab3a7d4adedc3777c0b0585ef79fe/src/libstore/gc.cc#L450Unfortunately
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.