From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Trevor Bentley Newsgroups: gmane.emacs.bugs Subject: bug#43389: 28.0.50; Emacs memory leaks using hard disk all time Date: Sat, 28 Nov 2020 18:49:37 +0100 Message-ID: <87sg8ts766.fsf@mail.trevorbentley.com> References: <83y2j0qb2v.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> <87o8jltglg.fsf@mail.trevorbentley.com> <43b8f55b-d201-76e0-2d19-d97dec8798aa@redhat.com> <87im9ttfeg.fsf@mail.trevorbentley.com> <399d4681-940a-c782-b91e-750e62840cb6@redhat.com> <83pn40qkyb.fsf@gnu.org> <418751f6-41be-a5e2-908a-ea4196d5fb9b@redhat.com> <83y2inq2sp.fsf@gnu.org> <60253612-49f0-a1aa-b9e6-39cfef8d62b5@redhat.com> <83mtz3p7qy.fsf@gnu.org> <83lfenp78f.fsf@gnu.org> <83h7pbp5wh.fsf@gnu.org> <83v9dpn9em.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20820"; 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, To: Eli Zaretskii , carlos@redhat.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 28 18:50:10 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 1kj4ML-0005HS-P5 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 28 Nov 2020 18:50:09 +0100 Original-Received: from localhost ([::1]:44858 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kj4MK-0000az-Qc for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 28 Nov 2020 12:50:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45324) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kj4ME-0000ag-3n for bug-gnu-emacs@gnu.org; Sat, 28 Nov 2020 12:50:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37443) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kj4MD-0004co-T2 for bug-gnu-emacs@gnu.org; Sat, 28 Nov 2020 12:50:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kj4MD-0005PG-Ql for bug-gnu-emacs@gnu.org; Sat, 28 Nov 2020 12:50:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Trevor Bentley Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Nov 2020 17:50:01 +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.160658578620754 (code B ref 43389); Sat, 28 Nov 2020 17:50:01 +0000 Original-Received: (at 43389) by debbugs.gnu.org; 28 Nov 2020 17:49:46 +0000 Original-Received: from localhost ([127.0.0.1]:48989 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kj4Lx-0005Of-ND for submit@debbugs.gnu.org; Sat, 28 Nov 2020 12:49:45 -0500 Original-Received: from mail.trevorbentley.com ([37.187.5.80]:50503) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kj4Lv-0005OS-V4 for 43389@debbugs.gnu.org; Sat, 28 Nov 2020 12:49:44 -0500 Original-Received: from localhost (c188-150-0-48.bredband.comhem.se [188.150.0.48]) by mail.trevorbentley.com (Postfix) with ESMTPSA id 14A3D602C8; Sat, 28 Nov 2020 18:49:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mail.trevorbentley.com; s=mail; t=1606585778; bh=tILzxGkSVM2qfK+BoQ7xnGYcaqaFDdHy0l0IRBmeSzA=; h=From:To:Cc:Cc:Subject:In-Reply-To:References:Date:From; b=gsVb3bqgTSPi+zoT1chz0s4F7haFMe6wjYZox1hYRVFxVcDu436vZNQ9ct1IG4krw 4ijF7GRn/RRRap0KWqSMkN7afwUEMElANZJw/J9gS3RSwtuHH6i+HHap+88I3nt4AB Lq42PtENggcBecCnxjJtUQMgBaPoiFZlMedvDOvc= In-Reply-To: <83v9dpn9em.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:194492 Archived-At: Eli Zaretskii writes: > Just to see if we have some problem there, I left an otherwise > idle Emacs with 20 timer functions firing every second run > overnight. It gained less than 1MB of memory footprint after 10 > hours. So timers alone cannot explain the dramatic increase in > memory footprints described in this bug report, although they > might be a contributing factor when the Emacs process already > has lots of memory allocated to it. Something else worth noting is that I have dozens and dozens of emacs processes running at all times, and only graphical X11 clients have had memory explosion. Plenty of my `emacs -nw` instances have been open for 30+ days with heavy use, and all have stayed under 100MB RSS. The most recent instance I ran is a graphical instance that I haven't done anything in except scroll around in a single small elisp file. This one has an interesting difference in memory usage: the usage is large (2GB heap), but it isn't growing on its own. It seems to grow by 10-20MB every time it gets X11 window focus, and other than that it's stable. If I alt-tab to it continuously, I can force its usage up. It appears to be permanent. This differs from my emacs-slack instances, which constantly grow even when backgrounded. I have yet another graphical instance that I just opened and minimized, and never focus. It's still only using 70MB after over a week. So at least it's not simply leaking all the time... some active use has to trigger it. I'll have an mtrace for you from the current experiment (X11 focus leak) tomorrow or Monday. I hope it's the same issue. -Trevor