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 using hard disk all time Date: Mon, 23 Nov 2020 19:44:07 +0200 Message-ID: <83v9dwufx4.fsf@gnu.org> References: <86y2j2brg2.fsf@protected.rcdrun.com> <83blfxth7c.fsf@gnu.org> <83y2j0qb2v.fsf@gnu.org> <831rgppg3w.fsf@gnu.org> <83zh3czbvz.fsf@gnu.org> <83k0udw3jb.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16786"; mail-complaints-to="usenet@ciao.gmane.io" Cc: fweimer@redhat.com, 43389@debbugs.gnu.org, bugs@gnu.support, dj@redhat.com, michael_heerdegen@web.de, trevor@trevorbentley.com, carlos@redhat.com To: Arthur Miller Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 23 18:45:23 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 1khFtz-0004D2-1s for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 23 Nov 2020 18:45:23 +0100 Original-Received: from localhost ([::1]:55404 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1khFtx-0003JZ-Vc for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 23 Nov 2020 12:45:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47284) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khFte-0003Hz-Kd for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2020 12:45:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39504) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1khFte-0003Fp-CL for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2020 12:45:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1khFte-0007Ud-7k for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2020 12:45: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: Mon, 23 Nov 2020 17:45: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.160615346028734 (code B ref 43389); Mon, 23 Nov 2020 17:45:02 +0000 Original-Received: (at 43389) by debbugs.gnu.org; 23 Nov 2020 17:44:20 +0000 Original-Received: from localhost ([127.0.0.1]:51050 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khFsx-0007TO-SZ for submit@debbugs.gnu.org; Mon, 23 Nov 2020 12:44:20 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56996) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khFsw-0007TC-Ow for 43389@debbugs.gnu.org; Mon, 23 Nov 2020 12:44:19 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:49872) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1khFsq-00033g-Sd; Mon, 23 Nov 2020 12:44:12 -0500 Original-Received: from [176.228.60.248] (port=2229 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1khFsq-0000rp-AU; Mon, 23 Nov 2020 12:44:12 -0500 In-Reply-To: (message from Arthur Miller on Mon, 23 Nov 2020 18:19:32 +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:193938 Archived-At: > From: Arthur Miller > Cc: Jean Louis , fweimer@redhat.com, > 43389@debbugs.gnu.org, dj@redhat.com, michael_heerdegen@web.de, > trevor@trevorbentley.com, carlos@redhat.com > Date: Mon, 23 Nov 2020 18:19:32 +0100 > > > The glibc malloc is the prime suspect anyway. I don't really believe Emacs had > > such a glaring memory leak. > > This has to be something introduced fairly recently, right? Maybe, I'm not sure. Since we introduced the pdumper, we use malloc somewhat differently, and OTOH glibc removed some of the malloc hooks we used to use in versions of Emacs before 26. In addition, glibc is also being developed, and maybe some change there somehow triggered this. As you see, there's more than one factor that could possibly be related. > I didn't have any such problems before, but since maybe few weeks ago, I > have also experienced heavy lockdowns of my entire OS. To the point > where entire X11 got unresposnsive, when it happens I can't even switch > to terminal to kill Emacs. What I do is Alt-Shift to another virtual > linux console. I don't even need to log into the system in that console, > I can then Alt-Shift 1 to go back to one I am logged into, and > everything is normal. Emacs is every time restarted by systemd and > everything is repsonsive and working as normal. > > This started sometime ago; and I have noticed that it happens when I was > cleaning my disk and reading big directories in Dired (I have some with > ~7k-10k files in them). I was using Helm to complete paths when I was > shifting fiels and folders around. After maybe hour or so I would > experience big slowdown. I don't have swap file on my system enabled at > all, so I am not sure what was going, but I didn't have time to > participate in this memory leak thing yet. I haven't experienced any > problems since I recompiled Emacs last time, which was in 18th (last > Wendesday). I have recompiled without Gtk this time, but I have no idea > if it has anything to do with the issue, was just a wild shot to see if > things are better. If the problem is memory, I suggest to look at the system log to see if there are any signs of that.