Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am trying to figure out (on Kinux) how to look at a single process and its CPU utilization on individual CPUs.

In particular, I have an app server process running and I want to see how much of each CPU it's using (not just an overall CPU usage across all the CPUs).

I'm thinking of something along the lines of top/htop/mpstat/sar but limiting it to a single process and and reporting CPU usage on each processor core.

FWIW, since top and htop can show individual CPU usage charts, I tried to use each of them to do this. I tried starting the process as a separate user and then running htop as that new user. In top, I tried -p pid. In both top and htop, the CPU usage charts up top seem to be for the overall system, not just filtered according to the user or process filter that the command was started with (that seems to only matter for the process/thread list).

share|improve this question
    
Why would you do this? –  Jonas Wielicki Nov 1 '12 at 14:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.