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: Sun, 22 Nov 2020 22:52:14 +0300 Message-ID: References: <86y2j2brg2.fsf@protected.rcdrun.com> <83blfxth7c.fsf@gnu.org> <83y2j0qb2v.fsf@gnu.org> <831rgppg3w.fsf@gnu.org> <83zh3czbvz.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="18330"; 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, michael_heerdegen@web.de, trevor@trevorbentley.com, carlos@redhat.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 22 21:04:05 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 1kgvaf-0004dM-ED for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 22 Nov 2020 21:04:05 +0100 Original-Received: from localhost ([::1]:38774 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kgvae-0001R1-FY for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 22 Nov 2020 15:04:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40792) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgvZe-0000cz-GX for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2020 15:03:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36799) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kgvZe-0003Dy-9U for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2020 15:03:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kgvZe-0005yv-6W for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2020 15:03: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: Sun, 22 Nov 2020 20:03: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.160607537622980 (code B ref 43389); Sun, 22 Nov 2020 20:03:02 +0000 Original-Received: (at 43389) by debbugs.gnu.org; 22 Nov 2020 20:02:56 +0000 Original-Received: from localhost ([127.0.0.1]:48345 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kgvZX-0005ya-VO for submit@debbugs.gnu.org; Sun, 22 Nov 2020 15:02:56 -0500 Original-Received: from static.rcdrun.com ([95.85.24.50]:54769) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kgvZV-0005yN-HR for 43389@debbugs.gnu.org; Sun, 22 Nov 2020 15:02:55 -0500 Original-Received: from localhost ([::ffff:41.202.241.56]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by static.rcdrun.com with ESMTPSA id 00000000002C0013.000000005FBAC3E7.0000555F; Sun, 22 Nov 2020 20:02:46 +0000 Content-Disposition: inline In-Reply-To: <83zh3czbvz.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:193871 Archived-At: * Eli Zaretskii [2020-11-20 03:11]: > > Date: Fri, 20 Nov 2020 06:16:26 +0300 > > From: Jean Louis > > Cc: fweimer@redhat.com, 43389@debbugs.gnu.org, dj@redhat.com, > > michael_heerdegen@web.de, trevor@trevorbentley.com, carlos@redhat.com > > > > * Eli Zaretskii [2020-11-19 17:38]: > > > I think you should try using the malloc tracing tools pointed to here: > > > > > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=43389#158 > > > > When running for long time Emacs will crush at certain point of time > > as my hard disk get full as /tmp is just about 2 gigabytes. I did not > > understand Carlos how to change the location for files. > > Carlos, could you please help Jean to direct the traces to a place > other than /tmp? I am now following this strategy here: https://github.com/jemalloc/jemalloc/wiki/Use-Case%3A-Leak-Checking I have run emacs -Q for very short time, with: MALLOC_CONF=prof_leak:true,lg_prof_sample:0,prof_final:true \ LD_PRELOAD=/package/lib/jemalloc/lib/libjemalloc.so.2 emacs -Q and there are PDF files generated. I also wish to mention that I use 2 dynamic modules, one is emacs-libpq and other emacs-libvterm if that influences overall. You may know easier how to interpret those files and may spot something. This Emacs session was running just a minute or something. https://gnu.support/files/tmp/2020-11-22/jeprof.26889.0.f.heap https://gnu.support/files/tmp/2020-11-22/jeprof.26889.0.f.heap.pdf https://gnu.support/files/tmp/2020-11-22/jeprof.26915.0.f.heap https://gnu.support/files/tmp/2020-11-22/jeprof.26915.0.f.heap.pdf https://gnu.support/files/tmp/2020-11-22/jeprof.26918.0.f.heap https://gnu.support/files/tmp/2020-11-22/jeprof.26918.0.f.heap.pdf https://gnu.support/files/tmp/2020-11-22/jeprof.26921.0.f.heap https://gnu.support/files/tmp/2020-11-22/jeprof.26921.0.f.heap.pdf https://gnu.support/files/tmp/2020-11-22/jeprof.26922.0.f.heap https://gnu.support/files/tmp/2020-11-22/jeprof.26922.0.f.heap.pdf https://gnu.support/files/tmp/2020-11-22/jeprof.26923.0.f.heap https://gnu.support/files/tmp/2020-11-22/jeprof.26923.0.f.heap.pdf https://gnu.support/files/tmp/2020-11-22/jeprof.26924.0.f.heap https://gnu.support/files/tmp/2020-11-22/jeprof.26924.0.f.heap.pdf https://gnu.support/files/tmp/2020-11-22/jeprof.26925.0.f.heap https://gnu.support/files/tmp/2020-11-22/jeprof.26925.0.f.heap.pdf https://gnu.support/files/tmp/2020-11-22/jeprof.26931.0.f.heap https://gnu.support/files/tmp/2020-11-22/jeprof.26931.0.f.heap.pdf I am now running new session and will have maybe quite different data after hours of run. Jean