[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: When are coroutines collected?
- From: David Kastrup <dak@...>
- Date: Wed, 27 Feb 2008 16:53:44 +0100
"Javier Guerra" <email@example.com> writes:
> On 2/27/08, Chris <firstname.lastname@example.org> 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?