From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Madhu Newsgroups: gmane.emacs.bugs Subject: bug#43389: bug#43395: closed Date: Sun, 21 Mar 2021 19:40:44 +0530 (IST) Message-ID: <20210321.194044.1221749597160780441.enometh@meer.net> References: <20210206.215539.1665079139633241050.enometh@meer.net> Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Sun_Mar_21_19_40_44_2021_045)--" Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10972"; mail-complaints-to="usenet@ciao.gmane.io" To: 43389@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 21 16:58:15 2021 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 1lO0T1-0002je-5N for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 Mar 2021 16:58:15 +0100 Original-Received: from localhost ([::1]:52760 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lO0T0-0002I8-88 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 Mar 2021 11:58:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43900) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lO0So-0002Ho-7I for bug-gnu-emacs@gnu.org; Sun, 21 Mar 2021 11:58:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43752) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lO0Sn-0006qc-VU for bug-gnu-emacs@gnu.org; Sun, 21 Mar 2021 11:58:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lO0Sn-0004oK-V5 for bug-gnu-emacs@gnu.org; Sun, 21 Mar 2021 11:58:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Madhu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Mar 2021 15:58: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.161634224118444 (code B ref 43389); Sun, 21 Mar 2021 15:58:01 +0000 Original-Received: (at 43389) by debbugs.gnu.org; 21 Mar 2021 15:57:21 +0000 Original-Received: from localhost ([127.0.0.1]:55298 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lO0S9-0004nP-2e for submit@debbugs.gnu.org; Sun, 21 Mar 2021 11:57:21 -0400 Original-Received: from smtp5.ctinetworks.com ([205.166.61.198]:39434) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lO0S6-0004nH-Sg for 43389@debbugs.gnu.org; Sun, 21 Mar 2021 11:57:19 -0400 Original-Received: from localhost (unknown [117.193.0.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: enometh@meer.net) by smtp5.ctinetworks.com (Postfix) with ESMTPSA id 640961634BA for <43389@debbugs.gnu.org>; Sun, 21 Mar 2021 11:57:11 -0400 (EDT) Resent-Date: Sun, 21 Mar 2021 21:26:59 +0530 (IST) Resent-Message-Id: <20210321.212659.2117159753473590579.enometh@meer.net> Resent-To: 43389@debbugs.gnu.org Resent-From: Madhu In-Reply-To: <20210206.215539.1665079139633241050.enometh@meer.net> X-Mailer: Mew version 6.8 on Emacs 28.0 X-ctinetworks-Information: Please contact the ISP for more information X-ctinetworks-MailScanner-ID: 640961634BA.A4D6C X-ctinetworks-VirusCheck: Found to be clean X-ctinetworks-Watermark: 1617206238.16794@Ctuz13xnmlB/KT4tsrKbZQ 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:202785 Archived-At: ----Next_Part(Sun_Mar_21_19_40_44_2021_045)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit I think this dragon has not been put to sleep yet. I ran into the problem again - quite quickly within some 5 hours of emacs uptime GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, Motif Version 2.3.8, cairo version 1.16.0) of 2021-03-08 (master commit a190bc9f3 - with the motif removal reverted.) PID USER PR NI VIRT RES %CPU %MEM TIME+ S COMMAND 21301 madhu 20 0 2988364 2.7g 0.0 36.7 5:04.01 S emacs USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND madhu 21301 1.9 36.7 2988364 2809536 pts/2 Ssl+ 14:06 5:03 /12/build/emacs/build-motif/src/emacs -nw A full gc does not release the resident memory. I had an emacs -nw session and one X emacsclient session. I was prompted for a passwd by mew in the gui frame, and the prompt appeared on the tty frame - which was where I entered the password. Then I noticed the cpu temperature was up, and and a Ctrl-G on emacs stopped that. I think the leak may have occured then but I didn't notice it until later. When I did notice it i killed all the buffers did a gc and ran the memory and malloc reports - which I'm attaching here - in case it gives any clues. The emacs command line was: TERM=xterm-256color MALLOC_ARENA_MAX=2 exec /12/build/emacs/build-motif/src/emacs -nw" > ~/emacs.log 2>&1 ----Next_Part(Sun_Mar_21_19_40_44_2021_045)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="memory-usage.txt" Garbage collection stats: ((conses 16 788433 262686) (symbols 48 72449 79) (strings 32 397265 20150) (string-bytes 1 26247796) (vectors 16 88641) (vector-slots 8 1961725 208444) (floats 8 1191 1377) (intervals 56 9514 5343) (buffers 992 8)) => 12.0MB (+ 4.01MB dead) in conses 3.32MB (+ 3.70kB dead) in symbols 12.1MB (+ 630kB dead) in strings 25.0MB in string-bytes 1.35MB in vectors 15.0MB (+ 1.59MB dead) in vector-slots 9.30kB (+ 10.8kB dead) in floats 520kB (+ 292kB dead) in intervals 7.75kB in buffers Total in lisp objects: 75.9MB (live 69.3MB, dead 6.51MB) Buffer ralloc memory usage: 8 buffers 16.2kB total (14.0kB in gaps) Size Gap Name 1277 753 memory-report.txt 670 1575 *Buffer Details* 274 5855 *Ibuffer* 103 1918 *Messages* 35 2002 *Echo Area 0* 0 2087 *Minibuf-1* 0 20 *Minibuf-0* 0 20 *Echo Area 1* ----Next_Part(Sun_Mar_21_19_40_44_2021_045)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="memory-report.txt" Estimated Emacs Memory Usage 69.3 MiB Overall Object Memory Usage 11.1 MiB Memory Used By Global Variables 6.6 MiB Reserved (But Unused) Object Memory 5.5 MiB Memory Used By Symbol Plists 61.7 KiB Total Buffer Memory Usage 1.2 KiB Total Image Cache Size Object Storage 37.2 MiB Strings 16.3 MiB Vectors 12.0 MiB Conses 3.3 MiB Symbols 514.2 KiB Intervals 9.3 KiB Floats 6.8 KiB Buffer-Objects Largest Buffers 31.5 KiB *Minibuf-1* 25.1 KiB *Ibuffer* 2.1 KiB *Echo Area 0* 1.3 KiB *Memory Report* 1.2 KiB *Messages* 0.3 KiB *Minibuf-0* 0.2 KiB *Echo Area 1* Largest Variables 1.4 MiB load-history 1.2 MiB $portage-category-package-names 951.6 KiB +lw-manual-data-7-1-0-0+ 574.5 KiB ivy--all-candidates 491.4 KiB command-history 296.5 KiB face-new-frame-defaults 282.5 KiB help-definition-prefixes 236.3 KiB obarray 143.1 KiB org-entities 137.5 KiB save-place-alist 92.5 KiB global-map 92.5 KiB widget-global-map 89.3 KiB bibtex-biblatex-entry-alist 84.4 KiB buffer-name-history 83.2 KiB lw::manual-symbols 82.2 KiB gnus-summary-mode-map 80.9 KiB coding-system-alist 79.0 KiB shortdoc--groups 77.3 KiB ivy-history 74.7 KiB ivy--virtual-buffers ----Next_Part(Sun_Mar_21_19_40_44_2021_045)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="malloc-info.txt" ----Next_Part(Sun_Mar_21_19_40_44_2021_045)----