From: Aaron Lauterer <a.lauterer@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH proxmox-backup 1/3] docs: fix #2851 Add note about GC grace period
Date: Tue, 21 Jul 2020 11:54:35 +0200 [thread overview]
Message-ID: <20200721095437.10316-1-a.lauterer@proxmox.com> (raw)
Adding a note about the garbage collection's grace period due to the
default atime behavior should help to avoid confusion as to why space is
not freed immediately.
Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
---
I hope I got the technical details right.
I did put the section in a note for now but I am not sure if it is the
best way to present that information.
docs/administration-guide.rst | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/docs/administration-guide.rst b/docs/administration-guide.rst
index 254d36e1..a0ac8c79 100644
--- a/docs/administration-guide.rst
+++ b/docs/administration-guide.rst
@@ -962,6 +962,17 @@ unused data blocks are removed.
depending on the number of chunks and the speed of the underlying
disks.
+.. note:: The garbage collection will only remove chunks that haven't been used
+ for at least one day (exactly 24h 5m). This grace period is necessary because
+ chunks in use are marked by touching the chunk which updates the ``atime``
+ (access time) property. Filesystems are mounted with the ``relatime`` option
+ by default. This results in a better performance by only updating the
+ ``atime`` property if the last access has been at least 24 hours ago. The
+ downside is, that touching a chunk within these 24 hours will not update its
+ ``atime`` property.
+
+ If there are chunks in the grace period, it will be logged at the end of the
+ garbage collection run as *Pending removals*.
.. code-block:: console
--
2.20.1
next reply other threads:[~2020-07-21 9:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-21 9:54 Aaron Lauterer [this message]
2020-07-21 9:54 ` [pbs-devel] [PATCH proxmox-backup 2/3] backup: Fix typos and grammar Aaron Lauterer
2020-07-21 9:54 ` [pbs-devel] [PATCH proxmox-backup 3/3] chunk_store: Fix typo in bail message Aaron Lauterer
2020-07-21 11:01 ` [pbs-devel] applied-series: [PATCH proxmox-backup 1/3] docs: fix #2851 Add note about GC grace period Thomas Lamprecht
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=20200721095437.10316-1-a.lauterer@proxmox.com \
--to=a.lauterer@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox