4 ms·
Does anyone know of an easy way to interact with performance monitor counters in Linux? I've been reading stuff by Brendan Gregg about DTrace and the importance
by pebblexe 10y ago
Does anyone know of an easy way to interact with performance monitor counters in Linux? I've been reading stuff by Brendan Gregg about DTrace and the importance of PMCs, and it made it sound like Linux doesn't have the equivalent.
- dima55 10y agoThere are multiple tools, and that's all Brendan Gregg has been talking about for years. Read any non-ancient posts on his blog.
- CalChris 10y agoVTune has a Linux client. That would be the best by far. https://software.intel.com/en-us/intel-vtune-amplifier-xe https://software.intel.com/en-us/intel-vtune-amplifier-xe There's also PAPI and TAU: http://icl.utk.edu/papi/ http://icl.utk.edu/papi/ http://www.cs.uoregon.edu/research/tau/home.php http://www.cs.uoregon.edu/research/tau/home.php
- adamnemecek 10y agoit's not quite there (AFAIK) yet but here's an attempt https://github.com/dtrace4linux/linux https://github.com/dtrace4linux/linux
- Langdal 10y agoAnother nice tool is likwid. It lets you select a performance counter group (e.g. L3 CACHE) to monitor while running a program. It also provides derived metrics. https://github.com/RRZE-HPC/likwid https://github.com/RRZE-HPC/likwid
- caf 10y agoYes, this is what "perf stat <command>" does. Add more -d options to see more counters, or use -e to ask for specific counter(s) ("perf list" to list them).