From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Should use of mallopt depend on DOUG_LEA_MALLOC? Date: Fri, 13 Dec 2019 10:22:51 -0500 Message-ID: References: <87sgme1ww7.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> <83o8x0rl6d.fsf@gnu.org> <87lfs2mzo8.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> <87lfs19shb.fsf@mail.linkov.net> <87a78gn5k5.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> <83sgm8ox3g.fsf@gnu.org> <87zhgflxmc.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> <83lfrzq1s1.fsf@gnu.org> <87d0d7w3tt.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> <83zhgaloc5.fsf@gnu.org> <87zhg7jmjg.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> <83h82ej03y.fsf@gnu.org> <87r21ick48.fsf@gmail.com> <83immthovt.fsf@gnu.org> <87o8wkc50t.fsf@gmail.com> <83lfrodix4.fsf@gnu.org> <87immkctly.fsf_-_@gmail.com> <83tv6470ko.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="157963"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Noam Postavsky , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 13 16:23:34 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ifmmz-000ex4-Cm for ged-emacs-devel@m.gmane.org; Fri, 13 Dec 2019 16:23:33 +0100 Original-Received: from localhost ([::1]:50364 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ifmmx-0004rl-KK for ged-emacs-devel@m.gmane.org; Fri, 13 Dec 2019 10:23:31 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60176) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ifmmT-0004RK-Go for emacs-devel@gnu.org; Fri, 13 Dec 2019 10:23:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ifmmR-0005rj-TF for emacs-devel@gnu.org; Fri, 13 Dec 2019 10:23:00 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:24761) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ifmmQ-0005oB-CI; Fri, 13 Dec 2019 10:22:58 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 56EE580B9B; Fri, 13 Dec 2019 10:22:57 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id E7F73812DF; Fri, 13 Dec 2019 10:22:54 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1576250574; bh=Rr6JvLoN0txj2etKujtKAisjQKQoAkZv8lorDajVuOI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=gjt23Kw5WpM4DcPXTvUN5SJXqKHLEGcotfgucrhZ9VVcL//yzxZEei4DaJoTmMgxe JJGq3DtkQvJfK6YLN20psja1LlQjNvN2H3Hzb4/s1QwHSuD85lnFKwAXBKo37M/Wnm ahYvkQVKaV9DW9kzUEXGRnQDUOqSlG+NcoJerhlR66PjcfTvkILNLI/pw3VHufPAr+ dJuF9It16EJ+R5RiaHkBLu55DpHDNZK5EsFFLaO1rXgBEYzIQTmI9BnSteayq3xFBE 4VgmmKW9ODURsSXbC5m4AHYC+qVJz2WGm/rW2R/N4qb0WyFBgHEsSmW1RJiHSF//CA PAYD293526G0A== Original-Received: from pastel (unknown [45.72.154.226]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id AF7C71212FB; Fri, 13 Dec 2019 10:22:54 -0500 (EST) In-Reply-To: <83tv6470ko.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 13 Dec 2019 16:38:15 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 132.204.25.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:243354 Archived-At: >> I also don't really have any idea what the mallopt calls do (that is, I >> can see in the documentation that they modify such and such parameter of >> the allocator, but I don't know what that means in practice: faster, >> slower, less RAM, more RAM, etc). For those in `init_alloc_once_for_pdumper`, I can't help you. But the ones conditionalized on `mmap_lisp_allowed_p` are used not as optimizations but to prevent use of mmap within the malloc implementation in the two known cases where it can break our (unportable) assumptions: - when we use MSB bits for the Lisp_Object tags and hence cannot use all of the addressable memory for Lisp objects. [ Hopefully, there are no platforms in this category remaining, but I don't know this to be the case for sure. ] - when we're about to do the unexec dump because the unexec code doesn't handle those mmap'd areas. Stefan