From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id IOZXEOLNYF9bDgAA0tVLHw (envelope-from ) for ; Tue, 15 Sep 2020 14:21:22 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id mEKTCuLNYF95NwAAbx9fmQ (envelope-from ) for ; Tue, 15 Sep 2020 14:21:22 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 48415940654 for ; Tue, 15 Sep 2020 14:21:21 +0000 (UTC) Received: from localhost ([::1]:35934 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIBpf-0008PN-Qp for larch@yhetil.org; Tue, 15 Sep 2020 10:21:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55304) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIBpO-0008P3-Nf for bug-guix@gnu.org; Tue, 15 Sep 2020 10:21:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48443) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kIBpO-0000vW-Ek for bug-guix@gnu.org; Tue, 15 Sep 2020 10:21:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kIBpO-0005gH-BO for bug-guix@gnu.org; Tue, 15 Sep 2020 10:21:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#43406: Emacs 27.1 memory consumption grows indefinitely Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 15 Sep 2020 14:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43406 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 43406@debbugs.gnu.org Received: via spool by 43406-submit@debbugs.gnu.org id=B43406.160017961721737 (code B ref 43406); Tue, 15 Sep 2020 14:21:02 +0000 Received: (at 43406) by debbugs.gnu.org; 15 Sep 2020 14:20:17 +0000 Received: from localhost ([127.0.0.1]:59985 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIBof-0005eX-5O for submit@debbugs.gnu.org; Tue, 15 Sep 2020 10:20:17 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48080) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIBob-0005eI-9F for 43406@debbugs.gnu.org; Tue, 15 Sep 2020 10:20:16 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45789) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIBoV-0000bs-Hz; Tue, 15 Sep 2020 10:20:07 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=36880 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kIBoU-0005mV-NM; Tue, 15 Sep 2020 10:20:07 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <874ko0b12w.fsf@gnu.org> Date: Tue, 15 Sep 2020 16:19:55 +0200 In-Reply-To: <874ko0b12w.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Mon, 14 Sep 2020 21:38:47 +0200") Message-ID: <87k0wvf7g4.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Pierre Neidhardt Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: 8vzghn5khhDq Hi! Ludovic Court=C3=A8s skribis: > Since I upgraded to Emacs 27.1, its memory consumption grows without > bounds, to the point that it gets OOM-killed after just a couple of > hours (meaning that it=E2=80=99s used most of the 16G of RAM of my laptop= !). > > Does that ring a bell to anyone? I have 50+ ^emacs- packages in my > profile; any clues on what could be the cause before diving further? > > $ guix package -I ^emacs$ > emacs 27.1 out /gnu/store/ipgb6s3phz3n740xlcdzaxnbgvncdh11-emacs= -27.1 > $ guix describe > Generacio 157 Sep 10 2020 08:49:21 (nuna) > guix 7090159 > repository URL: https://git.savannah.gnu.org/git/guix.git > branch: master > commit: 7090159c23d6345992ab976d71fefeb1583cfcdf Emacs is about to crash :-), so let me share this finding from M-x profiler-report (mem) on a sample of a few minutes: --8<---------------cut here---------------start------------->8--- - timer-event-handler 805,671,418 87% - apply 804,987,874 87% + helm-ff--cache-mode-refresh 802,103,698 86% + emms-playing-time-display 1,349,461 0% + battery-update-handler 1,109,005 0% + # 221,094 0% + # 49,632 0% + blink-cursor-start 30,368 0% + auto-revert-buffers 29,480 0% + highlight-symbol-temp-highlight 22,076 0% + mouse-avoidance-fancy 20,440 0% + display-time-event-handler 18,383 0% + show-paren-function 13,464 0% + erc-server-send-ping 7,500 0% jit-lock-force-redisplay 4,136 0% + blink-cursor-timer-function 4,136 0% + nnimap-keepalive 2,400 0% + gnus-demon-run-callback 1,545 0% + isearch-lazy-highlight-start 1,056 0% + timer-activate 306,016 0% + timer-inc-time 191,264 0% + timer-activate-when-idle 92,928 0% + command-execute 100,936,674 10% + erc-server-filter-function 5,178,272 0% + redisplay_internal (C function) 4,988,306 0% --8<---------------cut here---------------end--------------->8--- It=E2=80=99s Helm eating memory at each timer tick. That=E2=80=99s with: --8<---------------cut here---------------start------------->8--- emacs-helm-wikipedia 0.0.0-1.126f044 out /gnu/store/iy08rcx4hbravm9k3qlinc4= wvklp3pqi-emacs-helm-wikipedia-0.0.0-1.126f044 emacs-helm-swoop 3.0.0 out /gnu/store/qnr6asnk0b360ilx8cnrp35kwrh4fsf7-emac= s-helm-swoop-3.0.0 emacs-helm-shell-history 0.1-1.110d3c3 out /gnu/store/ljgfa72mw8jx6br9khl7i= dcmrw4i33hc-emacs-helm-shell-history-0.1-1.110d3c3 emacs-helm-make 0.1.0-1.feae8df out /gnu/store/lnizl47zxlj03waficpy7fvfrx1m= dqn7-emacs-helm-make-0.1.0-1.feae8df emacs-helm-ls-git 1.9.1-1.76654c7 out /gnu/store/897fkkh4bzpvbd06kf7vxr53hg= kk0vfs-emacs-helm-ls-git-1.9.1-1.76654c7 emacs-helm-gtags 1.5.7 out /gnu/store/lhibi05hvvn3zglcx2ii44yw723pfyja-emac= s-helm-gtags-1.5.7 emacs-helm 3.6.5 out /gnu/store/ka9lph0hpzaky0sa52zf09469apkhb68-emacs-helm= -3.6.5 emacs-helm-system-packages 1.10.1-1.6572340 out /gnu/store/lvkan5dsbcdkvl3y= 1fjmsgb423nzmmqc-emacs-helm-system-packages-1.10.1-1.6572340 emacs-helm-emms 1.3-3.37e5aa0 out /gnu/store/g06lnxvyqnp9d2yqgfanp69350f7m2= yp-emacs-helm-emms-1.3-3.37e5aa0 --8<---------------cut here---------------end--------------->8--- Cc=E2=80=99ing a couple of people who I think use Helm and hopefully have valuable advice to share. :-) Ludo=E2=80=99.