lua-users home
lua-l archive

Re: how to tune generational collector in work3?

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


On 2010年6月01日 15:47:07 +0300, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:
>How things are working now?
With the modified stepmul logic and this fix -- great.
Do you think the modified stepmul logic is needed, with the fix?
Possible change would be to use gcpause to trigger small gc,
and 100+gcpause to trigger full gc. I.e.
 if (g->totalbytes > g->lastmajormem/100 * (100 + g->gcpause))
 g->lastmajormem = 0; /* signal for a major collection */
This would keep the meaning more or less consistent in both modes and
avoid the pathological case with fullgc when gcpause < 100.
I tried and it seems to work well.

AltStyle によって変換されたページ (->オリジナル) /