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#43389: 28.0.50; Emacs memory leaks Date: Thu, 19 Nov 2020 16:03:51 +0200 Message-ID: <837dqhpho8.fsf@gnu.org> References: <83ft57raog.fsf@gnu.org> <871rgrk9g5.fsf@oldenburg2.str.redhat.com> <83d00br9xk.fsf@gnu.org> <87tutnitta.fsf@oldenburg2.str.redhat.com> <83a6vfr8p0.fsf@gnu.org> <87sg96uykt.fsf@gnus.jao.io> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27894"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 43389@debbugs.gnu.org, carlos@redhat.com, fweimer@redhat.com, dj@redhat.com To: "Jose A. Ortega Ruiz" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 19 15:05:13 2020 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 1kfkYi-00076L-Ck for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 Nov 2020 15:05:12 +0100 Original-Received: from localhost ([::1]:53692 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kfkYh-0007BS-EG for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 Nov 2020 09:05:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41972) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfkYY-0007B9-J8 for bug-gnu-emacs@gnu.org; Thu, 19 Nov 2020 09:05:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55243) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kfkYY-00069t-9r for bug-gnu-emacs@gnu.org; Thu, 19 Nov 2020 09:05:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kfkYY-0001oB-5t for bug-gnu-emacs@gnu.org; Thu, 19 Nov 2020 09:05: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: Thu, 19 Nov 2020 14:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43389 X-GNU-PR-Package: emacs Original-Received: via spool by 43389-submit@debbugs.gnu.org id=B43389.16057946586898 (code B ref 43389); Thu, 19 Nov 2020 14:05:02 +0000 Original-Received: (at 43389) by debbugs.gnu.org; 19 Nov 2020 14:04:18 +0000 Original-Received: from localhost ([127.0.0.1]:38556 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfkXp-0001nC-HD for submit@debbugs.gnu.org; Thu, 19 Nov 2020 09:04:17 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41758) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfkXo-0001mw-4j for 43389@debbugs.gnu.org; Thu, 19 Nov 2020 09:04:16 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52371) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kfkXi-0005nn-1e; Thu, 19 Nov 2020 09:04:10 -0500 Original-Received: from [176.228.60.248] (port=4551 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kfkXe-0007Ls-G1; Thu, 19 Nov 2020 09:04:07 -0500 In-Reply-To: <87sg96uykt.fsf@gnus.jao.io> 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:193714 Archived-At: > From: "Jose A. Ortega Ruiz" > Date: Wed, 18 Nov 2020 21:47:30 +0000 > > As an additional datapoint, since version 27 (i usually compile from > master, so also before its release), i'm experiencing bigger RAM > consumption from my emacs processes too. > > It used to always be way below 1Gb, and at some point (i have the > impression it was with the switch to pdumper), typical footprints went > up to ~2Gb. > > In my case, there seems to be a jump in RAM footprint every now and then > (i get to ~1.5Gb in a day almost for sure, and 1.8Gb is not rare at > all), but they're not systematic. > > Everything starts "normal" (300Mb), then i open Gnus an it grows a bit > after reading some groups (500Mb, say), and so on, and be there for a > while even if i keep using Gnus for reading similarly sized message > groups. But, at some point, quite suddenly, i see RAM going to ~1Gb, > without any obvious change in the libraries i've loaded or in my usage > of them. The pattern repeats until i find myself with ~2Gb in N days, > with N varying from 1 to 3. > > It's difficult for me to be more precise because i use emacs for > absolutely everything. But, perhaps tellingly, i don't use most of the > packages that have been mentioned in this thread (in my case it's ivy > instead of helm, i use pdf-tools and that has a considerable footprint, > but i see jumps without having it loaded too, similar thing for > emacs-w3m), and i see the jumps to appear so consistently that my > impression is that they're not directly caused by a single package. Thanks. If you can afford it, would you please try using the malloc tracing tools pointed to here: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=43389#158 and then tell us where we could get the data you collected? > As i mentioned above, i've got a hunch that this all started, at least > for me, with pdumper, but i must say that is most probably a red > herring. For the record, can you please tell what flavor and version of GNU/Linux are you using? > P.S.: I'm not copying the external GCC developers in this response > because i think most of the above makes only sense to emacs developers; > please let me know if you'd rather i did copy them. I've added them. Please CC them in the future, it is important for us that the glibc experts see the data points people report in this matter.