public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox-backup 0/2] rewarm local datastore chunk cache on datastore instantiation
@ 2025-08-01 14:10 Christian Ebner
  2025-08-01 14:10 ` [pbs-devel] [PATCH proxmox-backup 1/2] tools: lru cache: allow to dynamically increase the cache capacity Christian Ebner
  2025-08-01 14:10 ` [pbs-devel] [PATCH proxmox-backup 2/2] datastore: reinsert unused chunks into cache during instantiation Christian Ebner
  0 siblings, 2 replies; 5+ messages in thread
From: Christian Ebner @ 2025-08-01 14:10 UTC (permalink / raw)
  To: pbs-devel

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


_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel


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

end of thread, other threads:[~2025-08-05  6:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-01 14:10 [pbs-devel] [PATCH proxmox-backup 0/2] rewarm local datastore chunk cache on datastore instantiation Christian Ebner
2025-08-01 14:10 ` [pbs-devel] [PATCH proxmox-backup 1/2] tools: lru cache: allow to dynamically increase the cache capacity Christian Ebner
2025-08-01 14:10 ` [pbs-devel] [PATCH proxmox-backup 2/2] datastore: reinsert unused chunks into cache during instantiation Christian Ebner
2025-08-04 20:42   ` Thomas Lamprecht
2025-08-05  6:15     ` Christian Ebner

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