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: Fri, 27 Nov 2020 11:45:20 +0100 Message-ID: <20201127104520.GE16802@maokai> References: <875z8fc224.fsf@web.de> <20200915175418.GV20869@maokai> <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> 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="30074"; mail-complaints-to="usenet@ciao.gmane.io" To: 43389@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 27 11:46:45 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 1kibH2-0007iP-Ho for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 Nov 2020 11:46:44 +0100 Original-Received: from localhost ([::1]:49890 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kibH1-00051u-Jz for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 Nov 2020 05:46:43 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33422) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kibGM-0004S5-Km for bug-gnu-emacs@gnu.org; Fri, 27 Nov 2020 05:46:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60781) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kibGM-0000In-AQ for bug-gnu-emacs@gnu.org; Fri, 27 Nov 2020 05:46:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kibGM-0001PM-7c for bug-gnu-emacs@gnu.org; Fri, 27 Nov 2020 05:46: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: Fri, 27 Nov 2020 10:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43389 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16064739395374 (code B ref -1); Fri, 27 Nov 2020 10:46:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Nov 2020 10:45:39 +0000 Original-Received: from localhost ([127.0.0.1]:44094 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kibFy-0001Ob-Jt for submit@debbugs.gnu.org; Fri, 27 Nov 2020 05:45:39 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:47016) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kibFw-0001OS-P8 for submit@debbugs.gnu.org; Fri, 27 Nov 2020 05:45:37 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33302) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kibFw-00042l-GQ for bug-gnu-emacs@gnu.org; Fri, 27 Nov 2020 05:45:36 -0500 Original-Received: from se18.route25.eu ([2a00:f10:400:4:1c00:18ff:fe00:1617]:44292) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kibFo-0008PH-RM for bug-gnu-emacs@gnu.org; Fri, 27 Nov 2020 05:45:35 -0500 Mail-Followup-To: bug-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <831rgfrkl1.fsf@gnu.org> X-Originating-IP: 185.87.184.57 X-SpamExperts-Domain: out.pcextreme.nl X-SpamExperts-Username: 185.87.184.57 Authentication-Results: route25.eu; auth=pass smtp.auth=185.87.184.57@out.pcextreme.nl X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.14) X-Recommended-Action: accept X-Filter-ID: Mvzo4OR0dZXEDF/gcnlw0ecN11dQIc3aKzz9DU5dqGmpSDasLI4SayDByyq9LIhVXL2pm6jngj6P fUXcDYIHsUTNWdUk1Ol2OGx3IfrIJKywOmJyM1qr8uRnWBrbSAGD0VsY0HzEkBzUTjuObUvkgtQ5 3pMmTXeVbblO3cSIiVC6xN67yBfQb4yNgJkfG5otJODXbtOodkPED+RkHjVGH9gpfPe2lDQBFQc5 pWKjU8U1TnR+f0U9cu064nZcMieLAqdkk6hppCDsqsBwLjHur1XxB26GtR7aQdGQ3RxVouttwXp1 RdEU8VHZI5KGZSviaHwJ2eESrUp0Iw/gSJ3HqMuR600P9eQ3vodupN36MrkzGQZS068e3EYTgNAB jZkD8TzPF4eG61o+cxFZrUIXowfXJosMX5ZQSlYSVlCDu2na8Lc2iK0mXNgodhRh0E6+UMVFei1G 2PrSIU9EwioS70yFBF2moUWeHNDS4qZDIDBdjx85xQq9VD42UbTRudBo31/E3ahF5MMcDI7KdpjQ KULbtCr8aoTjHIUEuG3LCVsCW2UOyugPPaOGK1ZclZhyJ1oAKHx1qHjvOGXm6QB+mk6ZTzCPKsFf twxbkg5OTEJBSZDxFdMdjhWKQRs1y634NtkDir044XKUvwzb23wQ7pgpf21taAxkVvyytXnHYuRC sfsWpWpZETi3iGJnui/pB5hQ6nsDvccjqgmDvD9Wh3hTQMCZFfPbwKEtSeDoMAHujwN5vAr2fQEN gxhN/KmvEyoAEK4rsNWk4mvtBc9RUVZYb+q6sUBKbKRJ7t2JzkiGuP0YIX8qMA5MLNz4roJ5XkZx xjtVUSKP0SAjfC/Jzazwe+LlFCfFv X-Report-Abuse-To: spam@semaster01.route25.eu Received-SPF: pass client-ip=2a00:f10:400:4:1c00:18ff:fe00:1617; envelope-from=rladams@adamsinfoserv.com; helo=se18.route25.eu X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:194436 Archived-At: On Thu, Nov 26, 2020 at 09:20:42PM +0200, Eli Zaretskii wrote: > > Date: Thu, 26 Nov 2020 17:54:36 +0100 > > From: Russell Adams > > > > At one point I was watching htop and every time I switched to the > > Emacs window and returned to htop, I'd see it grow by several more MB > > over 3-5 seconds and then stop. So I left Emacs as the focused window > > overnight, and it grew from 4GB to 8GB. > > > > In this instance, I had my cursor at the bottom of a saved Org file. I > > wasn't even actively typing or interacting with Emacs. I just grew > > each time it got window focus. > > OK, so an idling Emacs with one focused frame gains about 0.5GB every > hour, would that be more or less accurate? > > > Yes I have a few timers, but those trip at midnight. I call org-agenda > > and org-caldev-sync. I don't have any other timers that I know of. > > Just so we have the hard evidence: could you please show the values of > timer-list and timer-idle-list on that system? > > Thanks. > 3.15 1.00 appt-check 8.38 - undo-auto--boundary-timer 117.38 5.00 savehist-autosave 1143.17 60.00 url-cookie-write-file 44223.15 1440.00 org-save-all-org-buffers 44283.15 1440.00 org-agenda-list 44343.15 1440.00 org-caldav-sync * 0.00 t show-paren-function * 0.50 t #f(compiled-function () # [jit-lock--antiblink-grace-timer jit-lock-context-fontify]) * 1.00 - helm-ff--cache-mode-refresh 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? ------------------------------------------------------------------ Russell Adams RLAdams@AdamsInfoServ.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3