lua-users home
lua-l archive

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


> > Roberto Ierusalimschy <roberto@inf.puc-rio.br> writes:
> > >> Can you recommend any parameter changes to make the 5.2 garbage
> > >> collector more "5.1-like"?
> > >
> > > To make the collector more agressive you must increase its stepmul.
> > > By how much I do not know (see below).
> > 
> > I tried a bunch of values for "stepmul", from the default (200) up to
> > 10,000...  But none of the stepmul values I tried seemed to make much
> > difference -- Lua 5.2 never seemed able to keep the memory usage under
> > control (it still used over twice as much memory as 5.1.4 or LuaJIT,
> > and caused the system to start thrashing).
> 
> Do we have access to this code to run it?

Never mind... May you try to reduce the pause?

  collectgarbage("setpause", p)

(For p=0 or 10 or 100...)

-- Roberto