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 Date: Fri, 18 Sep 2020 11:22:54 +0300 Message-ID: <83zh5n4hpd.fsf@gnu.org> References: <87r1r5428d.fsf@web.de> <87mu1sry72.fsf@mail.linkov.net> <875z8fc224.fsf@web.de> <20200915175418.GV20869@maokai> <838sda98jm.fsf@gnu.org> <20200915211209.GW20869@maokai> <83pn6l7ozj.fsf@gnu.org> <20200917204704.GA20217@maokai> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19800"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 43389@debbugs.gnu.org To: Russell Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 18 10:23:09 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 1kJBfh-00054N-RV for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Sep 2020 10:23:09 +0200 Original-Received: from localhost ([::1]:37492 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kJBfg-0006JN-TS for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Sep 2020 04:23:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60180) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kJBfb-0006Iv-1e for bug-gnu-emacs@gnu.org; Fri, 18 Sep 2020 04:23:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57447) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kJBfa-00052l-Og for bug-gnu-emacs@gnu.org; Fri, 18 Sep 2020 04:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kJBfa-0007Ko-Jh for bug-gnu-emacs@gnu.org; Fri, 18 Sep 2020 04:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Sep 2020 08:23: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.160041737128157 (code B ref 43389); Fri, 18 Sep 2020 08:23:02 +0000 Original-Received: (at 43389) by debbugs.gnu.org; 18 Sep 2020 08:22:51 +0000 Original-Received: from localhost ([127.0.0.1]:40760 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJBfO-0007K5-NQ for submit@debbugs.gnu.org; Fri, 18 Sep 2020 04:22:50 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53342) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJBfN-0007Js-2z for 43389@debbugs.gnu.org; Fri, 18 Sep 2020 04:22:49 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58610) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kJBfH-00050f-5K; Fri, 18 Sep 2020 04:22:43 -0400 Original-Received: from [176.228.60.248] (port=4837 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kJBfF-0004xR-U5; Fri, 18 Sep 2020 04:22:42 -0400 In-Reply-To: <20200917204704.GA20217@maokai> (message from Russell Adams on Thu, 17 Sep 2020 22:47:04 +0200) 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:188273 Archived-At: > Date: Thu, 17 Sep 2020 22:47:04 +0200 > From: Russell Adams > > >From Emacs memory-usage package: > > Garbage collection stats: > ((conses 16 1912248 251798) (symbols 48 54872 19) (strings 32 327552 81803) (string-bytes 1 12344346) (vectors 16 158994) (vector-slots 8 2973919 339416) (floats 8 992 4604) (intervals 56 182607 7492) (buffers 1000 195)) > > => 29.2MB (+ 3.84MB dead) in conses > 2.51MB (+ 0.89kB dead) in symbols > 10.00MB (+ 2.50MB dead) in strings > 11.8MB in string-bytes > 2.43MB in vectors > 22.7MB (+ 2.59MB dead) in vector-slots > 7.75kB (+ 36.0kB dead) in floats > 9.75MB (+ 410kB dead) in intervals > 190kB in buffers > > Total in lisp objects: 97.9MB (live 88.5MB, dead 9.36MB) > > Buffer ralloc memory usage: > 81 buffers > 4.71MB total (1007kB in gaps) > > ---------------------------------------------------------------------- > > And /proc/PID/smaps which is huge so I pastebinned it. > > https://termbin.com/2sx5 Thanks. > 56413d24a000-5642821c6000 rw-p 00000000 00:00 0 [heap] > Size: 5324272 kB > KernelPageSize: 4 kB > MMUPageSize: 4 kB > Rss: 5245496 kB > Pss: 5245496 kB > Shared_Clean: 0 kB > Shared_Dirty: 0 kB > Private_Clean: 0 kB > Private_Dirty: 5245496 kB > Referenced: 5245496 kB > Anonymous: 5245496 kB > LazyFree: 0 kB > AnonHugePages: 0 kB > ShmemPmdMapped: 0 kB > FilePmdMapped: 0 kB > Shared_Hugetlb: 0 kB > Private_Hugetlb: 0 kB > Swap: 0 kB > SwapPss: 0 kB > Locked: 0 kB > THPeligible: 0 > VmFlags: rd wr mr mw me ac So it seems to be our heap that takes most of the 5GB. It might be interesting to see which operations/commands cause this part to increase.