lua-users home
lua-l archive

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


On Wed, Feb 27, 2008 at 10:45 AM, Javier Guerra <javier@guerrag.com> wrote:
>  AFAIR, on unix (and unix-like) systems, a process never releases
>  memory back to the OS, but it's managed internally as free.
>
>  what happens if you allocate another million coroutines after garbage
>  collecting the first million? do you still use roughly 1.3GB? or does
>  it goes to 2.6GB?
>
>  if it doesn't grow, you'll have to get more frequent collections, so
>  that you don't have the whole million (or two) coroutines at the same
>  time

Yes, it grows to 2.6 GB if I continue and allocate another yet of
coroutines.  In my application coroutines are allocated sporadically
and then finished/collected shortly thereafter yet eventually the
machine runs out of RAM and the Lua process is using nearly 8GB of RAM
in the OS.

CR