help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: memory tken by emacs


From: Eli Zaretskii
Subject: Re: memory tken by emacs
Date: Thu, 02 Feb 2023 11:09:09 +0200

> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]