[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: how to tune generational collector in work3?
 
- From: "Juris Kalnins" <juris@...>
 
- Date: Tue, 01 Jun 2010 15:40:00 +0300
 
On Tue, 01 Jun 2010 15:33:32 +0300, Roberto Ierusalimschy  
<roberto@inf.puc-rio.br> wrote:
This fixes it:
[...]
+    luaC_runtilstate(L, ~bitmask(GCSpause));
     luaC_runtilstate(L, bitmask(GCSpause));  /* run collection */
This seems a stupid bug; sorry about that. Minor collections were void.
(This shows that the tests about minor collections are still not
in the test suit. A small change a few weeks ago broke it and we did
not notice...)
How things are working now?
With the modified stepmul logic and this fix -- great.
Note the maxalloc:
Generational, with debug prints (yes, gcpause is 105%) =====
$ time ./lua ~/P/gengc-test.lua 500 1000 105 402400
OK, done, maxalloc =    18650.85546875  , #t =  1001
real    0m1.438s
user    0m1.424s
sys     0m0.012s
Stock gc, no tunings =======================================
$ time ./lua ~/P/gengc-test.lua 500 1000 0 0
OK, done, maxalloc =    60667.359375    , #t =  1001
real    0m1.175s
user    0m1.100s
sys     0m0.072s