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: Sat, 12 Dec 2020 21:20:52 +0200 Message-ID: <83pn3eesq3.fsf@gnu.org> References: <83y2j0qb2v.fsf@gnu.org> <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> <83y2inq2sp.fsf@gnu.org> <60253612-49f0-a1aa-b9e6-39cfef8d62b5@redhat.com> <83mtz3p7qy.fsf@gnu.org> <83lfenp78f.fsf@gnu.org> <83h7pbp5wh.fsf@gnu.org> <83v9dpn9em.fsf@gnu.org> <87sg8ts766.fsf@mail.trevorbentley.com> <87pn3usr13.fsf@mail.trevorbentley.com> <87eek0rmqa.fsf@mail.trevorbentley.com> <83zh2l33fv.fsf@gnu.org> <87zh2jqnhi.fsf@mail.trevorbentley.com> <837dpn1ccp.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33620"; mail-complaints-to="usenet@ciao.gmane.io" Cc: fweimer@redhat.com, 43389@debbugs.gnu.org, bugs@gnu.support, dj@redhat.com, carlos@redhat.com, trevor@trevorbentley.com, michael_heerdegen@web.de To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 12 20:28:40 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 1koAZM-0008d5-6f for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Dec 2020 20:28:40 +0100 Original-Received: from localhost ([::1]:35392 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1koAZL-0004Mc-89 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Dec 2020 14:28:39 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59902) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koASv-0000X8-Vy for bug-gnu-emacs@gnu.org; Sat, 12 Dec 2020 14:22:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35031) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1koASv-0000Ep-Me for bug-gnu-emacs@gnu.org; Sat, 12 Dec 2020 14:22:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1koASv-00040K-I8 for bug-gnu-emacs@gnu.org; Sat, 12 Dec 2020 14:22:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Dec 2020 19:22:01 +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.160780087715341 (code B ref 43389); Sat, 12 Dec 2020 19:22:01 +0000 Original-Received: (at 43389) by debbugs.gnu.org; 12 Dec 2020 19:21:17 +0000 Original-Received: from localhost ([127.0.0.1]:46577 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koASC-0003zN-QE for submit@debbugs.gnu.org; Sat, 12 Dec 2020 14:21:17 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38052) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koASB-0003z8-FY for 43389@debbugs.gnu.org; Sat, 12 Dec 2020 14:21:15 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:49939) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1koAS5-0008Pa-I2; Sat, 12 Dec 2020 14:21:09 -0500 Original-Received: from [176.228.60.248] (port=2155 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1koAS4-0001JK-4x; Sat, 12 Dec 2020 14:21:09 -0500 In-Reply-To: (message from Stefan Monnier on Sat, 12 Dec 2020 14:14:39 -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:195860 Archived-At: > From: Stefan Monnier > Cc: Trevor Bentley , carlos@redhat.com, > fweimer@redhat.com, 43389@debbugs.gnu.org, bugs@gnu.support, > dj@redhat.com, michael_heerdegen@web.de > Date: Sat, 12 Dec 2020 14:14:39 -0500 > > >> Not only that, but I added printfs in emacs itself around the > >> garbage_collect() and gc_sweep() functions. Each line prints the > >> unix timestamp when it began, and the 'end' lines print the > >> duration since the start. You can see that the entire 50 minutes > >> was spent in gc_sweep(): > > > > I think this is expected if you have a lot of objects to sweep. > > Actually, I'm surprised most of the time is spent in gc_sweep: > mark_object is usually where most of the time is spent, so this suggests > that the total heap size is *much* larger than the amount of live objects. Sure. But isn't that the same as what I said, just from another POV? "A lot of objects to sweep" means there are many objects that aren't live and need to have their memory freed. Since GC wasn't run for many hours, having a lot of garbage to collect is expected, right?