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: Fri, 08 Jan 2021 15:50:28 +0000 Message-ID: References: <87y2h5hjve.fsf@gmail.com> <831revjyja.fsf@gnu.org> 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="16107"; 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: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 08 17:07:29 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 1kxuIS-0003zE-QT for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 08 Jan 2021 17:07:28 +0100 Original-Received: from localhost ([::1]:37490 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kxuIR-0001Od-MD for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 08 Jan 2021 11:07:27 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51082) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxu2Z-0003v7-1j for bug-gnu-emacs@gnu.org; Fri, 08 Jan 2021 10:51:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38825) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kxu2Y-0007rb-CC for bug-gnu-emacs@gnu.org; Fri, 08 Jan 2021 10:51:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kxu2Y-0002h1-AD for bug-gnu-emacs@gnu.org; Fri, 08 Jan 2021 10:51: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: Fri, 08 Jan 2021 15:51: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.161012103310297 (code B ref 45705); Fri, 08 Jan 2021 15:51:02 +0000 Original-Received: (at 45705) by debbugs.gnu.org; 8 Jan 2021 15:50:33 +0000 Original-Received: from localhost ([127.0.0.1]:50371 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxu25-0002g1-79 for submit@debbugs.gnu.org; Fri, 08 Jan 2021 10:50:33 -0500 Original-Received: from mx.sdf.org ([205.166.94.24]:53012) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxu23-0002fp-C8 for 45705@debbugs.gnu.org; Fri, 08 Jan 2021 10:50:32 -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 108FoSdS020904; Fri, 8 Jan 2021 15:50:28 GMT In-Reply-To: <831revjyja.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 08 Jan 2021 16:25:45 +0200") 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:197523 Archived-At: Eli Zaretskii writes: >> Date: Wed, 06 Jan 2021 20:55:35 +0000 >> Cc: 45705@debbugs.gnu.org >> From: Andrea Corallo via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >>=20 >> > On windows 10, I noticed that emacs could use a lot of memory, up to >> > 6Go and >> > sometimes more. The memory consumption goes up and down from time to >> > time while >> > I am not running any specific program in emacs, apart `lsp-java` >> > >> > As my personal computer has 16Go of RAM, I can afford >> > it. Unfortunately, my work >> > computer has much less and the whole compute completely freezes at one >> > point >> > when using emacs. >> > >> > I did not notice that behavior on linux. I do not know if the master >> > branch has >> > the same problem. What could be the problem ? >>=20 >> Hi =C3=89douard, >>=20 >> AFAIK was never proved recently Emacs garbage collector is failing to >> recall memory, so I guess this is just some Lisp program that is >> allocating a lot of memory keeping then those objects referenced. > > IME, 6 GiB is too much for any Lisp program to explain away. > > Also, the memory allocator we use on Windows is known to return memory > to the OS more than glibc on GNU/Linux. I have never seen my Emacs > session get anywhere near 1 GiB, let alone more, and my sessions run > for many weeks without restarting. > > Can you tell what kind of memory footprints you see on your system > with the native-comp branch, after running the session for several > days or more? Hi Eli, consumptions of few GiB is something I've seen more then once for long standing sessions. You might be right in this being a memory leak, indeed I've no prove of that (I think we have none for the other direction either). Assuming it's a bug I don't see a priori why this should be a different one respect the one reported for master. Regards Andrea