Skip to content

Instantly share code, notes, and snippets.

@rzezeski
Created February 18, 2019 17:04
Show Gist options
  • Save rzezeski/ab6070a4dc1eee2c01ebec25f7e7c149 to your computer and use it in GitHub Desktop.
Save rzezeski/ab6070a4dc1eee2c01ebec25f7e7c149 to your computer and use it in GitHub Desktop.
dtrace cpc
CPU is Intel(R) Xeon(R) CPU E5-2630 v3 @ 2.40GHz.
Use cpustat -h to determine performance counters available.
Track L3 misses/hits for all modes (kernel + user) every 10,000 events (minimum is 5K).
<GZ> root@gaia [~]
# dtrace -qn 'cpc:::mem_load_uops_retired.l3_miss-all-10000,cpc:::mem_load_uops_retired.l3_hit-all-10000 { @[probename] = count(); @["total"] = count(); }'
^C
mem_load_uops_retired.l3_miss-all-10000 25
mem_load_uops_retired.l3_hit-all-10000 316
total 341
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment