[pbs-devel] [PATCH v2 proxmox-backup 0/4] add GC cache stats and fix disabled state
Christian Ebner
c.ebner at proxmox.com
Mon May 19 07:55:14 CEST 2025
Allows better fine-tuning of the garbage collection cache capacity by
providing the hit and miss count, as well as the hit ratio as output
to the garbage collection task log.
Further, fixes an issue with the cache not being disabled in case the
cache capacity was explicitly set to 0, by bypassing it altogether for
that case.
Changes since version 1 (thanks Lukas for feedback):
- Also display the cache hit ratio
- Fix the cache not being disabled when the capacity is set to 0,
discovered while investigating the hit ratio for different
capacities.
proxmox:
Christian Ebner (1):
pbs api types: extend garbage collection status by cache stats
pbs-api-types/src/datastore.rs | 4 ++++
1 file changed, 4 insertions(+)
proxmox-backup:
Christian Ebner (3):
tools: lru cache: document limitations for cache capacity
garbage collection: bypass cache if gc-cache-capacity is 0
garbage collection: track chunk cache stats and show in task log
pbs-datastore/src/datastore.rs | 25 +++++++++++++++++++++----
pbs-tools/src/lru_cache.rs | 2 ++
2 files changed, 23 insertions(+), 4 deletions(-)
--
2.39.5
More information about the pbs-devel
mailing list