[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Memory again
From: |
Stefan Monnier |
Subject: |
Re: Memory again |
Date: |
Mon, 19 Dec 2011 06:26:26 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) |
>> `garbage-collect' is supposed to give that info. At least it does give
>> info about the data that's kept under alloc.c's control because
>> of fragmentation (these are counted as "free cells").
> I would like to propose a function which explicitly says how much free memory
> the Emacs process holds.
For the part that alloc.c holds, the "memory-usage" package in ELPA
should do the trick (or can be improved to do it).
> It's especially useful when there is a way to ask system malloc about
> how much free memory is in the heap.
It'd be great to add this data when available, indeed. Patch welcome.
> This may be helpful to distinguish real heap fragmentation from memory
> leaks and other misuses - if the sum of values returned by
> 'memory-free' is, say, 10% of heap size, then the real fragmentation
> enters into the game.
It may also be important to try and keep track of other allocations,
which are not under alloc.c's control (e.g. allocations performed by
GUI libraries).
>> I agree that we're probably going to see better overall results by
>> improving general memory use than by trying to attack
>> fragmentation problems.
> Among this list's subscribers, Nix <address@hidden> is constantly
> reporting an enormous memory usage caused by Gnus.
I think we still have a leak there somewhere.
Stefan
- Re: Memory again, (continued)
- Re: Memory again, Óscar Fuentes, 2011/12/14
- Re: Memory again, Eli Zaretskii, 2011/12/15
- Re: Memory again, Stefan Monnier, 2011/12/16
- Re: Memory again, Nix, 2011/12/17
- Re: Memory again, Dmitry Antipov, 2011/12/18
- Re: Memory again, Stefan Monnier, 2011/12/18
- Re: Memory again, Dmitry Antipov, 2011/12/19
- Re: Memory again,
Stefan Monnier <=
Re: Memory again, emacs user, 2011/12/19
Re: Memory again, emacs user, 2011/12/20
- Re: Memory again, Eli Zaretskii, 2011/12/20
- Re: Memory again, emacs user, 2011/12/20
- Re: Memory again, Eli Zaretskii, 2011/12/20
- Re: Memory again, Jan Djärv, 2011/12/20
- Re: Memory again, Jan Djärv, 2011/12/21
- Re: Memory again, Carsten Mattner, 2011/12/21
- Re: Memory again, emacs user, 2011/12/21