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 using hard disk all time Date: Thu, 26 Nov 2020 22:30:14 +0200 Message-ID: <83y2inq2sp.fsf@gnu.org> References: <83y2j0qb2v.fsf@gnu.org> <831rgppg3w.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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30964"; 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, trevor@trevorbentley.com To: Carlos O'Donell Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 26 21:31: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 1kiNv4-0007y7-7Q for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Nov 2020 21:31:10 +0100 Original-Received: from localhost ([::1]:54912 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiNv3-00012Z-9L for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Nov 2020 15:31:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48276) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiNuw-00012F-JR for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2020 15:31:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59706) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kiNuw-0002gn-BT for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2020 15:31:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kiNuw-0005Ms-8M for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2020 15:31:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Nov 2020 20:31: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.160642264320605 (code B ref 43389); Thu, 26 Nov 2020 20:31:02 +0000 Original-Received: (at 43389) by debbugs.gnu.org; 26 Nov 2020 20:30:43 +0000 Original-Received: from localhost ([127.0.0.1]:43017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kiNud-0005MH-Fh for submit@debbugs.gnu.org; Thu, 26 Nov 2020 15:30:43 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58186) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kiNub-0005M4-JQ for 43389@debbugs.gnu.org; Thu, 26 Nov 2020 15:30:42 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50264) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiNuW-0002Tr-3f; Thu, 26 Nov 2020 15:30:36 -0500 Original-Received: from [176.228.60.248] (port=2986 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kiNuT-0003hh-Re; Thu, 26 Nov 2020 15:30:35 -0500 In-Reply-To: <418751f6-41be-a5e2-908a-ea4196d5fb9b@redhat.com> (message from Carlos O'Donell on Thu, 26 Nov 2020 15:21:04 -0500) 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:194370 Archived-At: > Cc: trevor@trevorbentley.com, bugs@gnu.support, fweimer@redhat.com, > 43389@debbugs.gnu.org, dj@redhat.com, michael_heerdegen@web.de > From: Carlos O'Donell > Date: Thu, 26 Nov 2020 15:21:04 -0500 > > On 11/26/20 8:58 AM, Eli Zaretskii wrote: > > Apart of that, I think we really need to see the most significant > > customers of these functions when the memory footprint starts growing > > fast. > > It's in the mastiff captured data. > > Of the 1.7GiB it's all in Fcons: > > 448.2 MiB: Fmake_list > 270.3 MiB: in 262 places all over the place (below massif's threshold) > 704.0 MiB: list4 -> exec_byte_code > 109.7 MiB: F*_json_read_string_0 -> funcall_subr ... > 102.2 MiB: Flist -> exec_byte_code ... > 68.5 MiB: Fcopy_alist -> Fframe_parameters ... Thanks. Those are the low-level primitives, they tell nothing about the Lisp code which caused this much memory allocation. We need higher levels of callstack, and preferably in Lisp terms. GDB backtraces would show them, due to tailoring in src/.gdbinit.