From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Larger GC thresholds for non-interactive Emacs Date: Fri, 17 Jun 2022 12:05:30 -0400 Message-ID: References: <835yl910gp.fsf@gnu.org> <87wndndbhq.fsf@gmail.com> <83bkuzznws.fsf@gnu.org> <877d5mqmkh.fsf@localhost> <83y1y2utnd.fsf@gnu.org> <87r13up587.fsf@localhost> <83o7yyur0l.fsf@gnu.org> <87leu2p3nu.fsf@localhost> <83leu2uewn.fsf@gnu.org> <87r13qv701.fsf@localhost> <83bkuursya.fsf@gnu.org> <87h74l9jk8.fsf@localhost> <83bkutqb3z.fsf@gnu.org> <9778F176-E724-4E61-B0FB-327BCDD316C0@acm.org> <87sfo4epeo.fsf@localhost> <87bkurrc5e.fsf@localhost> <87bkur72b7.fsf@gnus.org> <87r13n5muk.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22926"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Ihor Radchenko , Mattias =?windows-1252?Q?Engdeg?= =?windows-1252?Q?=E5rd?= , Eli Zaretskii , Tim Cross , rms@gnu.org, Alan Mackenzie , emacs-devel To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 17 18:07:41 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o2EVY-0005la-WE for ged-emacs-devel@m.gmane-mx.org; Fri, 17 Jun 2022 18:07:41 +0200 Original-Received: from localhost ([::1]:48044 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o2EVX-0003go-Us for ged-emacs-devel@m.gmane-mx.org; Fri, 17 Jun 2022 12:07:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60086) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o2ETc-00021B-3l for emacs-devel@gnu.org; Fri, 17 Jun 2022 12:05:40 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:18331) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o2ETY-0002ap-QZ; Fri, 17 Jun 2022 12:05:38 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id C4FDA80922; Fri, 17 Jun 2022 12:05:33 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 564038043C; Fri, 17 Jun 2022 12:05:32 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1655481932; bh=AQxGPrODmJxrGKweqjh++bbfqDjbdDjBIrlzAUpAjgM=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Fjv4G7w/Q/OX+zKd6CgNHVZ//Dtg4LXJgLPiV9AsNzdzVizoIFwp2K18LGMh1DzG8 5ZFpcAJCjdzwARd75HDgmpo0MppWkDs+7piHYD47/qS+5AK/dAd+cQSYYgZ9VvrAZN Ll7RT9q8E4nuxxqP1yMn5Km7gap6dszBheVHrybAF+UPNaaHwUNiMTbX86ej9XDgj9 Icw3TvQ8rIdwbIHSzJ4+nb3bhzAN9pXMMB+Vqcw6ayxAGVrk+KjlFqLaC9TQ2C4wab NsnFmABDG2TVZ3jkpVW13MG89/ENHf5tSZ/8Z57ZDFZBz7y6pHmZskoEUpO8MjPmKg evyLZNfMPDrBQ== Original-Received: from alfajor (unknown [45.44.229.252]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 0DEC3120192; Fri, 17 Jun 2022 12:05:32 -0400 (EDT) In-Reply-To: <87r13n5muk.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 17 Jun 2022 17:30:27 +0200") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:291299 Archived-At: >> A "make -j32 bootstrap" went from 1m25s to 1m6s. =F0=9F=98=80 > I wonder whether we should just have a command line option for this -- > i.e., --no-garbage-collection to be used in combination with --batch for > jobs that aren't long-running (i.e., will exit before growing huge). "no-garbage-collection" would be either a bug (we'd crash or be killed[*] on long-enough-running jobs) or a lie (we'd still perform GC sometimes). Also I hope we can first try to simply provide better defaults before requiring manual intervention from the user. I haven't seen any evidence yet that the current defaults are good for batch jobs. BTW, I seen everyone's focused on `gc-cons-threshold` but that variable does not adapt to the heap size, so maybe we'd be better off playing with `gc-cons-percentage`. Stefan [*] Like the Org manual's build on elpa.gnu.org yesterday because its gc-threshold was set to most-positive-fixnum and `elpa.gnu.org` only has 1GB of RAM.