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#45200: Memory leaks: (garbage-collect) fails to reclaim memory Date: Sun, 24 Jan 2021 21:55:00 +0200 Message-ID: <83y2gi2jqj.fsf@gnu.org> References: <2a4f3f31f30db28387055821a8edf44fd1d66ea5.camel@yandex.ru> <0457437ff45b535a61f7c35011de1d133cdd3496.camel@yandex.ru> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31486"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, 45200@debbugs.gnu.org To: Konstantin Kharlamov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 24 20:56:24 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 1l3lUl-00083y-MD for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Jan 2021 20:56:23 +0100 Original-Received: from localhost ([::1]:46636 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l3lUk-0003aD-Om for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Jan 2021 14:56:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35594) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l3lUP-0003Zv-Sg for bug-gnu-emacs@gnu.org; Sun, 24 Jan 2021 14:56:01 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54043) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l3lUP-0002Qk-Kw for bug-gnu-emacs@gnu.org; Sun, 24 Jan 2021 14:56:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l3lUP-0003KT-It for bug-gnu-emacs@gnu.org; Sun, 24 Jan 2021 14:56:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Jan 2021 19:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45200 X-GNU-PR-Package: emacs Original-Received: via spool by 45200-submit@debbugs.gnu.org id=B45200.161151810412715 (code B ref 45200); Sun, 24 Jan 2021 19:56:01 +0000 Original-Received: (at 45200) by debbugs.gnu.org; 24 Jan 2021 19:55:04 +0000 Original-Received: from localhost ([127.0.0.1]:37353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l3lTU-0003J1-3U for submit@debbugs.gnu.org; Sun, 24 Jan 2021 14:55:04 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42284) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l3lTS-0003IT-7A for 45200@debbugs.gnu.org; Sun, 24 Jan 2021 14:55:02 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:35861) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l3lTM-00022h-N7; Sun, 24 Jan 2021 14:54:56 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2791 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1l3lTL-0008Ob-MY; Sun, 24 Jan 2021 14:54:56 -0500 In-Reply-To: <0457437ff45b535a61f7c35011de1d133cdd3496.camel@yandex.ru> (message from Konstantin Kharlamov on Sun, 24 Jan 2021 22:06:21 +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:198520 Archived-At: > From: Konstantin Kharlamov > Date: Sun, 24 Jan 2021 22:06:21 +0300 > Cc: 45200@debbugs.gnu.org > > Case in point btw: after the previous weekend I found my Emacs instance that I did not touch during the weekend to bloat to as much as 6xxMB. I think that happened because the on-idle hook that I hooked garbage collector onto was not run for 2 days, whilst Emacs might have been doing something like communication to LSP server from time to time, so this is why it ended up taking so much memory. I think it's needless to say that I had to restart Emacs for the half-gigabyte of memory to get returned to my system. That bug (bug#43389) was recently tracked down and fixed. I don't think it has anything to do with malloc_trim and friends.