perf c2c: Refine the organization of metrics
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest9 patches 0 repliesNew
- v18 patches 3 repliesSuperseded
Changes in v2 from the cover letter
* Added Joe's test tag for patches 01-08;
* Added a new patch for updating documentation.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | perf c2c: Display the total numbers continuouslytools/ | +2 | 0 replies | |
| 2/9 | perf c2c: Display "Total Stores" as a standalone metricstools/ | +7 | 0 replies | |
| 3/9 | perf c2c: Organize metrics based on memory hierarchytools/ | +3 | 0 replies | |
| 4/9 | perf c2c: Change header from "LLC Load Hitm" to "Load Hitm"tools/ | +1 | 0 replies | |
| 5/9 | perf c2c: Use more explicit headers for HITMtools/ | +4 | 0 replies | |
| 6/9 | perf c2c: Change header for LLC local hittools/ | +1 | 0 replies | |
| 7/9 | perf c2c: Correct LLC load hit metricstools/ | +2 | 0 replies | |
| 8/9 | perf c2c: Add metrics "RMT Load Hit"tools/ | +2 | 0 replies | |
| 9/9 | perf c2c: Update documentation for metrics reorganizationtools/ | +18 | 0 replies |
Reviews trailers per patch
None of the 9 patches has a Reviewed-by or Acked-by.
| Patch | Joe Mario |
|---|---|
| 1/9 | T-b |
| 2/9 | T-b |
| 3/9 | T-b |
| 4/9 | T-b |
| 5/9 | T-b |
| 6/9 | T-b |
| 7/9 | T-b |
| 8/9 | T-b |
| 9/9 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/9] perf c2c: Refine the organization of metrics
This patch set is to refine metrics output organization.
If we reivew the current memory metrics in Perf c2c tool, it doesn't organize the metrics with directive approach; thus user needs to take time to dig into every statistics item. On the other hand, if use the "summary and breakdown" approach, the output result will be easier for reviewing by users, e.g. the output result can firstly give out the summary values, and then the later items will breakdown into more detailed statistics.
For this reason, this patch is to reorganize the metrics and it only changes for the "Shared Data Cache Line Table": it firstly displays the summary values for total records, total loads, total stores; then it breaks these summary values into small values, with the order from the most near memory node ("CPU Load Hit") to more far nodes ("LLC Load Hit", "RMT Load Hit", "Load Dram").
"LLC Load Hit" = "LclHit" + "LclHitm"
"RMT Load Hit" = "RmtHit" + "RmtHitm" \
-> LLC Load Miss
"Load Dram" = "Lcl" + "Rmt" /Another main reason for this patch set is wanting to extend "perf c2c" to support Arm SPE memory event, but Arm SPE doesn't contain 'HTIM' tag in its default trace data, for this case if want to analyze cache false sharing issue, we need to rely on LLC metrics + multi-threading info. So this patch set can be friendly to show LLC related metrics in the "Shared Data Cache Line Table"; for sorting cache lines with LLC metrics which will be sent out with another separate patch set.
Before:
=================================================
Shared Data Cache Line Table
=================================================
#
# ----------- Cacheline ---------- Total Tot ----- LLC Load Hitm ----- ---- Store Reference ---- --- Load Dram ---- LLC Total ----- Core Load Hit ----- -- LLC Load Hit --
# Index Address Node PA cnt records Hitm Total Lcl Rmt Total L1Hit L1Miss Lcl Rmt Ld Miss Loads FB L1 L2 Llc Rmt
# ..... .................. .... ...... ....... ....... ....... ....... ....... ....... ....... ....... ........ ........ ....... ....... ....... ....... ....... ........ ........
#
0 0x55acdcc92100 0 8197 40716 52.18% 3170 3170 0 24466 24437 29 0 0 0 16250 3349 5909 0 3822 0
1 0x55acdcc920c0 0 1 4621 31.01% 1884 1884 0 0 0 0 0 0 0 4621 739 0 0 1998 0
2 0x55acdcc92080 0 1 4475 16.69% 1014 1014 0 0 0 0 0 0 0 4475 2405 0 0 1056 0After:
=================================================
Shared Data Cache Line Table
=================================================
#
# ----------- Cacheline ---------- Tot ------- Load Hitm ------- Total Total Total ---- Stores ---- ----- Core Load Hit ----- - LLC Load Hit -- - RMT Load Hit -- --- Load Dram ----
# Index Address Node PA cnt Hitm Total LclHitm RmtHitm records Loads Stores L1Hit L1Miss FB L1 L2 LclHit LclHitm RmtHit RmtHitm Lcl Rmt
# ..... .................. .... ...... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ........ ....... ........ ....... ........ ........
#
0 0x55acdcc92100 0 8197 52.18% 3170 3170 0 40716 16250 24466 24437 29 3349 5909 0 3822 3170 0 0 0 0
1 0x55acdcc920c0 0 1 31.01% 1884 1884 0 4621 4621 0 0 0 739 0 0 1998 1884 0 0 0 0
2 0x55acdcc92080 0 1 16.69% 1014 1014 0 4475 4475 0 0 0 2405 0 0 1056 1014 0 0 0 0Changes from v1:
* Added Joe's test tag for patches 01-08;
* Added a new patch for updating documentation.
Leo Yan (9):
perf c2c: Display the total numbers continuously perf c2c: Display "Total Stores" as a standalone metrics perf c2c: Organize metrics based on memory hierarchy perf c2c: Change header from "LLC Load Hitm" to "Load Hitm" perf c2c: Use more explicit headers for HITM
perf c2c: Change header for LLC local hit
perf c2c: Correct LLC load hit metrics
perf c2c: Add metrics "RMT Load Hit"
perf c2c: Update documentation for metrics reorganization
tools/perf/Documentation/perf-c2c.txt | 34 +++++------ tools/perf/builtin-c2c.c | 83 ++++++--------------------- 2 files changed, 36 insertions(+), 81 deletions(-)
Signature · 1 line
2.17.1