From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 614889235A for ; Fri, 5 Apr 2024 15:06:47 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 4224813BCF for ; Fri, 5 Apr 2024 15:06:17 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Fri, 5 Apr 2024 15:06:13 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 53024464B5 for ; Fri, 5 Apr 2024 15:06:13 +0200 (CEST) From: Hannes Duerr To: pbs-devel@lists.proxmox.com Date: Fri, 5 Apr 2024 15:05:43 +0200 Message-Id: <20240405130543.259220-4-h.duerr@proxmox.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240405130543.259220-1-h.duerr@proxmox.com> References: <20240405130543.259220-1-h.duerr@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.020 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record X-Mailman-Approved-At: Fri, 05 Apr 2024 15:49:57 +0200 Subject: [pbs-devel] [PATCH proxmox-backup v2 3/3] docs: add garbage collection timing example X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Apr 2024 13:06:47 -0000 To make the garbage collection process easier to understand, we add a timing example with a graphic. Signed-off-by: Hannes Duerr --- docs/images/garbage-collection-timing.svg | 2513 +++++++++++++++++++++ docs/maintenance.rst | 25 + 2 files changed, 2538 insertions(+) create mode 100644 docs/images/garbage-collection-timing.svg diff --git a/docs/images/garbage-collection-timing.svg b/docs/images/garbage-collection-timing.svg new file mode 100644 index 00000000..8108ee23 --- /dev/null +++ b/docs/images/garbage-collection-timing.svg @@ -0,0 +1,2513 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + t0 + t1 + t2 + t3 + tcutoff + + + + + + + + C + 1 + + + + + + C + 4 + + + + + + C + 7 + + + + + + + + C + 8 + + + + + + C + 5 + + + + + + C + 2 + + + + + + + + C + 3 + + + + + + C + 9 + + + + + + C + 6 + + + + + + + + + + C + 1 + + + + + + C + 4 + + + + + + C + 7 + + + + + + + + C + 2 + + + + + + C + 5 + + + + + + C + 8 + + + + + + + + C + 3 + + + + + + C + 6 + + + + + + C + 9 + + + + + + + + + + C + 1 + + + + + + C + 4 + + + + + + C + 7 + + + + + + + + C + 2 + + + + + + C + 5 + + + + + + C + 8 + + + + + + + + C + 3 + + + + + + C + 6 + + + + + + C + 9 + + + + + + + + + + C + 1 + + + + + + C + 4 + + + + + + C + 7 + + + + + + + + C + 2 + + + + + + C + 5 + + + + + + C + 8 + + + + + + + + C + 3 + + + + + + C + 6 + + + + + + C + 9 + + + + + + used chunk (atime newer tcutoff) + unused chunk (atime newer tcutoff) + + + + + + + pending + deleted + + + + + + + used chunk (atime older tcutoff) + unused chunk (atime older tcutoff) + + + + + + + + + diff --git a/docs/maintenance.rst b/docs/maintenance.rst index e25c8f19..a23e5c21 100644 --- a/docs/maintenance.rst +++ b/docs/maintenance.rst @@ -233,6 +233,31 @@ by the GC as it cannot be certain whether they are still needed. which is 24 hours by default. +Timing Example +^^^^^^^^^^^^^^ + +.. figure:: images/garbage-collection-timing.svg + :class: proxmox-svg + :alt: Garbage Collection timing + +t\ :sub:`0`\: +All chunks are part of the backup indices. Some chunks have a newer +``atime`` than the cut-off time, while others have not been accessed +for a while (e.g. because they were only created by a new backup). + +t\ :sub:`1`\: +A backup has been deleted and some chunks are no longer used + +t\ :sub:`2`\: +The first phase of the GC begins and the ``atime`` of the chunks that +are still being used by a backup are updated + +t\ :sub:`3`\: +The second phase of the GC begins. Chunks that have not been used and +whose ``atime`` is older than the cut-off time are deleted. Chunks that +have not been used but whose ``atime`` is newer than the cut-off time +are not yet deleted, but are marked as pending as a precaution. + Manually Starting GC ^^^^^^^^^^^^^^^^^^^^ -- 2.39.2