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.devel Subject: Re: Emacs memory usage Date: Tue, 24 Nov 2020 18:12:22 +0200 Message-ID: <83mtz6u42h.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33480"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Arthur Miller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Nov 24 17:13:08 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 1khawG-0008cG-Pf for ged-emacs-devel@m.gmane-mx.org; Tue, 24 Nov 2020 17:13:08 +0100 Original-Received: from localhost ([::1]:59012 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1khawF-0001la-Na for ged-emacs-devel@m.gmane-mx.org; Tue, 24 Nov 2020 11:13:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43608) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khava-0001Iz-CY for emacs-devel@gnu.org; Tue, 24 Nov 2020 11:12:26 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46760) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1khavZ-0000G5-Lo; Tue, 24 Nov 2020 11:12:25 -0500 Original-Received: from [176.228.60.248] (port=1385 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1khavY-0001rr-NT; Tue, 24 Nov 2020 11:12:25 -0500 In-Reply-To: (message from Arthur Miller on Tue, 24 Nov 2020 15:39:53 +0100) 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:259741 Archived-At: > From: Arthur Miller > Cc: eliz@gnu.org > Date: Tue, 24 Nov 2020 15:39:53 +0100 > > I was hacking in image.c today, and was compiling Emacs several times; > after some time I thought I saw some slowdown in term. > > I can see pmem is on ~74%; and Emacs is eating about 25 gig of ram. > > I haven't used Dired today at all. > > I took some pmap dump; no idea if it can help, but maybe you would like > to look at it anyway. Thanks, but please report this to bug#43389, where we are collecting these data points. Also, please report the total size of the text of all buffers and the list returned by garbage-collect, and the information produced by malloc-info. > 609: /home/arthur/repos/emacs/src/emacs --fg-daemon > 000055f5616bd000 232K r---- emacs > 000055f5616f7000 2540K r-x-- emacs > 000055f561972000 436K r---- emacs > 000055f5619df000 40K r---- emacs > 000055f5619e9000 3400K rw--- emacs > 000055f561d3b000 608K rw--- [ anon ] > 000055f56372f000 24865608K rw--- [ anon ] <<<<<<<<<<< The last line above is the main chunk of memory. But there's not enough detail here to understand how is that used.