Skip to content

Questions about mergerfs' garbage collection #1401

Answered by trapexit
STPKITT asked this question in Q&A
Discussion options

You must be logged in to vote
  1. Because it needs to manage it's memory. Every file, every node in the filesystem, requires allocation of memory. If you scan the whole filesystem and then do nothing it would still have all that memory allocated. For low end system that would be wasteful. Before adding domain specific allocators memory fragmentation would lead to memory bloat over time and kill low end systems.
  2. It's extremely fast. Certainly not seconds. If it did you'd notice because the whole system would freeze.
  3. It would bloat memory usage as with any gc behavior.
  4. No
  5. No

4 and 5 are no because it should have no impact on the system. It's extremely simple code and doesn't impact the underlying filesystems at all. You c…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by STPKITT
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants