From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.bugs Subject: bug#43389: 28.0.50; Emacs memory leaks Date: Wed, 18 Nov 2020 00:45:48 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24139"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.0 (3d08634) (2020-11-07) Cc: fweimer@redhat.com, 43389@debbugs.gnu.org, carlos@redhat.com, trevor@trevorbentley.com, michael_heerdegen@web.de To: DJ Delorie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 17 22:47:14 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 1kf8oj-00069c-Q7 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 17 Nov 2020 22:47:13 +0100 Original-Received: from localhost ([::1]:51808 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kf8oi-0006nb-Sd for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 17 Nov 2020 16:47:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40562) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kf8oc-0006nT-7f for bug-gnu-emacs@gnu.org; Tue, 17 Nov 2020 16:47:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49845) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kf8oY-0007t1-87 for bug-gnu-emacs@gnu.org; Tue, 17 Nov 2020 16:47:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kf8oY-0002eh-6U for bug-gnu-emacs@gnu.org; Tue, 17 Nov 2020 16:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jean Louis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Nov 2020 21:47: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.16056495717848 (code B ref 43389); Tue, 17 Nov 2020 21:47:02 +0000 Original-Received: (at 43389) by debbugs.gnu.org; 17 Nov 2020 21:46:11 +0000 Original-Received: from localhost ([127.0.0.1]:33158 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kf8nj-00022E-2F for submit@debbugs.gnu.org; Tue, 17 Nov 2020 16:46:11 -0500 Original-Received: from static.rcdrun.com ([95.85.24.50]:37495) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kf8nf-0001uF-N5 for 43389@debbugs.gnu.org; Tue, 17 Nov 2020 16:46:09 -0500 Original-Received: from localhost ([::ffff:41.202.241.56]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by static.rcdrun.com with ESMTPSA id 00000000002C0006.000000005FB44499.00005BE0; Tue, 17 Nov 2020 21:46:00 +0000 Content-Disposition: inline In-Reply-To: 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:193588 Archived-At: * DJ Delorie [2020-11-17 23:57]: > Jean Louis writes: > > After days I will tell more. > > Do we have any strong hints on things we (i.e. I) can do to cause this > to happen faster? This is because I cannot know when is it happening. In general it was taking place almost all the time under EXWM (Emacs X Window Manager) then I switched to IceWM just to see if it is problem that EXWM is invoking. Now in IceWM I got it 3 times, but much less times than in EXWM and I do not see that I anyhow have changed my habits of using Emacs. Today I had more than 10 hours session and then what I did? I do not know exactly. I have kept only XTerm and Emacs on X, at some point of time it starts using swap but it is unclear to me if it uses swap or does something else with the disk. Some minutes before that I was inspecting it with htop and found Emacs with 9.7 GB memory. Later system was unusable. All I could see during that time is hard disk LED turned on all the time. I cannot do almost nothing, I cannot interrupt Emacs or switch to console. Then I use Magic SysRq and do the necessary to at least synchronize hard disks, unmount and reboot. I am running it with this script: #!/bin/bash # CDPATH invokes bugs in eshell, not related to this unset CDPATH # I was trying to tune ulimit -m but it did not help # ulimit -m 3145728 # I am trying this now export MALLOC_ARENA_MAX=4 date >> /home/data1/protected/tmp/emacs-debug # This below is for M-x malloc-info emacs >> /home/data1/protected/tmp/emacs-debug 2>&1 Maybe some simple new and automatic function could be temporarily included to spit errors to output on what is Emacs doing when it starts swapping (if it is swapping), then such errors could at least be captured in a file even if I have to reboot computer.