-
How to use the option In my own view, pcm.x sampels with PMU counters which can not be shared. That's why pcm.x and pcm-memory can not run at the same time. Why there is Does this option mean that I can run pcm.x and pcm-memory and pcm.power and so on simultaneously with |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
-m is only for a scenario to run multiple pcm.x instances in parallel. The first pcm instance programs the PMUs and all others can detect that PMUs are already programmed by the first pcm instance and then only read the PMU without programming it. |
Beta Was this translation helpful? Give feedback.
-
Here is two more questions:
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
The multiple instances mode was mostly useful for reading PCM metrics through API from multiple processes/programs. The -m option in pcm.x was designed to test this functionality.
PCM tools have a simple design not allowing to miltiplex events from different processes. Within a process it is still possible to manually program and measure one event group after another frequently (for example pcm-pcie tool does that internally). However the multiplexing approach in general causes overhead because the PMUs need to be reprogrammed very frequently for non-steady state workloads.