[Top][All Lists]

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

Re: Memory again

From: Dmitry Antipov
Subject: Re: Memory again
Date: Tue, 06 Dec 2011 14:24:11 +0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111115 Thunderbird/8.0

On 12/06/2011 01:35 PM, Carsten Mattner wrote:

I still believe this is what's happening for me on Linux 3.x and Darwin 10.7.x
when I kill a buffer and the claimed memory is not given back to the kernel.

Yes, it's very easy to reproduce. Generate the following C code:

#warning oops0
#warning oops1
/* a lot of */
#warning oops999999
main () {}

then M-x compile it, wait a lot until it's done, then kill *compilation*
buffer and see RSS.

I tried with 1M of #warnings, and (buffer-size *compilation*) was 58M - but
RSS grows to 2250M. During compilation, strace shows an excessive usage both
of mremap() (for buffer text, I suppose) and brk(). When I kill *compilation*,
munmap() was issued to free buffer text. Next, I call garbage-collect:

((63789 . 19159) (15579 . 0) (45 . 234) 160925 331403 (74 . 320) (696 . 251) 
(6794 . 10907))

But even after GC, RSS is 2192M. Oops.


reply via email to

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