From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Russell Adams Newsgroups: gmane.emacs.bugs Subject: bug#43389: 28.0.50; Emacs memory leaks Date: Sat, 28 Nov 2020 20:56:31 +0100 Message-ID: <20201128195631.GK16802@maokai> References: <838sda98jm.fsf@gnu.org> <20200915211209.GW20869@maokai> <83pn6l7ozj.fsf@gnu.org> <20200917204704.GA20217@maokai> <20201126154219.GA16802@maokai> <837dq8qdpk.fsf@gnu.org> <20201126165436.GB16802@maokai> <831rgfrkl1.fsf@gnu.org> <20201127104520.GE16802@maokai> <83360votzk.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36605"; mail-complaints-to="usenet@ciao.gmane.io" Cc: fweimer@redhat.com, 43389@debbugs.gnu.org, dj@redhat.com, michael_heerdegen@web.de, trevor@trevorbentley.com, carlos@redhat.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 28 20:57:15 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 1kj6LK-0009Oi-W4 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 28 Nov 2020 20:57:14 +0100 Original-Received: from localhost ([::1]:54858 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kj6LK-00041o-1C for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 28 Nov 2020 14:57:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38490) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kj6L9-00040p-AW for bug-gnu-emacs@gnu.org; Sat, 28 Nov 2020 14:57:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37599) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kj6L8-0003wV-H2 for bug-gnu-emacs@gnu.org; Sat, 28 Nov 2020 14:57:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kj6L8-0002Af-GP for bug-gnu-emacs@gnu.org; Sat, 28 Nov 2020 14:57:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Russell Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Nov 2020 19:57: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.16065934008318 (code B ref 43389); Sat, 28 Nov 2020 19:57:02 +0000 Original-Received: (at 43389) by debbugs.gnu.org; 28 Nov 2020 19:56:40 +0000 Original-Received: from localhost ([127.0.0.1]:49145 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kj6Km-0002A5-Ea for submit@debbugs.gnu.org; Sat, 28 Nov 2020 14:56:40 -0500 Original-Received: from se05.route25.eu ([185.87.186.222]:54419) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kj6Ki-00029t-Vw for 43389@debbugs.gnu.org; Sat, 28 Nov 2020 14:56:38 -0500 Content-Disposition: inline In-Reply-To: <83360votzk.fsf@gnu.org> X-Originating-IP: 185.87.185.80 X-SpamExperts-Domain: out.pcextreme.nl X-SpamExperts-Username: 185.87.185.80 Authentication-Results: route25.eu; auth=pass smtp.auth=185.87.185.80@out.pcextreme.nl X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.11) X-Recommended-Action: accept X-Filter-ID: Mvzo4OR0dZXEDF/gcnlw0ecN11dQIc3aKzz9DU5dqGmpSDasLI4SayDByyq9LIhVAq3DKs/sLL8N 5F3RMk1wo0TNWdUk1Ol2OGx3IfrIJKyP9eGNFz9TW9u+Jt8z2T3KeftVfXhxMQ04j8ndL5E8bbUS i56EfQ0rdWR4P39S1IpCG43jNckTsnu0Vma2B9rT/7TBeJCtE/3PtdoOyjKfDx66OOYZs3a1h0KV b1jwoZlGVm5pZgqyMrcMDB2tS/rO3rA0PMtQ+y0aX4NDRLp2xIUgUBeIBK51+WfVeHZIBkajcXRJ xrYzcB206EtR3hhq2s1Xp8nFtzJT3aBfCBDkL9lnibl3vcBqVmvQB4A18ac7dywIp6IjpzPfGPLH sDKzAVXirbLuJjy3NtnGWLbnBPSflyeJj6AFoLCUmqyOCtOWTg2esdlueWtJ8prBt64Mg8CBO1Sn vm6qXHQp7O9kdYkcpBMgcR761AjiNShpFdRwYZEtAFUQ4Jd7177NiPzHS8KWaecotq4zBypQ19eU 2GxrlyZPzyn5edZSesYokAKItBMasm7pZA/O6yBhF8ofxGP8GhEQ1f+yBicGv+yRcznV71gErS0C 0wftxHOa3oGCYOsnTY2OA0dQlbWm0xSdEE6z2imBWb46X5I8GpyRFRKz7c/NnxVl92HbT0+343Te OQNHQEdjU4M5JFrls8Or8R3kmST+8AM1EOydCf8J/ZhEHfx/kJUlKY/jXVFcuqwgr/U0flMcy2Vi /IcBgY4acnKqPguWcFDuAX4XQPeF/4m2NAvgI4s8HRo3pEptO2+mTg8kj7EIi2j7xoIQhElAhhOD hDC2adW/ZikdubSTH0s+a/uhLBiza X-Report-Abuse-To: spam@semaster01.route25.eu 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:194505 Archived-At: On Fri, Nov 27, 2020 at 02:38:07PM +0200, Eli Zaretskii wrote: > > Unfortunately the Emacs that was 8GB has since been stopped, I killed > > it before working with the trace files. My laptop was rebooted later > > when the trace statistics utils ate all the RAM (my error, wrong input > > file). > > > > This list of timers is from a new instance, but the configuration > > hasn't changed. > > > > Are the 50+GB of trace files I have of any value? > > I don't think Carlos and others saw your reports, because they were > not CC'ed. I'm CC'ing them now; please make sure to reply to all of > them next time. > > Carlos, please read > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=43389#554 > > for the details posted by Russel about his data points. If you can > instruct him how to produce some analysis from the mtrace files, or > how to make them available for your analysis, please do. I find particularly of interest the growth of Emacs processes while idle. Yesterday I restarted Emacs and over the next 18 hours I left my laptop idle with Emacs as the focused application. My Emacs has grown to 3GB and every time I select my Emacs window it will grow by a few MB while I watch in htop. I will restart it again tonight and leave it focused, and see if I can reproduce the growth. It also appears that the growth is not linear, slower at first and hard to see, but in the multiple MB at a time later when the total is in GB. Again I use emacs in daemon mode with one or more emacsclient processes connected (x11 and terminal). I use StumpWM in full screen mode with my emacsclient, and if it's focused it seems the growth continues despite xscreensaver coming on and dimming the screen. ------------------------------------------------------------------ Russell Adams RLAdams@AdamsInfoServ.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3