emacs-devel
[Top][All Lists]
Advanced

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

Re: Debugging emacs memory management


From: Dima Kogan
Subject: Re: Debugging emacs memory management
Date: Sun, 15 Feb 2015 12:28:33 -0800

Stefan Monnier <address@hidden> writes:

> Have you tried `memory-usage' (available from a GNU ELPA near you)?

This was useful; thanks for the suggestion. My current emacs session has
been running for 4 days. The OS ways that it's usinng 1143MB of RAM.
This is too much, and will keep growing quickly with time.
(memory-usage) says

   Garbage collection stats:
   ((conses 16 1059730 177764) (symbols 48 58721 0) (miscs 40 18919 13229) 
(strings 32 168864 83786) (string-bytes 1 5968100) (vectors 16 90041) 
(vector-slots 8 2368533 70421) (floats 8 1302 1671) (intervals 56 94677 4911) 
(buffers 976 375) (heap 1024 1257157 52692))

    =>  16.2MB (+ 2.71MB dead) in conses
           2.69MB (+ 0.00kB dead) in symbols
            739kB (+  517kB dead) in miscs
           5.15MB (+ 2.56MB dead) in strings
           5.69MB in string-bytes
           1.37MB in vectors
           18.1MB (+  550kB dead) in vector-slots
           10.2kB (+ 13.1kB dead) in floats
           5.06MB (+  269kB dead) in intervals
            357kB in buffers
           1.20GB (+ 51.5MB dead) in heap

   Total in lisp objects: 1.31GB (live 1.25GB, dead 58.0MB)

   Buffer ralloc memory usage:
   122 buffers
   37.6MB total (64.9kB in gaps)

   ...


No significant difference is observed when I (garbage-collect). It looks
like the bulk of the memory is in the "heap". Is this meaningful to
anybody? Any insight greatly appreciated.



reply via email to

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