table of contents
PERF-MEM(1) | PERF-MEM(1) |
NAME¶
perf-mem - Profile memory accesses
SYNOPSIS¶
perf mem [<options>] (record [<command>] | report)
DESCRIPTION¶
"perf mem record" runs a command and gathers memory operation data from it, into perf.data. Perf record options are accepted and are passed through.
"perf mem report" displays the result. It invokes perf report with the right set of options to display a memory access profile. By default, loads and stores are sampled. Use the -t option to limit to loads or stores.
Note that on Intel systems the memory latency reported is the use-latency, not the pure load (or store latency). Use latency includes any pipeline queuing delays in addition to the memory subsystem latency.
On Arm64 this uses SPE to sample load and store operations, therefore hardware and kernel support is required. See linkperf:perf-arm-spe[1] for a setup guide. Due to the statistical nature of SPE sampling, not every memory operation will be sampled.
OPTIONS¶
<command>...
-i, --input=<file>
-f, --force
-t, --type=<type>
-D, --dump-raw-samples
-x, --field-separator=<separator>
-C, --cpu=<cpu>
-U, --hide-unresolved
-p, --phys-data
--data-page-size
RECORD OPTIONS¶
-e, --event <event>
-K, --all-kernel
-U, --all-user
-v, --verbose
--ldlat <n>
In addition, for report all perf report options are valid, and for record all perf record options.
SEE ALSO¶
linkperf:perf-record[1], linkperf:perf-report[1], linkperf:perf-arm-spe[1]