summaryrefslogtreecommitdiff
path: root/rts/Stats.c
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2009-03-13 13:51:16 +0000
committerSimon Marlow <marlowsd@gmail.com>2009-03-13 13:51:16 +0000
commit4e3542263207ae49963811aeb84927027e7bb61d (patch)
tree90814c02010977694748704fc96bf4347bf2104f /rts/Stats.c
parent8fda9784f1eff82aa243073fd31b181080be3109 (diff)
downloadhaskell-4e3542263207ae49963811aeb84927027e7bb61d.tar.gz
Use work-stealing for load-balancing in the GC
New flag: "+RTS -qb" disables load-balancing in the parallel GC (though this is subject to change, I think we will probably want to do something more automatic before releasing this). To get the "PARGC3" configuration described in the "Runtime support for Multicore Haskell" paper, use "+RTS -qg0 -qb -RTS". The main advantage of this is that it allows us to easily disable load-balancing altogether, which turns out to be important in parallel programs. Maintaining locality is sometimes more important that spreading the work out in parallel GC. There is a side benefit in that the parallel GC should have improved locality even when load-balancing, because each processor prefers to take work from its own queue before stealing from others.
Diffstat (limited to 'rts/Stats.c')
-rw-r--r--rts/Stats.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/rts/Stats.c b/rts/Stats.c
index c43806f3af..7c8042a66d 100644
--- a/rts/Stats.c
+++ b/rts/Stats.c
@@ -716,7 +716,6 @@ stat_exit(int alloc)
statsPrintf("whitehole_spin: %"FMT_Word64"\n", whitehole_spin);
for (g = 0; g < RtsFlags.GcFlags.generations; g++) {
for (s = 0; s < generations[g].n_steps; s++) {
- statsPrintf("gen[%d].steps[%d].sync_todo: %"FMT_Word64"\n", g, s, generations[g].steps[s].sync_todo.spin);
statsPrintf("gen[%d].steps[%d].sync_large_objects: %"FMT_Word64"\n", g, s, generations[g].steps[s].sync_large_objects.spin);
}
}