Search code examples
linuxparallel-processingbenchmarkingperf

How to measure if a program was run in parallel over multiple cores in Linux?


I want to know if my program was run in parallel over multiple cores. I can get the perf tool to report how many cores were used in the computation, but not if they were used at the same time (in parallel).

How can this be done?


Solution

  • You can try using the command top in another terminal while the program is running. It will show the usage of all the cores on your machine.