Hardware performance counters on AMD Ryzen 7 5800X CPU
Vasily Postnicov <[email protected]> Fri, 28 Feb 2025 14:50:44 +0000
| Newsgroups | gmane.os.freebsd.devel.hardware |
|---|---|
| Message-ID | <CADnZ6BkV+==8UpNzPF7XFWR3DpU-nuLJquxGgw==OOVHbJdoRQ@mail.gmail.com> |
--00000000000002fa4d062f34ef94 Content-Type: text/plain; charset="UTF-8" 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? --00000000000002fa4d062f34ef94 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"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_m= isses<br> l2_cache_misses_from_ic_miss<br> l2_cache_misses_from_dc_misses<b= r> l2_cache_hits_from_ic_misses<br> l2_cache_hits_from_dc_misses<br> l2_cac= he_hits_from_l2_hwpf<br> l3_cache_accesses<br> l1_data_cache_fills_from_mem= ory<br> l1_data_cache_fills_from_remote_node<br> l1_data_cache_fills_from_w= ithin_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> --00000000000002fa4d062f34ef94--