[pbs-devel] [PATCH proxmox-backup 0/2] rewarm local datastore chunk cache on datastore instantiation
Christian Ebner
c.ebner at proxmox.com
Fri Aug 1 16:10:22 CEST 2025
This patches implement the logic to reclaim previously cached chunks which
have been lost from the in-memory chunk digest list since:
- the datastore is removed for the lookup cache when a corresponding
maintenance mode is set.
- the services are restarted.
- the system is rebooted.
The chunks are re-inserted by iterating over the local datastore cache
chunk store, detecting chunks which have an atime older than the start
of the reclaim task and have a size > 0 (have not been previously evicted).
Since they offer now usable storage space, increment the cache capacity
for each of the found chunks.
proxmox-backup:
Christian Ebner (2):
tools: lru cache: allow to dynamically increase the cache capacity
datastore: reinsert unused chunks into cache during instantiation
pbs-datastore/src/chunk_store.rs | 65 +++++++++++++++++++
pbs-datastore/src/datastore.rs | 18 ++++-
.../src/local_datastore_lru_cache.rs | 19 ++++++
pbs-tools/src/async_lru_cache.rs | 8 +++
pbs-tools/src/lru_cache.rs | 6 ++
5 files changed, 114 insertions(+), 2 deletions(-)
Summary over all repositories:
5 files changed, 114 insertions(+), 2 deletions(-)
--
Generated by git-murpp 0.8.1
More information about the pbs-devel
mailing list