Mic92 / Mic92/nixos-shell

Slow nix store garbage collection

Open
#166 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Nix
Stars
916
Forks
48
Avg merge
19h 44m
Merged PRs (30d)
1

Description

Is there some way to make garbage collection faster for the guest vm?

My understanding is it's going through my entire /nix/store from the host, or likely doing a ton of IO via the 9p mount which is very slow.

I've tried various scripts that look at /nix/.rw-store/ but not having much luck.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing garbage collection in the guest VM while observing access to /nix/store and the 9p mount. Compare that behavior with the attempted scripts targeting /nix/.rw-store/. Done means identifying a supported way to make guest garbage collection faster without the current slow host-side or 9p I/O path.

Written by the indexing model from the issue text.

Assessment

Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
40/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.