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 using hard disk all time Date: Thu, 26 Nov 2020 12:09:32 +0300 Message-ID: References: <831rgppg3w.fsf@gnu.org> <83zh3czbvz.fsf@gnu.org> <83blfovzxz.fsf@gnu.org> <87o8jnu5f2.fsf@mail.trevorbentley.com> <83o8jmu49z.fsf@gnu.org> <522e3cc0-c563-3308-7264-1b09cd5e264b@redhat.com> <83blfls494.fsf@gnu.org> 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="6502"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.0 (3d08634) (2020-11-07) Cc: fweimer@redhat.com, 43389@debbugs.gnu.org, dj@redhat.com, Carlos O'Donell , trevor@trevorbentley.com, michael_heerdegen@web.de To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 26 10:10:12 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 1kiDI4-0001YP-Ry for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Nov 2020 10:10:12 +0100 Original-Received: from localhost ([::1]:49424 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiDI3-0007C1-8g for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Nov 2020 04:10:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50510) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiDHu-0007Bu-Jl for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2020 04:10:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55044) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kiDHu-00063e-Bw for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2020 04:10:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kiDHu-0005n4-6r for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2020 04:10: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: Thu, 26 Nov 2020 09:10: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.160638178722233 (code B ref 43389); Thu, 26 Nov 2020 09:10:02 +0000 Original-Received: (at 43389) by debbugs.gnu.org; 26 Nov 2020 09:09:47 +0000 Original-Received: from localhost ([127.0.0.1]:38357 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kiDHf-0005mX-EG for submit@debbugs.gnu.org; Thu, 26 Nov 2020 04:09:47 -0500 Original-Received: from static.rcdrun.com ([95.85.24.50]:48291) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kiDHd-0005mI-Pu for 43389@debbugs.gnu.org; Thu, 26 Nov 2020 04:09:46 -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 00000000002C0007.000000005FBF70D2.00002B76; Thu, 26 Nov 2020 09:09:38 +0000 Content-Disposition: inline In-Reply-To: <83blfls494.fsf@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:194263 Archived-At: Hello Eli, Here is short report on the behavior: Emacs uptime: 2 days, 19 hours, 46 minutes, 49 seconds I think it was 11:12 o'clock my time zone. I was not doing nothing special just writing emails and invoking emacsclient. All the time before the swap shown by symon-mode was just about 200 MB suddenly it grew to large number maybe few gigabytes, hard disk started working heavily. It became all very slow but I could write letters. I have tried to invoke M-x good-bye around 11:12, that is where it became all very slow and started working with hard disk. Almost everything blocked on screen. Emacs was kind of empty, no menus, nothing, just blank black background, no mode line. So I moved it to other workspace and continued working with zile. About 36 minutes later it finally wrote this information into file: ((uptime "2 days, 18 hours, 32 minutes, 32 seconds") (pid 13339) (garbage ((conses 16 4438358 789442) (symbols 48 86924 25) (strings 32 571988 149785) (string-bytes 1 25104928) (vectors 16 245282) (vector-slots 8 4652918 1622184) (floats 8 1860 19097) (intervals 56 645336 37479) (buffers 992 900))) (buffers-size 200839861) (vsize (vsize 5144252))) There after few minutes I have invoked the good-bye again: ((uptime "2 days, 18 hours, 35 minutes, 19 seconds") (pid 13339) (garbage ((conses 16 4511014 617524) (symbols 48 86926 23) (strings 32 576134 114546) (string-bytes 1 25198549) (vectors 16 245670) (vector-slots 8 4636183 1560354) (floats 8 1859 18842) (intervals 56 655325 24178) (buffers 992 900))) (buffers-size 200898858) (vsize (vsize 5144252))) But what happened after 36 minutes of waiting is that Emacs became responsive. So I am still running this session and I hope to get mtrace after the session has finished. Before I was not patient longer than maybe 3-5 minutes and I have aborted Emacs. But now I can see it stabilized after hard work with memory or whatever it was doing. Swap is 1809 MB and vsize just same as above. Observation on "what I was doing when vsize started growing" is simple, I was just editing email, nothing drastic. I did not do anything special. If you say I should finish session now and send the mtrace, I can do it. Jean (defun good-bye () (interactive) (let* ((garbage (garbage-collect)) (size 0) (buffers-size (dolist (buffer (buffer-list) size) (setq size (+ size (buffer-size buffer))))) (uptime (emacs-uptime)) (pid (emacs-pid)) (vsize (vsize-value)) (file (format "~/tmp/emacs-session-%s.el" pid)) (list (list (list 'uptime uptime) (list 'pid pid) (list 'garbage garbage) (list 'buffers-size buffers-size) (list 'vsize vsize)))) (with-temp-file file (insert (prin1-to-string list))) (message file)))