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:51 AM, David Given <dg@cowlark.com> wrote:
>  With Lua 5.2 and a million coroutines I see about 800MB.

The difference may be because I'm running a 64-bit version of Lua.

>  *However*, if I stick your script in a function, and run it twice from
>  the same Lua session, I *still* see about 800MB, so the memory isn't
>  being leaked --- it's merely not being released back to the system.

Now this is interesting. I see this behavior too.  However, if I don't
put it in a function and just run the code twice then the memory usage
doubles which is what is happening in my application.

I'm now also thinking this must be an OS issue rather than Lua.

CR