[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: When are coroutines collected?
- From: David Kastrup <dak@...>
- Date: Wed, 27 Feb 2008 16:53:44 +0100
"Javier Guerra" <javier@guerrag.com> writes:
> On 2/27/08, Chris <coderight@gmail.com> wrote:
>> which use about 1.3 GB of RAM, after the collection the process it is
>> still using 1.3 GB of RAM.
>
> AFAIR, on unix (and unix-like) systems, a process never releases
> memory back to the OS, but it's managed internally as free.
But he said that he is running "Linux" which likely means "GNU/Linux",
namely glibc. In that case, at least larger allocations are handled by
privately memory-mapping /dev/zero, a technique making the operating
system responsible for fragmentation. Maybe the allocation requests
from Lua to the C library are too small to trigger this mechanism?
--
David Kastrup