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: Wed, 25 Nov 2020 21:22:02 +0200 Message-ID: <83360xs0md.fsf@gnu.org> References: <86y2j2brg2.fsf@protected.rcdrun.com> <83blfxth7c.fsf@gnu.org> <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> <87ft4ytw2c.fsf@mail.trevorbentley.com> <83d002tuoo.fsf@gnu.org> <87d001u46f.fsf@mail.trevorbentley.com> <83d001s50b.fsf@gnu.org> <87lfeptfwy.fsf@mail.trevorbentley.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27781"; mail-complaints-to="usenet@ciao.gmane.io" Cc: fweimer@redhat.com, 43389@debbugs.gnu.org, bugs@gnu.support, dj@redhat.com, carlos@redhat.com, michael_heerdegen@web.de To: Trevor Bentley Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 25 20:23:13 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 1ki0Nl-00077V-Oj for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Nov 2020 20:23:13 +0100 Original-Received: from localhost ([::1]:41356 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ki0Nk-0007f9-Qm for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Nov 2020 14:23:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49366) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ki0Nb-0007ct-5O for bug-gnu-emacs@gnu.org; Wed, 25 Nov 2020 14:23:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53771) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ki0Na-0002PN-Dy for bug-gnu-emacs@gnu.org; Wed, 25 Nov 2020 14:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ki0Na-0006rP-Au for bug-gnu-emacs@gnu.org; Wed, 25 Nov 2020 14:23: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: Wed, 25 Nov 2020 19: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.160633213126300 (code B ref 43389); Wed, 25 Nov 2020 19:23:02 +0000 Original-Received: (at 43389) by debbugs.gnu.org; 25 Nov 2020 19:22:11 +0000 Original-Received: from localhost ([127.0.0.1]:37084 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ki0Mk-0006q8-TS for submit@debbugs.gnu.org; Wed, 25 Nov 2020 14:22:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59178) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ki0Mj-0006pv-EJ for 43389@debbugs.gnu.org; Wed, 25 Nov 2020 14:22:09 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51086) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ki0Md-00025l-BJ; Wed, 25 Nov 2020 14:22:03 -0500 Original-Received: from [176.228.60.248] (port=1597 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ki0Mc-0001IQ-J2; Wed, 25 Nov 2020 14:22:03 -0500 In-Reply-To: <87lfeptfwy.fsf@mail.trevorbentley.com> (message from Trevor Bentley on Wed, 25 Nov 2020 20:06:21 +0100) 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:194231 Archived-At: > From: Trevor Bentley > Cc: bugs@gnu.support, fweimer@redhat.com, 43389@debbugs.gnu.org, > dj@redhat.com, michael_heerdegen@web.de, carlos@redhat.com > Cc: > Date: Wed, 25 Nov 2020 20:06:21 +0100 > > > "Freed" in what sense? returned to glibc? > > I was referring to glibc malloc/free, but emacs internal > allocations would also be interesting. It's a moot point, as I > don't think emacs supports it. In short, the question is "what > has garbage-collect done?" It prints the state of memory after it > is finished, but I have no idea if it has actually "collected" > anything. GC always frees something, don't worry about that. Your chances of finding Emacs in a state that it has no garbage to free are nil. > I just set garbage-collection-messages to non-nil and evaluated > (garbage-collect), and nothing was printed... ??? really? That can only happen if memory-full is non-nil. Is it? > you are suggesting that it should print something to *Messages*, > right? No, in the echo area. these messages don't go to *Messages*. > I've never tried emacs's profiler. I'll try that next time I do a > big garbage-collect and see what it shows. That won't help in this case: GC is in C, and the profiler doesn't profile C code that is not exposed to Lisp.