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 21:23:50 +0200 Message-ID: <83lfervpvd.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> <83blfovzxz.fsf@gnu.org> <83tutgufuf.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30315"; 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 20:25:11 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 1khHSY-0007ki-NH for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 23 Nov 2020 20:25:10 +0100 Original-Received: from localhost ([::1]:51306 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1khHSX-0001Nq-J9 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 23 Nov 2020 14:25:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47078) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khHSR-0001NY-7E for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2020 14:25:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39664) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1khHSQ-0007Pu-6L for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2020 14:25:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1khHSQ-0003ka-2r for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2020 14:25: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 19:25: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.160615944714339 (code B ref 43389); Mon, 23 Nov 2020 19:25:02 +0000 Original-Received: (at 43389) by debbugs.gnu.org; 23 Nov 2020 19:24:07 +0000 Original-Received: from localhost ([127.0.0.1]:51210 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khHRX-0003jD-3Z for submit@debbugs.gnu.org; Mon, 23 Nov 2020 14:24:07 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56892) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khHRV-0003ij-Fe for 43389@debbugs.gnu.org; Mon, 23 Nov 2020 14:24:06 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52438) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1khHRP-00072x-JC; Mon, 23 Nov 2020 14:23:59 -0500 Original-Received: from [176.228.60.248] (port=4526 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1khHRL-0007bx-Is; Mon, 23 Nov 2020 14:23:57 -0500 In-Reply-To: (message from Arthur Miller on Mon, 23 Nov 2020 19:40:23 +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:193953 Archived-At: > From: Arthur Miller > Cc: bugs@gnu.support, 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 19:40:23 +0100 > > > That doesn't sound like a memory problem to me. > Ok; acknowledged; any idea what it could be? Actually, I take that back: it does look like the OOM killer that killed Emacs: nov 17 16:32:44 pascal kernel: oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/user.slice/user-1000.slice/user@1000.service,task=emacs,pid=> nov 17 16:32:44 pascal kernel: Out of memory: Killed process 605 (emacs) total-vm:29305960kB, anon-rss:29035892kB, file-rss:0kB, shmem-rss:5096kB, UID:1000 pgtables:57144kB oom_score_adj:0 > I have attached you a syslog from one crash point, you can see Emacs > is using almost 8gig or RAM, but I have 32, so there is plenty of > unused RAM over. It says above that the total VM size of the Emacs process was 29GB, not 8. So maybe yours is the same problem after all. How about writing a simple function that reports the total VM size of the Emacs process (via process-attributes), and running it from some timer? Then you could see how long it takes you to get from, say, 2GB to more than 20GB, and maybe also take notes of what you are doing at that time?