]> Cypherpunks repositories - gostls13.git/commit
internal/trace: add "per-P" MMU analysis
authorAustin Clements <austin@google.com>
Fri, 28 Jul 2017 20:26:51 +0000 (16:26 -0400)
committerAustin Clements <austin@google.com>
Mon, 5 Nov 2018 19:10:23 +0000 (19:10 +0000)
commitbef4efc822794ea2e7310756bc546bf6930fc066
treee09e7807af84adcda98c4863f0a912cccc601171
parent27920c8ddc609662540deaf5a3d3b4fce03abeea
internal/trace: add "per-P" MMU analysis

The current MMU analysis considers all Ps together, so if, for
example, one of four Ps is blocked, mutator utilization is 75%.
However, this is less useful for understanding the impact on
individual goroutines because that one blocked goroutine could be
blocked for a very long time, but we still appear to have good
utilization.

Hence, this introduces a new flag that does a "per-P" analysis where
the utilization of each P is considered independently. The MMU is then
the combination of the MMU for each P's utilization function.

Change-Id: Id67b980d4d82b511d28300cdf92ccbb5ae8f0c78
Reviewed-on: https://go-review.googlesource.com/c/60797
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
src/cmd/trace/mmu.go
src/internal/traceparser/gc.go
src/internal/traceparser/gc_test.go