[commit: ghc] master: Fix Work Balance computation in RTS stats (7c9e356)
git at git.haskell.org
git at git.haskell.org
Tue Jul 11 17:42:29 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/7c9e356de1114ab3e31f2d6d03e83672076dd533/ghc
>---------------------------------------------------------------
commit 7c9e356de1114ab3e31f2d6d03e83672076dd533
Author: Douglas Wilson <douglas.wilson at gmail.com>
Date: Tue Jul 11 11:54:09 2017 -0400
Fix Work Balance computation in RTS stats
An additional stat is tracked per gc: par_balanced_copied This is the
the number of bytes copied by each gc thread under the balanced lmit,
which is simply (copied_bytes / num_gc_threads). The stat is added to
all the appropriate GC structures, so is visible in the eventlog and in
GHC.Stats.
A note is added explaining how work balance is computed.
Remove some end of line whitespace
Test Plan:
./validate
experiment with the program attached to the ticket
examine code changes carefully
Reviewers: simonmar, austin, hvr, bgamari, erikd
Reviewed By: simonmar
Subscribers: Phyx, rwbarton, thomie
GHC Trac Issues: #13830
Differential Revision: https://phabricator.haskell.org/D3658
>---------------------------------------------------------------
7c9e356de1114ab3e31f2d6d03e83672076dd533
includes/RtsAPI.h | 4 ++
includes/rts/EventLogFormat.h | 3 +-
libraries/base/GHC/Stats.hsc | 28 +++++++++++--
rts/RtsProbes.d | 2 +-
rts/Stats.c | 97 ++++++++++++++++++++++++++++++++++++++++---
rts/Stats.h | 2 +-
rts/Trace.c | 6 ++-
rts/Trace.h | 22 ++++++----
rts/eventlog/EventLog.c | 13 ++++--
rts/eventlog/EventLog.h | 3 +-
rts/sm/GC.c | 21 ++++++++--
11 files changed, 172 insertions(+), 29 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 7c9e356de1114ab3e31f2d6d03e83672076dd533
More information about the ghc-commits
mailing list