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 DC59C1FF141 for ; Mon, 13 Apr 2026 15:13:15 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id EF67424EAC; Mon, 13 Apr 2026 15:14:03 +0200 (CEST) Message-ID: <5b5df6ab-0efe-4c61-90e4-6c34d41bc12f@proxmox.com> Date: Mon, 13 Apr 2026 15:13:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH pve-qemu 2/2] d/rules: enable tcmalloc as the memory allocator To: Kefu Chai , pve-devel@lists.proxmox.com References: <20260410043027.3621673-1-k.chai@proxmox.com> <20260410043027.3621673-3-k.chai@proxmox.com> Content-Language: en-US From: Fiona Ebner In-Reply-To: <20260410043027.3621673-3-k.chai@proxmox.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1776085964455 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.008 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: U43EOA3IMCLPBSRSPKF73EBZOADH4ZT6 X-Message-ID-Hash: U43EOA3IMCLPBSRSPKF73EBZOADH4ZT6 X-MailFrom: f.ebner@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: Am 10.04.26 um 6:29 AM schrieb Kefu Chai: > 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, Please also add the runtime dependency to Depends: > 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 \