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.devel Subject: Re: Emacs memory usage Date: Wed, 25 Nov 2020 08:57:49 +0300 Message-ID: References: <83mtz6u42h.fsf@gnu.org> <83zh36ru8b.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="5421"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.0 (3d08634) (2020-11-07) Cc: arthur miller , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 25 07:52:12 2020 Return-path: Envelope-to: ged-emacs-devel@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 1khoey-0001Js-89 for ged-emacs-devel@m.gmane-mx.org; Wed, 25 Nov 2020 07:52:12 +0100 Original-Received: from localhost ([::1]:45802 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1khoex-00014M-9B for ged-emacs-devel@m.gmane-mx.org; Wed, 25 Nov 2020 01:52:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39598) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khodI-00084l-E5 for emacs-devel@gnu.org; Wed, 25 Nov 2020 01:50:28 -0500 Original-Received: from static.rcdrun.com ([95.85.24.50]:56027) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khodG-0006FE-Me; Wed, 25 Nov 2020 01:50:28 -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 00000000002C1AE2.000000005FBDFEB1.000042AB; Wed, 25 Nov 2020 06:50:24 +0000 Content-Disposition: inline In-Reply-To: <83zh36ru8b.fsf@gnu.org> Received-SPF: pass client-ip=95.85.24.50; envelope-from=bugs@gnu.support; helo=static.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:259768 Archived-At: Dear Eli, You mentioned to observe the vsize, and now I do observe it for last 1 day and 16 hours under this command: MTRACE_CTL_FILE=/home/data1/protected/tmp/mtraceEMACS.mtr LD_PRELOAD=/home/data1/protected/Programming/git/glibc-malloc-trace-utils/libmtrace.so emacs My vsize grows very slowly, now is just (vsize 1310672) and symon-mode reports 185 MB swap. And my session runs well without re-compiling, so it is really surprising that it did not start making problems again. If you think that vsize is pointer to the problem and that we shall track visually what do we do that it starts increasing, maybe I could make a function that logs what we do. Those major commands. Is there some way to log the major commands? For example after running M-x shell to log the command including the vsize after the command. Would that bring better insight?