From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#45705: [feature/native-comp] Excessive memory consumption on windows 10 Date: Sat, 09 Jan 2021 19:41:09 +0000 Message-ID: References: <87y2h5hjve.fsf@gmail.com> <831revjyja.fsf@gnu.org> <83turrif53.fsf@gnu.org> <83lfd2ilwf.fsf@gnu.org> <83y2h2gw9v.fsf@gnu.org> <87im86c97t.fsf@gmail.com> Reply-To: Andrea Corallo 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="26154"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: edouard.debry@gmail.com, 45705@debbugs.gnu.org To: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 09 20:42:10 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1kyK7m-0006hK-Eh for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Jan 2021 20:42:10 +0100 Original-Received: from localhost ([::1]:55838 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kyK7l-0006ux-Ep for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Jan 2021 14:42:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35278) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kyK7e-0006uB-U5 for bug-gnu-emacs@gnu.org; Sat, 09 Jan 2021 14:42:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41084) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kyK7e-0007gy-N3 for bug-gnu-emacs@gnu.org; Sat, 09 Jan 2021 14:42:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kyK7e-0006LM-Im for bug-gnu-emacs@gnu.org; Sat, 09 Jan 2021 14:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Jan 2021 19:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45705 X-GNU-PR-Package: emacs Original-Received: via spool by 45705-submit@debbugs.gnu.org id=B45705.161022127524326 (code B ref 45705); Sat, 09 Jan 2021 19:42:02 +0000 Original-Received: (at 45705) by debbugs.gnu.org; 9 Jan 2021 19:41:15 +0000 Original-Received: from localhost ([127.0.0.1]:52629 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyK6t-0006KI-GQ for submit@debbugs.gnu.org; Sat, 09 Jan 2021 14:41:15 -0500 Original-Received: from mx.sdf.org ([205.166.94.24]:63188) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyK6o-0006K7-Fx for 45705@debbugs.gnu.org; Sat, 09 Jan 2021 14:41:14 -0500 Original-Received: from mab (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTP id 109Jf9oZ014968; Sat, 9 Jan 2021 19:41:09 GMT In-Reply-To: <87im86c97t.fsf@gmail.com> ("=?UTF-8?Q?K=C3=A9vin?= Le Gouguec"'s message of "Sat, 09 Jan 2021 18:26:46 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:197572 Archived-At: K=C3=A9vin Le Gouguec writes: > Andrea Corallo writes: > >> Eli Zaretskii writes: >> >>>> From: Andrea Corallo >>>>=20 >>>> In June we changed the way we store immediate objects in the shared and >>>> this makes the compilation way lighter on the GCC side (both in time a= nd >>>> memory). I've no precise data on this other than the experimental >>>> observation that compiling all Elisp files in Emacs on 32bit systems is >>>> not anymore an issue. This IIUC implies that the memory footprint for >>>> each compilation is always < 2GB. >>> >>> You assume that the compilations are all done serially? AFAIK, most >>> people build Emacs with "make -jN", so parallel compilation is an >>> important use case. >> >>> I guess we will have to collect the information about that, if you say >>> we don't have it now. >> >> I'm adding in CC Kevin, IIRC for bug#41077 he used a nice setup to >> produce quite accurate results on memory footprint during the >> compilation process. Perhaps he has time and he's so kind to gather >> some data on the current state, that would be extremely helpful. > > See also bug#41194#20 and bug#41194#28 where I outlined how the > improvements reduced compilation time and memory usage. > > I've dusted off my 32-bit laptop; unfortunately the fan sounds like it's > in need of=E2=80=A6 something (probably exorcism, given the noise). At the moment I think we are interested more in the magnitude order and also a measure on 64bit would be very interesting. But you are right I see in bug#41194#20 bug#41194#28 you've already measured the footprint with the new immediate handling! IIRC the worstcase was org.el under 600MB. I think till we get a more recent measure we should assume this as number (I don't expect huge changes tho). Many thanks Andrea