From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id BE37C1FF0E0 for ; Thu, 23 Jul 2026 21:16:06 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 5C99121493; Thu, 23 Jul 2026 21:16:06 +0200 (CEST) From: Thomas Lamprecht To: pbs-devel@lists.proxmox.com, Christian Ebner Subject: applied: [PATCH proxmox-backup v5 00/15] fix 7642: avoid expensive uid/gid lookups for lock- and config-files Date: Thu, 23 Jul 2026 21:13:41 +0200 Message-ID: <178483401008.1907934.753722046406516753.b4-ty@b4> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260723090815.206114-1-c.ebner@proxmox.com> References: <20260723090815.206114-1-c.ebner@proxmox.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1784834102738 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.082 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) KAM_LOTSOFHASH 0.25 Emails with lots of hash-like gibberish RCVD_IN_DNSWL_LOW -0.7 Sender listed at https://www.dnswl.org/, low trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: 45G4IDJ4U2A3FSF63QU5OCA4AGHBLDDN X-Message-ID-Hash: 45G4IDJ4U2A3FSF63QU5OCA4AGHBLDDN X-MailFrom: t.lamprecht@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox Backup Server development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Thu, 23 Jul 2026 11:08:00 +0200, Christian Ebner wrote: > As reported by a user in the community forum [0] and the thereof > resulting bugzilla entry [1], phase 2 of garbage collection currently > produces avoidable syscalls and parsing overhead, reading > /etc/nsswitch.conf and /etc/passwd for each per-chunk file locking > call. This is however not limited to garbage collection, but rather > affects file locking in general. The backup_user() lookup was > identified as the culprit. > > [...] Applied, thanks! Added calling proxmox_product_config::init() in the proxmox-backup-debug CLI tool to avoid panic when executing any API endpoint through that tool. [01/15] bin: api/proxy: early init proxmox-product-config commit: 64ed316c765c3cdd074840639ce29ff109114688 [02/15] bin: daily update: refactor to use proxmox-product-config commit: 07f911ed0d0784572d6ac71a5e9941473e2dc305 [03/15] pbs-config: use proxmox-product-config::replace_secret_config() commit: b9f246f48138b436ef13db3437eee6b8cc30d410 [04/15] pbs-config: use proxmox-product-config::replace_privileged_config() commit: a97e11452423f1d7c5c6abd8e333f29ee3299dc1 [05/15] fix #7642: avoid expensive user lookups on file locking commit: de2d08d81922db733890c924b6a456b61d45e743 [06/15] pbs-config: use proxmox-product-config helpers commit: faa528f4e26be5df8464ee78a49a1c04a6c0bee7 [07/15] pbs-config: drop backup_group helper, use users gid instead commit: 51fbb946f8d4a4c21aa4235ca93af37c6c22bb58 [08/15] pbs-datastore: use proxmox-product-config cached backup user commit: 071d5ee6d3d4309ee8c459baed90c24183d7f70b [09/15] pbs-datastore: use general helpers for file lock create options commit: 759f6cdd355d505e3612a75fddf15f04690be8f6 [10/15] server: auth helpers: use proxmox-product-config create options helpers commit: bd6984bbd03d3b40a74af0f2458208eec4aa3919 [11/15] api: subscription: use proxmox-product-config create options commit: 2a3a72180afa3c4d04f16108df2dfecdfdc1fe01 [12/15] tape: use proxmox-product-config helper for user lookup commit: 4a19d2d87779587fc7e74eda7e44dbad3ac40eb5 [13/15] tape: use proxmox-product-config lock file create options commit: 39df8cabe4807165ecd9c98d43e2a7f8bc3a79fe [14/15] tape: use proxmox-product-config to generate create options commit: f79e1c1f19ea41f89a42a94ac01577d809deda87 [15/15] tree-wide: use proxmox-product-config::get_api_user for user lookup commit: b2636735d9ca62f590bce7795bcdef6433b27446