emacs-devel
[Top][All Lists]
Advanced

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

Re: Indentation and gc


From: Eli Zaretskii
Subject: Re: Indentation and gc
Date: Mon, 13 Mar 2023 18:58:53 +0200

> From: Ihor Radchenko <yantar92@posteo.net>
> Cc: arne_bab@web.de, spacibba@aol.com, emacs-devel@gnu.org
> Date: Mon, 13 Mar 2023 15:45:36 +0000
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> >> See the attached statistics data example.
> >> 
> >> WDYT?
> >
> > Looks useful, thanks.
> 
> Feel free to share the ideas on what else we could record there.

I think we should start with that and add stuff as we go if needed.

> >> 6.5Gib is virtual memory. 1.7Gib is actually used memory - the value
> >> people usually mean when considering memory footprint.
> >
> > You mean, the process has a 6.5 GiB footprint, out of which only 1.7
> > GiB are being used, and the rest is free?  That'd mean awfully
> > inefficient libc implementation of malloc.
> 
> I mean the following output for "top" bash command
> 
>   PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
> 31838 yantar92  20   0 1843744 800648 121684 S   0.3   5.0   1:12.48 emacs    
>                
> 
> VIRT is virtual memory and RES (or %MEM) is actually used.

Ah, you mean RES.  That's the "resident" part of the memory, i.e. what
the OS decided to keep in physical memory at this point; the rest is
swapped out.  Basically, RES is not interesting, only the total
virtual memory of the process (VIRT) is, because that's what is
counted towards the total VM of the system.  Although the complication
is that VIRT also includes the so-called "reserved" memory, which is
not necessarily in-use yet.



reply via email to

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