From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Trevor Bentley Newsgroups: gmane.emacs.bugs Subject: bug#43389: 28.0.50; Emacs memory leaks using hard disk all time Date: Thu, 26 Nov 2020 16:19:53 +0100 Message-ID: <877dq8taau.fsf@mail.trevorbentley.com> 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> <522e3cc0-c563-3308-7264-1b09cd5e264b@redhat.com> <87a6v4thst.fsf@mail.trevorbentley.com> <83eekgqjgp.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27646"; 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: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 26 16:22:08 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 1kiJ5z-00073t-VZ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Nov 2020 16:22:08 +0100 Original-Received: from localhost ([::1]:37656 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiJ5z-0007iJ-0c for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Nov 2020 10:22:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48478) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiJ52-0006b6-Pr for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2020 10:21:08 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59172) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kiJ4v-0000Yw-OC for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2020 10:21:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kiJ4v-0001nf-Kf for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2020 10:21:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Trevor Bentley Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Nov 2020 15:21: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.16064040036816 (code B ref 43389); Thu, 26 Nov 2020 15:21:01 +0000 Original-Received: (at 43389) by debbugs.gnu.org; 26 Nov 2020 15:20:03 +0000 Original-Received: from localhost ([127.0.0.1]:42481 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kiJ3z-0001ls-3h for submit@debbugs.gnu.org; Thu, 26 Nov 2020 10:20:03 -0500 Original-Received: from mail.trevorbentley.com ([37.187.5.80]:36253) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kiJ3w-0001lJ-Dk for 43389@debbugs.gnu.org; Thu, 26 Nov 2020 10:20:01 -0500 Original-Received: from localhost (c188-150-0-48.bredband.comhem.se [188.150.0.48]) by mail.trevorbentley.com (Postfix) with ESMTPSA id 5BB8B6022A; Thu, 26 Nov 2020 16:19:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mail.trevorbentley.com; s=mail; t=1606403994; bh=8ULAdeamrKicVJGyra7OtJ6pqQRISSKWomIGeu1DZ3M=; h=From:To:Cc:Cc:Subject:In-Reply-To:References:Date:From; b=i5gLLlULhjstMLZ2o4su9x2q95mD7zbwTU+bt84PngEGgjRakmH2zgaABCJQIuh4Z 8PvNmK3bUeUoWYbaiS7dx2dYau15RJPLeqp6+fnQhmubx+XWweBks89MnQlJn0VggE mp498PUI/MVMt33iTIWFkdfyWGksFcSPGX6YbXGo= In-Reply-To: <83eekgqjgp.fsf@gnu.org> 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:194341 Archived-At: >> If it's one trace per thread, though, then we at least know >> that my emacs process in question is blazing through threads. > > I don't see how this could be true, unless some library you use > (ImageMagick?) starts a lot of threads. Emacs itself is > single-threaded, and the only other threads are those from GTK, > which should be very few (like, 4 or 5). This assumes you > didn't use Lisp threads, of course. Oh, it may be subprocesses instead of threads. emacs-slack is doing all sorts of things, involving both ImageMagick and launching curl subprocesses. Is there a way to prevent libmtrace from following children? I've just hooked make-process and make-thread, and see both being called back-to-back very often for spawning curl subprocesses. >> This printed a start and stop message each time I evaluated >> garbage-collect manually. It did not print any messages in 11 >> hours of running unattended. > > That's expected, because the automatic GC doesn't call > garbage-collect. garbage-collect is just a thin wrapper around > a C function, called garbage_collect, and the automatic GC calls > that function directly from C. And you cannot advise C > functions not exposed to Lisp. > > If you want to have record of the times it took each GC to run, > you will have to modify the C sources. Gotcha. No surprise, then. -Trevor