[GHC] #12424: RTS stats show wrong productivity.

#12424: RTS stats show wrong productivity. --------------------------------------+--------------------------------- Reporter: vagarenko | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Runtime System | Version: 8.0.1 Keywords: | Operating System: Windows Architecture: x86_64 (amd64) | Type of failure: None/Unknown Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: --------------------------------------+--------------------------------- I have this report after runnig my program: {{{ INIT time 0.000s ( 0.001s elapsed) MUT time 29.344s ( 56.484s elapsed) GC time 4.306s ( 1.589s elapsed) EXIT time 0.000s ( 0.001s elapsed) Total time 33.649s ( 58.075s elapsed) Alloc rate 1,530,969,741 bytes per MUT second Productivity 87.2% of total user, 50.5% of total elapsed }}} Elapsed productivity is wrong. It should be `MUT elapsed / Total elapsed = 56.484 / 58.075 = 0.972` but it looks like `MUT user / Total elapsed = 29.344 / 58.075 = 0.505` Looks like the code at https://github.com/ghc/ghc/blob/a88bb1b1518389817583290acaebfd6454aa3cec/rts... uses wrong numerator for elapsed value. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12424 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12424: RTS stats show wrong productivity.
-----------------------------------+--------------------------------------
Reporter: vagarenko | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Runtime System | Version: 8.0.1
Resolution: | Keywords:
Operating System: Windows | Architecture: x86_64 (amd64)
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-----------------------------------+--------------------------------------
Comment (by Simon Marlow

#12424: RTS stats show wrong productivity. -----------------------------------+-------------------------------------- Reporter: vagarenko | Owner: Type: bug | Status: merge Priority: normal | Milestone: 8.0.2 Component: Runtime System | Version: 8.0.1 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -----------------------------------+-------------------------------------- Changes (by simonmar): * status: new => merge * milestone: => 8.0.2 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12424#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12424: RTS stats show wrong productivity.
-----------------------------------+--------------------------------------
Reporter: vagarenko | Owner:
Type: bug | Status: merge
Priority: normal | Milestone: 8.0.2
Component: Runtime System | Version: 8.0.1
Resolution: | Keywords:
Operating System: Windows | Architecture: x86_64 (amd64)
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-----------------------------------+--------------------------------------
Comment (by Ben Gamari

#12424: RTS stats show wrong productivity. -----------------------------------+-------------------------------------- Reporter: vagarenko | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.0.2 Component: Runtime System | Version: 8.0.1 Resolution: fixed | Keywords: Operating System: Windows | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -----------------------------------+-------------------------------------- Changes (by bgamari): * status: merge => closed * resolution: => fixed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12424#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC