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 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel