From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: memory tken by emacs
Date: Thu, 02 Feb 2023 11:09:09 +0200 [thread overview]
Message-ID: <83r0v8xwlm.fsf@gnu.org> (raw)
In-Reply-To: <CAJcAo8sf1Ud2ow4iUmNySt+twfFR3tc=FRNmpbBeaNedSHYJyQ@mail.gmail.com> (message from Samuel Wales on Wed, 1 Feb 2023 23:36:42 -0700)
> From: Samuel Wales <samologist@gmail.com>
> 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.
next prev parent reply other threads:[~2023-02-02 9:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-02 6:36 memory tken by emacs Samuel Wales
2023-02-02 9:09 ` Eli Zaretskii [this message]
2023-02-03 17:17 ` Emanuel Berg
2023-02-09 22:58 ` Samuel Wales
2023-02-14 3:57 ` Samuel Wales
2023-03-08 4:53 ` Samuel Wales
2023-03-10 16:23 ` Stefan Monnier via Users list for the GNU Emacs text editor
2023-02-02 22:20 ` Stefan Monnier via Users list for the GNU Emacs text editor
2023-02-03 4:02 ` Samuel Wales
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83r0v8xwlm.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.