lua-users home
lua-l archive

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


"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