From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#43389: 28.0.50; Emacs memory leaks Date: Wed, 18 Nov 2020 17:03:26 +0200 Message-ID: <837dqir9kx.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35428"; mail-complaints-to="usenet@ciao.gmane.io" Cc: fweimer@redhat.com, 43389@debbugs.gnu.org, dj@redhat.com, michael_heerdegen@web.de, trevor@trevorbentley.com, carlos@redhat.com To: Jean Louis Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 18 16:06:09 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 1kfP28-00094s-TK for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 18 Nov 2020 16:06:08 +0100 Original-Received: from localhost ([::1]:48630 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kfP27-00012j-UN for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 18 Nov 2020 10:06:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58546) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfP08-00082J-8V for bug-gnu-emacs@gnu.org; Wed, 18 Nov 2020 10:04:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52710) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kfP06-00076N-Gw for bug-gnu-emacs@gnu.org; Wed, 18 Nov 2020 10:04:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kfP06-0004WO-C9 for bug-gnu-emacs@gnu.org; Wed, 18 Nov 2020 10:04:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Nov 2020 15:04: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.160571181917345 (code B ref 43389); Wed, 18 Nov 2020 15:04:02 +0000 Original-Received: (at 43389) by debbugs.gnu.org; 18 Nov 2020 15:03:39 +0000 Original-Received: from localhost ([127.0.0.1]:36023 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfOzi-0004Vg-Ru for submit@debbugs.gnu.org; Wed, 18 Nov 2020 10:03:39 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58354) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfOze-0004VR-Vs for 43389@debbugs.gnu.org; Wed, 18 Nov 2020 10:03:37 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54423) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kfOzY-00075F-R9; Wed, 18 Nov 2020 10:03:28 -0500 Original-Received: from [176.228.60.248] (port=3633 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kfOzY-0004Gz-5H; Wed, 18 Nov 2020 10:03:28 -0500 In-Reply-To: (message from Jean Louis on Wed, 18 Nov 2020 00:45:48 +0300) 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:193615 Archived-At: > Date: Wed, 18 Nov 2020 00:45:48 +0300 > From: Jean Louis > Cc: eliz@gnu.org, fweimer@redhat.com, trevor@trevorbentley.com, > michael_heerdegen@web.de, carlos@redhat.com, 43389@debbugs.gnu.org > > Maybe some simple new and automatic function could be temporarily > included to spit errors to output on what is Emacs doing when it > starts swapping (if it is swapping), then such errors could at least > be captured in a file even if I have to reboot computer. Emacs doesn't know when the system starts swapping. But you can write a function that tracks the vsize of the Emacs process, using emacs-pid and process-attributes, and displays some prominent message when the vsize increments become larger than some threshold, or the vsize itself becomes larger than some fixed number. Then run this function off a timer that fires every 10 or 15 seconds, and wait for it to tell you when the fun starts.