-
measuring CPU usage
Hi all,
Is there a way to measure CPU usage from your application's perspective? For example, I have an application that uses MPI and OpenMP that runs on a Xeon Phi. I just want to, using relatively standard Linux tools and available tools, see how much CPU usage each of the processes are using. I am figuring out how different settings will affect CPU utilizations/performance. PAPI seems a bit complicated right now given the time constraint.
Is this the right place to ask? Should I ask in a Linux forum?
Thanks
-
Does top not give enough info?
-
Top is interesting but I want to collect data over the run and plot it. I'd need something in text form. Basically, top must use something that linux has from /proc, right?
-
I should also say, I'd like to get it on a per-core basis if that's even posssible
-
Something like a textual htop would be perfect haha
-
Sure, there's a whole bunch of stuff underneath each /proc/<pid> directory.
proc(5) - Linux manual page
-
Anything specific out of there I should look for?
-
Just go and read it.
Or search for say "cpu" if you're that lazy.