From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Emacs 27 master consumes more memory than 26 and freezes regularly Date: Sat, 31 Aug 2019 19:30:00 +0300 Message-ID: <83r2518fhz.fsf@gnu.org> References: <87mufpfid6.fsf@gmail.com> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="238776"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Akater Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 31 18:30:29 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i46Gi-000zyM-NS for ged-emacs-devel@m.gmane.org; Sat, 31 Aug 2019 18:30:28 +0200 Original-Received: from localhost ([::1]:45748 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i46Gh-00068n-Ib for ged-emacs-devel@m.gmane.org; Sat, 31 Aug 2019 12:30:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58811) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i46GY-00067S-Gs for emacs-devel@gnu.org; Sat, 31 Aug 2019 12:30:19 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37390) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1i46GY-0000Eq-DF; Sat, 31 Aug 2019 12:30:18 -0400 Original-Received: from [176.228.60.248] (port=2169 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1i46GQ-0005Co-Ud; Sat, 31 Aug 2019 12:30:15 -0400 In-reply-to: <87mufpfid6.fsf@gmail.com> (message from Akater on Sat, 31 Aug 2019 15:46:13 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:239732 Archived-At: > From: Akater > Date: Sat, 31 Aug 2019 15:46:13 +0000 > > I have built emacs 27 from master yesterday (2019-08-30). According to > `ps u`, it cosumes at least 3 times more memory than emacs 26.3, soon > after it's started, and regularly becomes irresponsive, several hours > after start. Looks like it is always triggered by a user action, even if > insignificant, i.e. emacs doesn't seem to freeze when idle. When it > does, it makes the whole system significantly less responsive, and has > to be killed. I presume this is due to the unsolved issue with GC: once gc-cons-threshold is set to a large value, it effectively disables GC for the rest of the session, even if after that gc-cons-threshold is reset back. If some of your customizations do something like that, try invoking GC manually, via "M-x garbage-collect RET", after gc-cons-threshold is set back to its nominal value, and see if the problem with memory consumption goes away.