[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: When are coroutines collected?
- From: Chris <coderight@...>
- Date: Wed, 27 Feb 2008 10:50:36 -0500
On Wed, Feb 27, 2008 at 10:45 AM, Javier Guerra <email@example.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
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.