From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Carlos O'Donell Newsgroups: gmane.emacs.bugs Subject: bug#43389: 28.0.50; Emacs memory leaks using hard disk all time Date: Thu, 26 Nov 2020 23:54:21 -0500 Organization: Red Hat Message-ID: <6fe9ab5a-3995-acb2-eaea-9c269f86a604@redhat.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> <877dq8taau.fsf@mail.trevorbentley.com> 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="16520"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 Cc: fweimer@redhat.com, 43389@debbugs.gnu.org, bugs@gnu.support, dj@redhat.com, michael_heerdegen@web.de To: Trevor Bentley , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 27 05:55:14 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 1kiVmp-0004A0-Vh for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 Nov 2020 05:55:12 +0100 Original-Received: from localhost ([::1]:57846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiVmp-0000Wc-1L for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Nov 2020 23:55:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49096) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiVmg-0000Un-EN for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2020 23:55:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60147) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kiVmg-0005yb-4w for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2020 23:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kiVmg-0002qa-3C for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2020 23:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Carlos O'Donell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 Nov 2020 04:55: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.160645287010899 (code B ref 43389); Fri, 27 Nov 2020 04:55:02 +0000 Original-Received: (at 43389) by debbugs.gnu.org; 27 Nov 2020 04:54:30 +0000 Original-Received: from localhost ([127.0.0.1]:43460 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kiVmA-0002pj-0u for submit@debbugs.gnu.org; Thu, 26 Nov 2020 23:54:30 -0500 Original-Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:30993) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kiVm6-0002pZ-60 for 43389@debbugs.gnu.org; Thu, 26 Nov 2020 23:54:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1606452866; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3ik/T3V3VjYkPiMim+DrOvi39YsNvFDKcTf4oz0icg8=; b=fWVOqTCI5vmvRdzIP7RkSAjbV6ecOA86lXm/gZ8cPunXprZCEeRgch3n0oc9GOduTFINB8 h20qFLvN1xExIYkbt2zUrONY4cFeV/t76MODaLs9rfcNgs2xBkuSTO/kp1zhSmGNvoM7lN eMiUmfcw/svFhDuO0JiQakzJZwzD438= Original-Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-20-UarM3hKhN_iPW2Ito6yXCA-1; Thu, 26 Nov 2020 23:54:24 -0500 X-MC-Unique: UarM3hKhN_iPW2Ito6yXCA-1 Original-Received: by mail-qt1-f197.google.com with SMTP id f19so2476793qtx.6 for <43389@debbugs.gnu.org>; Thu, 26 Nov 2020 20:54:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=3ik/T3V3VjYkPiMim+DrOvi39YsNvFDKcTf4oz0icg8=; b=K1MniYl1W9vN8HcS4ewlHqH7aRb1gQjfT1+hjwfB2TGb2a+dw/UoHtpaVAqAbDLdp1 oi1y78VHoYYZqRauLbgwPyEug4vZjNGz7kDO0AVWd4JocWb1TZPzsiD0JfrEI2/HmNWo R2AXH7yQDaRaMqBKqtFWPXFkJiizNKRXD4hGmKmWITpuY8mK0V8yd59mqnQVhUqqYmId JdjWp5COKBp9QFnJoGtFW88qqryqshERGJdCazCUKlss9Xpz5PkOSfe6MU8qzwbwppbT 4jl8pOKz/Sm0A0p2gjycmG6JBsup79FXvQZK33TYPpNP7rDsYZuPfTKpTxtGhclEoCwr 5Gtg== X-Gm-Message-State: AOAM532dMz9iSRvK/evSUCZlcX1HIFigB2ehuriZQLGks9pJrBH9llWA NT1PpcfdggME05l+1cI5YtOXYhZTcXC2QuOEcIqkYXd+oBeTAE1wE1BxToZhmvYqjUC8Z8UoQCg uxhaQ5qvGe5aWUKk= X-Received: by 2002:aed:2823:: with SMTP id r32mr6479297qtd.199.1606452863889; Thu, 26 Nov 2020 20:54:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJzwmRtbH7wmj25FxuOWXrvs/ZL6Uz7DvkQhogsXu8KCg1jkZ+cfINhW0TVl82lEZWyuVxVwTA== X-Received: by 2002:aed:2823:: with SMTP id r32mr6479281qtd.199.1606452863712; Thu, 26 Nov 2020 20:54:23 -0800 (PST) Original-Received: from [192.168.1.16] (198-84-214-74.cpe.teksavvy.com. [198.84.214.74]) by smtp.gmail.com with ESMTPSA id c128sm4626977qkg.66.2020.11.26.20.54.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 26 Nov 2020 20:54:22 -0800 (PST) In-Reply-To: <877dq8taau.fsf@mail.trevorbentley.com> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=carlos@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US 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:194388 Archived-At: On 11/26/20 10:19 AM, Trevor Bentley wrote: >>> 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? Each process generates a trace, and that trace contains the data for all threads in the process. I've just pushed MTRACE_CTL_CHILDREN, set that to 0 and the children will not trace. Thanks for the feedback and enhancement. commit 8a88a4840b5a573c50264f04f68f71d0496913d3 Author: Carlos O'Donell Date: Thu Nov 26 23:50:57 2020 -0500 mtrace: Add support for MTRACE_CTL_CHILDREN. Allow the tracer to only trace the parent process and disable tracing in all child processes unless those processes choose to programmatically re-eanble tracing via the exposed API. -- Cheers, Carlos.