From fa8d20e6d85212290b633159b6ef2d77fb1c4021 Mon Sep 17 00:00:00 2001 From: Duncan Coutts Date: Wed, 1 Jun 2011 19:48:15 +0100 Subject: Classify overflowed sparks separately When you use `par` to make a spark, if the spark pool on the current capability is full then the spark is discarded. This represents a loss of potential parallelism and it also means there are simply a lot of sparks around. Both are things that might be of concern to a programmer when tuning a parallel program that uses par. The "+RTS -s" stats command now reports overflowed sparks, e.g. SPARKS: 100001 (15521 converted, 84480 overflowed, 0 dud, 0 GC'd, 0 fizzled) --- rts/Sparks.h | 1 + 1 file changed, 1 insertion(+) (limited to 'rts/Sparks.h') diff --git a/rts/Sparks.h b/rts/Sparks.h index c987a94960..ea7d356e87 100644 --- a/rts/Sparks.h +++ b/rts/Sparks.h @@ -19,6 +19,7 @@ typedef struct { StgWord created; StgWord dud; + StgWord overflowed; StgWord converted; StgWord gcd; StgWord fizzled; -- cgit v1.2.1