From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#45705: [feature/native-comp] Excessive memory consumption on windows 10 Date: Fri, 08 Jan 2021 16:25:45 +0200 Message-ID: <831revjyja.fsf@gnu.org> References: <87y2h5hjve.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25352"; mail-complaints-to="usenet@ciao.gmane.io" Cc: edouard.debry@gmail.com, 45705@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 08 15:26: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 1kxsiP-0006RY-K4 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 08 Jan 2021 15:26:09 +0100 Original-Received: from localhost ([::1]:50082 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kxsiO-0007Rs-Iz for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 08 Jan 2021 09:26:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxsiI-0007Rk-OJ for bug-gnu-emacs@gnu.org; Fri, 08 Jan 2021 09:26:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37986) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kxsiI-00038H-Gu for bug-gnu-emacs@gnu.org; Fri, 08 Jan 2021 09:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kxsiI-0000Hx-CV for bug-gnu-emacs@gnu.org; Fri, 08 Jan 2021 09:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Jan 2021 14:26: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.16101159571094 (code B ref 45705); Fri, 08 Jan 2021 14:26:02 +0000 Original-Received: (at 45705) by debbugs.gnu.org; 8 Jan 2021 14:25:57 +0000 Original-Received: from localhost ([127.0.0.1]:49532 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxsiC-0000Ha-UX for submit@debbugs.gnu.org; Fri, 08 Jan 2021 09:25:57 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35948) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxsiA-0000HG-VY for 45705@debbugs.gnu.org; Fri, 08 Jan 2021 09:25:55 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37370) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kxsi5-00033n-H1; Fri, 08 Jan 2021 09:25:49 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1631 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kxsi0-0007Lj-Iz; Fri, 08 Jan 2021 09:25:46 -0500 In-Reply-To: (bug-gnu-emacs@gnu.org) 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:197520 Archived-At: > 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" > > > 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 ? > > Hi Édouard, > > 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?