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: Tue, 15 Sep 2020 23:12:09 +0200 Message-ID: <20200915211209.GW20869@maokai> References: <87r1r5428d.fsf@web.de> <87mu1sry72.fsf@mail.linkov.net> <875z8fc224.fsf@web.de> <20200915175418.GV20869@maokai> <838sda98jm.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="8741"; 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 Tue Sep 15 23:13:50 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 1kIIGs-0002B8-AS for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 15 Sep 2020 23:13:50 +0200 Original-Received: from localhost ([::1]:55152 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIIGr-0005zq-CN for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 15 Sep 2020 17:13:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43572) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIIG6-0005TY-M4 for bug-gnu-emacs@gnu.org; Tue, 15 Sep 2020 17:13:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49156) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kIIG6-0000Zn-9z for bug-gnu-emacs@gnu.org; Tue, 15 Sep 2020 17:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kIIG6-0003c7-3o for bug-gnu-emacs@gnu.org; Tue, 15 Sep 2020 17:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Russell Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Sep 2020 21:13: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.160020434413847 (code B ref -1); Tue, 15 Sep 2020 21:13:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Sep 2020 21:12:24 +0000 Original-Received: from localhost ([127.0.0.1]:60702 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIIFU-0003bH-3C for submit@debbugs.gnu.org; Tue, 15 Sep 2020 17:12:24 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:47610) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIIFS-0003b9-0a for submit@debbugs.gnu.org; Tue, 15 Sep 2020 17:12:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43416) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIIFR-00054K-Ro for bug-gnu-emacs@gnu.org; Tue, 15 Sep 2020 17:12:21 -0400 Original-Received: from se13.route25.eu ([2a00:f10:121:a00:1c00:efff:fe00:1854]:52756) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIIFO-0000X7-C1 for bug-gnu-emacs@gnu.org; Tue, 15 Sep 2020 17:12:21 -0400 Content-Disposition: inline In-Reply-To: <838sda98jm.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.13) X-Recommended-Action: accept X-Filter-ID: Mvzo4OR0dZXEDF/gcnlw0Z1apovzGPsYhEeBL1aoZmqpSDasLI4SayDByyq9LIhVEmGyau1Uyelx X/cKZEiXTUTNWdUk1Ol2OGx3IfrIJKywOmJyM1qr8uRnWBrbSAGD0VsY0HzEkBzUTjuObUvkgtQ5 3pMmTXeVbblO3cSIiVBLT1RndkM5nmOQAIq8n7jKJODXbtOodkPED+RkHjVGH9gpfPe2lDQBFQc5 pWKjU8U1TnR+f0U9cu064nZcMieLAqdkk6hppCDsqsBwLjHur1XxB26GtR7aQdGQ3RxVouuEZ9Nq eiQHl0oUF/vn0ZGBaHwJ2eESrUp0Iw/gSJ3HqMuR600P9eQ3vodupN36MrkzGQZS068e3EYTgNAB jZkD8TzPF4eG61o+cxFZrUIXowfXJosMX5ZQSlYSVlCDu2na8Lc2iK0mXNgodhRh0E6+UMVFei1G 2PrSIU9EwioS70yFBF2moUWeHNDS4qZDIDBdjx85xQq9VD42UbTRudBo31/E3ahF5MMcDI7KdpjQ KULbtCr8aoTjHIUEuG3LCVsCW2UOyugPPaOGK1ZclZhyJ1oAKHx1qHjvOGXm6QB+mk6ZTzCPKsFf twxbkg5OTEJBSZDxFdMdjhWKQRs1y634PNxyi5hJyfZTqqCPnGEeWnCZYEPFJ9jPhhI9UQAFTdDr MKKTH7ka+rJhvkWIY195B5hQ6nsDvccjqgmDvD9Wh3hTQMCZFfPbwKEtSeDoMAHujwN5vAr2fQEN gxhN/KmvEyoAEK4rsNWk4mvtBc9RUVZYb+q6sUBKbKRJ7t2JzkiGuP0YIX8qMA5MLNz4roJ5/dHN uNB9bmpAJjm56srzOup6Sq1ZDctSm X-Report-Abuse-To: spam@semaster01.route25.eu Received-SPF: pass client-ip=2a00:f10:121:a00:1c00:efff:fe00:1854; envelope-from=rladams@adamsinfoserv.com; helo=se13.route25.eu X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/15 17:12:12 X-ACL-Warn: Detected OS = ??? 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:188153 Archived-At: On Tue, Sep 15, 2020 at 09:52:45PM +0300, Eli Zaretskii wrote: > > htop says my emacs RSS is now 5148MB. I ran M-x garbage-collect and it ran > > Can you use some utility that produces a memory map of an application, > and see how much of those 5GB are actually free for allocation by > Emacs? Any suggestions? I still have it running. I used htop because it shows a sane total value. > Also, do you see any libraries used by Emacs that have high > memory usage? Emacs is the top memory usage on my laptop, firefox is second at 2GB. The rest are <1G. > 28% and 33% of what amount? 16GB > If your RSS is 5GB after 4 days of uptime, and the memory footprint > grows at a constant rate, it would mean more than 1GB per day. But > I'm guessing that 33% - 28% = 5% of your total memory is much less > than 1GB. No, 33% is ~5GB. ;] > In which case the memory footprint must sometimes jump by > very large amounts, not grow slowly and monotonically each day. > Right? So which events cause those sudden increases in RSS? I can't say. I have a few megs total in buffers open, and I've run org-caldav a few times to upload. Mostly org-mode buffers open, a few mail buffers (not gnus, just mail-mode editing mutt files), package list, and cruft. Not actively doing any development, just editing Org files. I don't recall having edited any huge files in the last 4 days. > Also, what is your value of gc-cons-threshold, and do you have some > customizations that change its value under some conditions? If so, > please tell the details. gc-cons-threshold is 800000 (#o3032400, #xc3500). No customization that I'm aware of to memory. The only thing that may be relative is my savehist settings, but that file is only 98k (down from 500meg in emacs 26). I've now limited my savehists. ------------------------------------------------------------------ Russell Adams RLAdams@AdamsInfoServ.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3