#5727: Unclear documentation about .eventlog's spark information flag
-------------------------------+--------------------------------------------
  Reporter:  shelarcy          |          Owner:  duncan          
      Type:  bug               |         Status:  closed          
  Priority:  high              |      Milestone:  7.4.2           
 Component:  Documentation     |        Version:  7.3             
Resolution:  worksforme        |       Keywords:                  
        Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown      |     Difficulty:  Unknown         
  Testcase:                    |      Blockedby:                  
  Blocking:                    |        Related:                  
-------------------------------+--------------------------------------------
Changes (by duncan):

  * status:  new => closed
  * resolution:  => worksforme


Comment:

 I cannot reproduce the behaviour. It works correctly for me with
 ghc-7.4.1.

 Using `+RTS -l-af` means we get no events (-a) except for the detailed
 spark events (f) (and default ones like capset) and indeed that's what we
 get with ghc-7.4.1.

 e.g.
 {{{
 ./parlist +RTS  -l-af
 ghc-events show parlist.eventlog | less

 [..snip...]
   1841000: cap 0: spark created
   1842000: cap 0: spark created
   1843000: cap 0: spark created
   1844000: cap 0: spark created
   1845000: cap 0: spark created
 }}}

 Using `+RTS -l-pf` means we get the default set of events, though without
 sampled spark events (-p), and with detailed spark events (f) and again,
 that's just what we do see with ghc-7.4.1.

 {{{
 ./parlist +RTS  -l-pf
 ghc-events show parlist.eventlog | less

 [..snip...]
   2471000: cap 0: thread 2 is runnable
   2504000: cap 0: running thread 3
   2729000: cap 0: spark created
   2733000: cap 0: spark created
 }}}

 If you're seeing something different, or you still think the behaviour or
 documentation are confusing then please reopen the ticket. Thanks.

 This is only a guess, but perhaps you've got an old version of ghc-events
 that does not show the detailed spark events. Does the `ghc-events show`
 produce this header:

 {{{
   34: Spark counters (size 56)
   35: Spark create (size 0)
   36: Spark dud (size 0)
   37: Spark overflow (size 0)
   38: Spark run (size 0)
   39: Spark steal (size 2)
   40: Spark fizzle (size 0)
   41: Spark GC (size 0)
 }}}

 Where my log says `cap 0: spark created`, perhaps yours says something
 like `cap 0: event 35`.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5727#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to