all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Christian Ebner <c.ebner@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH proxmox-backup 0/2] rewarm local datastore chunk cache on datastore instantiation
Date: Fri,  1 Aug 2025 16:10:22 +0200	[thread overview]
Message-ID: <20250801141024.626365-1-c.ebner@proxmox.com> (raw)

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


             reply	other threads:[~2025-08-01 14:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-01 14:10 Christian Ebner [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250801141024.626365-1-c.ebner@proxmox.com \
    --to=c.ebner@proxmox.com \
    --cc=pbs-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal