From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#43389: 28.0.50; Emacs memory leaks using hard disk all time Date: Thu, 10 Dec 2020 14:21:16 -0500 Message-ID: References: <83y2j0qb2v.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> <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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19039"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: fweimer@redhat.com, 43389@debbugs.gnu.org, bugs@gnu.support, dj@redhat.com, carlos@redhat.com, Trevor Bentley , michael_heerdegen@web.de To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 10 20:23:43 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 1knRXS-0004on-9q for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Dec 2020 20:23:42 +0100 Original-Received: from localhost ([::1]:49072 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1knRXR-0007OQ-CO for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Dec 2020 14:23:41 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50236) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1knRVq-0006Wj-GD for bug-gnu-emacs@gnu.org; Thu, 10 Dec 2020 14:22:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55995) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1knRVq-0000GH-4J for bug-gnu-emacs@gnu.org; Thu, 10 Dec 2020 14:22:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1knRVq-0004r7-0l for bug-gnu-emacs@gnu.org; Thu, 10 Dec 2020 14:22:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 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.160762808918627 (code B ref 43389); Thu, 10 Dec 2020 19:22:01 +0000 Original-Received: (at 43389) by debbugs.gnu.org; 10 Dec 2020 19:21:29 +0000 Original-Received: from localhost ([127.0.0.1]:39308 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1knRVI-0004qN-Vn for submit@debbugs.gnu.org; Thu, 10 Dec 2020 14:21:29 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:17610) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1knRVF-0004q6-Qg for 43389@debbugs.gnu.org; Thu, 10 Dec 2020 14:21:27 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 2A88580381; Thu, 10 Dec 2020 14:21:20 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 218118033C; Thu, 10 Dec 2020 14:21:18 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1607628078; bh=wNkJ2rhZDUx4/CJIXQXWPLc2/2ZPWP7TxRon4J7vA1A=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=H7UvQVRved8iViksoIyCPOHnV5eLHyFZMH4BPehjz8r0BHIYCLHBM8DLIrYvqMVpa SIhPCsg1nIXW9yLtcxy52ydU2Rn8Rq/Cc9Qk811glcFqgKcmbOpgvm/fsBLRpZP1nt Hsw0bxDQ3uUvH9yrnWgTKZVwBq8pwf136Fz1/5M1mDzkhQkpXdTmDZ2XNkkSErAKKL dk3LiZZnDdl/Og0v2NPXcMnE5jKnjmP3/WCQP3k3pBEnvGKJumVm/KkHfdb2/abrTe Ce2swig99VPpTyupjSlKI+AmGmG2KDw7i8nziclGRYsfdaSw9zI4jp2cvWAA9nyx3O hee5pDFYODx3g== Original-Received: from alfajor (69-165-136-52.dsl.teksavvy.com [69.165.136.52]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id B66EA120340; Thu, 10 Dec 2020 14:21:17 -0500 (EST) In-Reply-To: <83zh2l33fv.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 10 Dec 2020 20:45:40 +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:195688 Archived-At: > 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 and then shows us this report (using C-u RET on the top-level elements to unfold them). Stefan