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.help Subject: Re: memory tken by emacs Date: Thu, 02 Feb 2023 11:09:09 +0200 Message-ID: <83r0v8xwlm.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6523"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 02 10:10:00 2023 Return-path: Envelope-to: geh-help-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 1pNVbT-0001TX-VA for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 02 Feb 2023 10:10:00 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pNVal-0000V4-2P; Thu, 02 Feb 2023 04:09:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pNVaf-0000Ty-F2 for help-gnu-emacs@gnu.org; Thu, 02 Feb 2023 04:09:13 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pNVae-00072L-PI for help-gnu-emacs@gnu.org; Thu, 02 Feb 2023 04:09:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ViXngEw06rNsu6GxoH1DTUmoozGdo+/3yWePremIErw=; b=N9nRpjQPca+w 9CeYxZYPW2qvN6GsCBnHWQiLGKVmIo6sO/UJTb6aiR9QzbHyNH71NtaSeROlq6fBgs0QwZpV5idbj C6riBMQyqao9olpJDPO5yPNV3maJup9F/bH8PE1MFjzaCfq4dkDbDHkcoIpPuOtY/YQjbkym+Mf80 OCNlWzNC0PZmoi8R1m40YHVczy/fPSBOayXEaHhyZL1x7WL5KpNwJ36kJc1lrsntLPEs9L2xhvLW8 IpCyJNms06Of9QRdJ4jqAOYu0qddGADxwvY6wTC0udDl7gj1AcEL6QfMkTcdldAziRrhTSqP0EY/b aawOzNXNfMKh+z3ORoebpg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pNVad-0001ST-Vh for help-gnu-emacs@gnu.org; Thu, 02 Feb 2023 04:09:08 -0500 In-Reply-To: (message from Samuel Wales on Wed, 1 Feb 2023 23:36:42 -0700) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:142574 Archived-At: > From: Samuel Wales > Date: Wed, 1 Feb 2023 23:36:42 -0700 > > my computer is overwhelmed frequenty. sometimes the biggest memory > user is emacs. > > ps -eo pid,\%mem,size,vsize,rss,resident,cmd --sort=size -> 5234 55.2 > 3226844 3549680 3193108 - emacs --maximize > > i could run the profiler for a while to find functions, but is htere > anything ht will show me what modes, buffers, etc. are using memory? > for example, undo-tree, or diff-mode, or something like that? If you are using Emacs 28.1 or later, there's "M-x memory-report". But it doesn't (and cannot) give you details by buffer or by mode. > also, if i kill a buffer and gc, will it reduce memory? If it can, it will, yes.