[pve-devel] Further improvement to GC
Kamil Trzciński
ayufan at ayufan.eu
Sun Jun 8 16:25:38 CEST 2025
Thanks for introducing LRU Cache.
I have another suggestion that we further the sweep phase could be improved:
1. The sweep_unused_chunks could use LRU cache to avoid lstatat if
object is found in cache.
The lstatat would only be required for potential objects that might
have been added while running GC cycle, or that might have been
evicted from LRU cache.
For big enough LRU caches and the fact that only small amount of
objects are usually removed this should make the GC almost in-memory.
2. The process could add a warning that LRU cache is too small, and
propose the value big enough to avoid cache eviction based on number
of chunks observed.
Kamil
More information about the pve-devel
mailing list