From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id C4FCD1FF140 for ; Fri, 10 Apr 2026 06:29:58 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id D1C6E12A99; Fri, 10 Apr 2026 06:30:41 +0200 (CEST) From: Kefu Chai To: pve-devel@lists.proxmox.com Subject: [PATCH pve-qemu 2/2] d/rules: enable tcmalloc as the memory allocator Date: Fri, 10 Apr 2026 12:30:27 +0800 Message-ID: <20260410043027.3621673-3-k.chai@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260410043027.3621673-1-k.chai@proxmox.com> References: <20260410043027.3621673-1-k.chai@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1775795367270 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.390 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 Message-ID-Hash: VLYB5UWXKHKG6IDW6GCHCMW2EJ5MRFGW X-Message-ID-Hash: VLYB5UWXKHKG6IDW6GCHCMW2EJ5MRFGW X-MailFrom: k.chai@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 VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Use tcmalloc (from gperftools) instead of glibc's allocator for improved performance with workloads that create many small, short-lived allocations -- particularly Ceph/librbd I/O paths. Ceph benchmarks show ~50% IOPS improvement on 16KB random reads. tcmalloc was originally used in 2015 but removed due to tuning issues with gperftools 2.2. PVE 9 ships gperftools 2.16, where those issues are long resolved. Signed-off-by: Kefu Chai --- debian/control | 1 + debian/rules | 1 + 2 files changed, 2 insertions(+) diff --git a/debian/control b/debian/control index 81cc026..a3121e1 100644 --- a/debian/control +++ b/debian/control @@ -14,6 +14,7 @@ Build-Depends: debhelper-compat (= 13), libfuse3-dev, libgbm-dev, libgnutls28-dev, + libgoogle-perftools-dev, libiscsi-dev (>= 1.12.0), libjpeg-dev, libjson-perl, diff --git a/debian/rules b/debian/rules index c90db29..a63e3a5 100755 --- a/debian/rules +++ b/debian/rules @@ -70,6 +70,7 @@ endif --enable-libusb \ --enable-linux-aio \ --enable-linux-io-uring \ + --enable-malloc=tcmalloc \ --enable-numa \ --enable-opengl \ --enable-rbd \ -- 2.47.3