I am trying to get the L3 cache miss rate when I try to use perf. The following is the command I run:
perf stat -e instructions,LLC-load-misses,LLC-loads ./program
Then I get the following output:
667,922,092,353 instructions
LLC-load-misses
LLC-loads
47.619915412 seconds time elapsed
42.245969000 seconds user
5.371741000 seconds sys
I have already run the following command to install perf:
apt-get install linux-tools-common linux-tools-generic linux-tools-
uname -r
The following are my system specs:
OS: Ubuntu 22.04.1 \
Kernel: 5.15.0-58-generic \
CPU: AMD Ryzen 9 5900x
It also does not work if I run as root
Asked by darkdante
(1 rep)
Jan 25, 2023, 10:58 AM