From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.bugs Subject: bug#43389: 28.0.50; Emacs memory leaks using hard disk all time Date: Thu, 10 Dec 2020 23:30:05 +0300 Message-ID: References: <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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34569"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.0 (3d08634) (2020-11-07) Cc: fweimer@redhat.com, 43389@debbugs.gnu.org, dj@redhat.com, carlos@redhat.com, Trevor Bentley , michael_heerdegen@web.de To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 10 22:48:26 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 1knTnV-0008sW-Us for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Dec 2020 22:48:25 +0100 Original-Received: from localhost ([::1]:48858 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1knTnT-0002HB-CN for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Dec 2020 16:48:25 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58942) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1knTlD-0001M3-8f for bug-gnu-emacs@gnu.org; Thu, 10 Dec 2020 16:46:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56184) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1knTlD-0007it-1S for bug-gnu-emacs@gnu.org; Thu, 10 Dec 2020 16:46:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1knTlC-0004Ax-Vq for bug-gnu-emacs@gnu.org; Thu, 10 Dec 2020 16:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jean Louis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Dec 2020 21:46: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.160763676116032 (code B ref 43389); Thu, 10 Dec 2020 21:46:02 +0000 Original-Received: (at 43389) by debbugs.gnu.org; 10 Dec 2020 21:46:01 +0000 Original-Received: from localhost ([127.0.0.1]:39495 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1knTlB-0004AR-37 for submit@debbugs.gnu.org; Thu, 10 Dec 2020 16:46:01 -0500 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:44699) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1knTl5-00049m-Hj for 43389@debbugs.gnu.org; Thu, 10 Dec 2020 16:45:55 -0500 Original-Received: from localhost ([::ffff:41.202.241.31]) (AUTH: PLAIN securesender, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 000000000001E532.000000005FD2970C.000059E5; Thu, 10 Dec 2020 14:45:48 -0700 Content-Disposition: inline In-Reply-To: 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:195712 Archived-At: * Stefan Monnier [2020-12-10 22:21]: > > Trevor reported several times that automatic GC is fast as usual, but > > manual invocations of "M-x garbage-collect" take much longer, many > > minutes. I don't understand how this could happen, because both > > methods of invoking GC do exactly the same job. > > Indeed, that makes no sense. The only thing that comes to mind is that > when they do `M-x garbage-collect` the 15 minutes aren't actually spent > in the GC but in some pre/post command hook or something like that > (e.g. in `execute-extended-command--shorter`)? > > Do we have a `profiler-report` available for those 15 minutes? > I've taken a quick look at the massive threads in that bug report, > but haven't had the time to read in detail. AFAICT we don't have a > profiler output for those 15minutes, so it would be good to try: > > M-x profiler-start RET RET > M-x garbage-collect RET ;; This should presumably take several minutes > M-x profiler-report RET Another issue is that since I use LD_PRELOAD with gmalloc trace is that I have not encountered high swapping and Emacs being totally unusable. And I have not upgraded Emacs. Changed basically nothing but using the mtrace. What I can still observe is that vsize grows high as usual. But I have not observed swap growing high or that hard disk starts working to find some swap memory for 40 minutes or longer indefinitely maybe.