From nobody Tue Jun 10 12:53:30 2025 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bGpcq5X78z5xJvW for ; Tue, 10 Jun 2025 12:53:31 +0000 (UTC) (envelope-from brooks@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bGpcq4rqXz4DjR; Tue, 10 Jun 2025 12:53:31 +0000 (UTC) (envelope-from brooks@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1749560011; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=eFcTQ/b152Yda6HS4gdvKVzXhQ4BPZT43DtWJq191e8=; b=eqfSnnTVAnDgp76/14eVcW2BD9lXwJEr/YKWdkKPZC5Vw0CHgd2LlhEixYdDG9uJJLQDtU aiEn/WQ2khWkhR1NEqaPigImLSbwFjU8mTjqDHj9Mmv5ysFKapmFktUh6UbnOzNiAqlslF ff6ITxI+YqO9Jdc3GQOCRSUXwmpSZtsKtfpbMJzuUUXYosTlHlTObgR5gHcQvJ7fD3aRYO VjKXE5Nyo4bj3F+1Mi2VIDrm8ytEvAMyn2LvWxSlFAG6wyWXtcA6gPhBe8Ikdr/anD/6Dz +NgzwRIlLzRHbogsLImRPwafviMnJoE/1gR3DU6BFLgUji5UwsqY3NcLLgUX+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1749560011; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=eFcTQ/b152Yda6HS4gdvKVzXhQ4BPZT43DtWJq191e8=; b=vnM7J7Gqj1SJu7ekEhNaMRF95OJpBG07ThouH47nGGqr15tjcycmiKsipGL4LZEW7u0k99 cjINPhio1fVifTzDcn2aG4UbG4snRGTAntaxWh2s/VA0FJf1x4AbXyz2FZ0AVw27p+zcrT EwAHpl7vTwQi96wEb7DwlUGXKQFvEjKW2VxMSCZjGY6TWft9PjqrF/9F18XbizpoiNXEUM PgAFQrRtWjt23CqvsM+RfPgVdBHR6XetMJ2hZQO53fkmpiIsqmxttp7o162PayyyQta76K fr45jfRD/LkzJQVXzp0qbGxM0Hon8rzdIx09ZzcjJlzYTnPodVcHkIpsmvxw0A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1749560011; a=rsa-sha256; cv=none; b=JjAZYr1Sgq2PNEOUyiE6xIRYZWbJQ2klmy3W3fwzCig5jpiJbFKMO7PpIK7eOSs9d/ic3R xBF/cvk2Q4Si0vP/rofrTA6uqNpWGKhWcx8FfzEWDsdc3v6buAewPYPXAukShEZJppobqY tuKH0F34CLEfwj0eymiSXfzpQSVVzRlVskDkiNrwaMw618zAwjCTKFO2OggvXIHxpalKNK vEMZNc8yorEkJ5Cm1ZZTvpWCKdk9bsOLscVvseUyZ3DUkvfbXVkEgQnD037yRXJgMIlnLN xurNdvCMXJx4LV1vLyha3/Eg/fAbYy0LAlDaWITlkRnzJJgxa5VtrCI+veQgMA== Received: from spindle.one-eyed-alien.net (spindle.one-eyed-alien.net [199.48.129.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: brooks/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4bGpcq3lXCzDnZ; Tue, 10 Jun 2025 12:53:31 +0000 (UTC) (envelope-from brooks@freebsd.org) Received: by spindle.one-eyed-alien.net (Postfix, from userid 3001) id ED0803C01A0; Tue, 10 Jun 2025 12:53:30 +0000 (UTC) Date: Tue, 10 Jun 2025 12:53:30 +0000 From: Brooks Davis To: David Chisnall Cc: Warner Losh , Minsoo Choo , FreeBSD CURRENT Subject: Re: Future of jemalloc on FreeBSD after archive Message-ID: References: <44DDF236-0911-4CE8-AD30-5E1AB5CB25EB@FreeBSD.org> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44DDF236-0911-4CE8-AD30-5E1AB5CB25EB@FreeBSD.org> On Tue, Jun 10, 2025 at 08:15:02AM +0100, David Chisnall wrote: > On 10 Jun 2025, at 00:17, Warner Losh wrote: > > > > I'm unsure what to do in the future. What are all the cool kids using today? > > I???ve replaced jemalloc with snmalloc (to which I am a contributor) in libc about five years ago and have been using that on a few places. I believe Brooks imported a cleaned-up version of my patches to CheriBSD and was planning on upstreaming them as an option. > I've been doing infrastructure work for this as a background task due to a decision to switch back to a wrapped jemalloc for CheriBSD heap temporal safety work (at the time we were debugging too many different things at once and decided that wrapping jemalloc meant we were debugging fewer things). I think we should ship 15.0 with jemalloc, ideally updated to at least 5.3.0. I'd also like to deprecate all the jemalloc specific symbols for 15 by removing default versions. I've got a patch to do so, but probably need an exprun for it and maybe a shim library to allow linkage with those symbols. Longer term, pivoting to a malloc with better hardening is certainly the right thing to do and snmalloc is a candidate. -- Brooks