[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mem leak
From: |
David Kastrup |
Subject: |
Re: mem leak |
Date: |
Mon, 24 Apr 2006 05:37:36 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Miles Bader <address@hidden> writes:
> Does anybody have advice for finding a memory leak in emacs?
>
> Recent builds seems to have some leak: even with only a few small
> buffers open, Emacs rapidly consumes more and more memory (to the point
> where the system eventually becomes unusable).
garbage-collect is an interactive built-in function in `C source code'.
(garbage-collect)
Reclaim storage for Lisp objects no longer needed.
Garbage collection happens automatically if you cons more than
`gc-cons-threshold' bytes of Lisp data since previous garbage collection.
`garbage-collect' normally returns a list with info on amount of space in use:
((USED-CONSES . FREE-CONSES) (USED-SYMS . FREE-SYMS)
(USED-MARKERS . FREE-MARKERS) USED-STRING-CHARS USED-VECTOR-SLOTS
(USED-FLOATS . FREE-FLOATS) (USED-INTERVALS . FREE-INTERVALS)
(USED-STRINGS . FREE-STRINGS))
However, if there was overflow in pure space, `garbage-collect'
returns nil, because real GC can't be done.
[back]
This might help tracking down what kind of memory is consumed, and
whether it is Lisp-visible.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
- mem leak, Miles Bader, 2006/04/23
- Re: mem leak,
David Kastrup <=
- Re: mem leak, LENNART BORGMAN, 2006/04/24
- Re: mem leak, Miles Bader, 2006/04/24
- Re: mem leak, Romain Francoise, 2006/04/24
- Re: mem leak, Miles Bader, 2006/04/24
- Re: mem leak, Miles Bader, 2006/04/24
- Re: mem leak, Stefan Monnier, 2006/04/24
- Re: mem leak, Miles Bader, 2006/04/24
- Re: mem leak, Richard Stallman, 2006/04/24
- memory consumption with pure-space-overflow (was: mem leak), Reiner Steib, 2006/04/26