Skip to content
New issue

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

Run periodic maintenance on the git-backed fetch cache #11444

Open
3 tasks
roberth opened this issue Sep 8, 2024 · 0 comments
Open
3 tasks

Run periodic maintenance on the git-backed fetch cache #11444

roberth opened this issue Sep 8, 2024 · 0 comments
Labels
feature Feature request or proposal fetching Networking with the outside (non-Nix) world, input locking

Comments

@roberth
Copy link
Member

roberth commented Sep 8, 2024

Is your feature request related to a problem? Please describe.

We're accessing the git cache through libgit2, whose functions perform specific tasks only.
The Git CLI on the other hand performs certain maintenance tasks, notably git gc on occassion (and/or in the background?)

Describe the solution you'd like

  • Build multi-pack index files (relevant since libgit2, GitRepo: Write (thin) packfiles #11330)
  • Re-pack the repo? A large number of tiny packfiles might perform worse; not sure. Does git gc do that?
  • Garbage collect (we could use refs to track the last use of trees that are accessed as the root of a source)

These processes could run in a background process while holding a lock (file based lock).

Describe alternatives you've considered

Amortize the work - just do it in the foreground every now and then.

Additional context

Priorities

Add 👍 to issues you find important.

@roberth roberth added feature Feature request or proposal fetching Networking with the outside (non-Nix) world, input locking labels Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request or proposal fetching Networking with the outside (non-Nix) world, input locking
Projects
None yet
Development

No branches or pull requests

1 participant