Date: Fri, 5 May 2017 13:16:38 +0200 From: Marko Zec <zec@fer.hr> To: <hackers@freebsd.org> Subject: AMD CPU cache monitoring Message-ID: <20170505131638.4835dfce@x23>
next in thread | raw e-mail | index | archive | help
I'm looking for a simple, vendor-neutral tool for monitoring per-CPU-core data cache hits and misses (L2, L3). Adrian mentioned https://github.com/opcm/pcm in his article on profiling: http://adrianchadd.blogspot.hr/2013/08/profiling-on-superscalar-architectures.html This tool works fine on FBSD 11 and Intel silicon, and would be almost ideal for my needs, but unfortunately it doesn't work with AMD CPUs. OTOH, pmc(3) seems to be a more generic mechanism for working with performance counters, but I couldn't find useful examples on how to harvest per-cpu counters. Most of the pmc-related examples I bumped itno seem to be focused on call stack profiling, which isn't what I'm looking for. Any ideas on how to monitor CPU cache hits / misses on AMD CPUs? Thanks, Marko
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170505131638.4835dfce>