public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] Further improvement to GC
@ 2025-06-08 14:25 Kamil Trzciński
  2025-06-10  7:20 ` Christian Ebner
  0 siblings, 1 reply; 3+ messages in thread
From: Kamil Trzciński @ 2025-06-08 14:25 UTC (permalink / raw)
  To: pve-devel

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-06-11  6:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-08 14:25 [pve-devel] Further improvement to GC Kamil Trzciński
2025-06-10  7:20 ` Christian Ebner
2025-06-11  6:11   ` Kamil Trzciński

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal