From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id D6ADF1FF170 for ; Thu, 10 Jul 2025 09:36:19 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 25B0C1CB4B; Thu, 10 Jul 2025 09:37:04 +0200 (CEST) Message-ID: Date: Thu, 10 Jul 2025 09:36:30 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: Thomas Lamprecht , Proxmox Backup Server development discussion References: <20250708170114.1556057-1-c.ebner@proxmox.com> <20250708170114.1556057-31-c.ebner@proxmox.com> Content-Language: en-US, de-DE From: Christian Ebner In-Reply-To: X-SPAM-LEVEL: Spam detection results: 0 AWL 0.042 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 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_RPBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_SAFE_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: Re: [pbs-devel] [PATCH proxmox-backup v6 21/37] datastore: implement garbage collection for s3 backend 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: , Reply-To: Proxmox Backup Server development discussion Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: pbs-devel-bounces@lists.proxmox.com Sender: "pbs-devel" On 7/10/25 08:59, Thomas Lamprecht wrote: > I'm reading through this in not a very orderly fashion, so probably > won't be a very structured review, but some comments here and there. Okay thanks, all feedback and additional pair of eyes is very welcome! > Am 08.07.25 um 19:00 schrieb Christian Ebner: >> Implements the garbage collection for datastore's backed by an s3 >> object store. >> Take advantage of the local datastore by placing marker files in the >> chunk store during phase 1 of the garbage collection, updating their >> atime if already present. By this expensive api calls can be avoided >> to update the object metadata (only possible via a copy object >> operation). > > The last sentence would be IMO slightly easier to understand: > > This allows us to avoid making expensive API calls to update object > metadata, which would only be possible via a copy object operation. agreed, will incorporate this >> >> The phase 2 is implemented by fetching a list of all the chunks via >> the ListObjectsV2 api call, filtered by the chunk folder prefix. >> This operation has to be performed in patches of 1000 objects, given > > s/patches/batches/ will fix > >> by the api's response limits. >> For each object key, lookup the marker file and decide based on the >> marker existence and it's atime if the chunk object needs to be >> removed. Deletion happens via the delete objects operation, allowing >> to delete multiple chunks by a single request. >> >> This allows to efficiently lookup chunks which are not in use >> anymore while being performant and cost effective. > > Do you got some rough numbers perchance? E.g., something like "a > datastore with X indexes, Y acutal data and Z deduplication factor > is garbage collect in T time on:" and then the time numbers for > e.g. ceph RGW backed S3, AWS/Cloudlflare S3/R2 and file system, > just to get some idea of the ballpark we're in, and can also help > to have such numbers as baseline for potential future optimization > experiments. I did not actively compare the original version, which did the last modified timestamp updates for each object, which was of course orders of magnitude slower because of all the copy object API requests. On it to generate the baseline figures for the different S3 providers as compared to a local datastore, and include this here as well. _______________________________________________ pbs-devel mailing list pbs-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel