Date: Fri, 28 Feb 2025 14:50:44 +0000 From: Vasily Postnicov <shamaz.mazum@gmail.com> To: freebsd-hardware@freebsd.org Subject: Hardware performance counters on AMD Ryzen 7 5800X CPU Message-ID: <CADnZ6BkV%2B==8UpNzPF7XFWR3DpU-nuLJquxGgw==OOVHbJdoRQ@mail.gmail.com>
index | next in thread | raw e-mail
[-- Attachment #1 --] Hello! I wonder if it's possible to measure data cache misses (e.g. L1 and L2) when my program is running. Earlier I used dc-misses probe in pmcstat with my old CPU. Now on Zen CPUs there is no such probe anymore. Instead of that probe I have (to name a few): l2_cache_accesses_from_ic_misses l2_cache_accesses_from_dc_misses l2_cache_misses_from_ic_miss l2_cache_misses_from_dc_misses l2_cache_hits_from_ic_misses l2_cache_hits_from_dc_misses l2_cache_hits_from_l2_hwpf l3_cache_accesses l1_data_cache_fills_from_memory l1_data_cache_fills_from_remote_node l1_data_cache_fills_from_within_same_ccx l1_data_cache_fills_from_external_ccx_cache l1_data_cache_fills_all I don't see if there is a probe which I can use as a replacement for dc-misses. Can anybody help me? [-- Attachment #2 --] <div dir="ltr"><div>Hello! I wonder if it's possible to measure data cache misses (e.g. L1 and L2) when my program is running. Earlier I used dc-misses probe in pmcstat with my old CPU. Now on Zen CPUs there is no such probe anymore. Instead of that probe I have (to name a few):</div><div><br></div><div>l2_cache_accesses_from_ic_misses<br> l2_cache_accesses_from_dc_misses<br> l2_cache_misses_from_ic_miss<br> l2_cache_misses_from_dc_misses<br> l2_cache_hits_from_ic_misses<br> l2_cache_hits_from_dc_misses<br> l2_cache_hits_from_l2_hwpf<br> l3_cache_accesses<br> l1_data_cache_fills_from_memory<br> l1_data_cache_fills_from_remote_node<br> l1_data_cache_fills_from_within_same_ccx<br> l1_data_cache_fills_from_external_ccx_cache<br> l1_data_cache_fills_all<br></div><div><br></div><div>I don't see if there is a probe which I can use as a replacement for dc-misses. Can anybody help me?</div> </div>home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADnZ6BkV%2B==8UpNzPF7XFWR3DpU-nuLJquxGgw==OOVHbJdoRQ>
