Open sgaure opened 1 month ago
Please try out the attached PR. It should work for your system but there could be minor differences to the general Zen4 Ryzen or Epyc variants.
Ah, unexpectedly I'm away from office for some weeks. I can't try it out in a few weeks.
I got around for a short test. Seems ok. For the groups I get some warnings.
$ sudo likwid-perfctr -f -C 0 -g CACHE /bin/true
WARN: Event DATA_CACHE_REFILLS_ALL not found for current architecture
$ sudo likwid-perfctr -f -C 0 -g L3CACHE /bin/true
WARN: Event L3_CACHE_REQ not found for current architecture
WARN: Event L3_MISS_REQ not found for current architecture
WARN: Event L3_CACHE_REQ_MISS not found for current architecture
Please run likwid-perfctr -V 3 -e
. There might be multiple reasons for this behavior.
I copied the groups over from Zen3 and never updated these groups to use the Zen4 events. So this is a general Zen4 issue. I updated the PR.
Seems ok now. There are some warnings for the NUMA group, but there's only one NUMA domain, so not very interesting. (DATA_CACHE_REFILLS_LOCAL_ALL
and DATA_CACHE_REFILLS_REMOTE_ALL
).
Same issue, I updated it.
This is my desktop computer, and I would very much like to be able to profile programs I write. From
/proc/cpuinfo
:Linux perf runs fine, so I suppose the counters are documented.