user678070
user678070

Reputation: 1425

view multi-core or mlti-cpu utlization on linux

I have a program running on Linux and I need to determine how it is utilizing all the CPUs/cores. Is there any program for viewing this information?

Upvotes: 41

Views: 71964

Answers (5)

Atul Singh Rajpoot
Atul Singh Rajpoot

Reputation: 439

Run the 'top' command and press '1' to see the individual core is the best way to see the cpu cores usage .. another option is run cmd- cat /proc/stat to see the cpu cores usage

Upvotes: 4

Ralph Byrd
Ralph Byrd

Reputation: 41

mpstat -P ALL 5 5 >>your.file

You may need to parse this to use it for a presentation, or sum it But read the man page as mpstat has some useful options.

Upvotes: 4

Stefan Endrullis
Stefan Endrullis

Reputation: 4208

htop shows you the cpu usage of each core in a graphical manner (ncurses).

Upvotes: 19

Cédric Julien
Cédric Julien

Reputation: 80851

When runnging the top command, press f then j to display the P column (last CPU used by process), in addition to the 1 command in top, you should view some multi core occupation informations :)

Upvotes: 41

Reto Aebersold
Reto Aebersold

Reputation: 16644

Run the 'top' command and press '1' to see the individual cores.

Upvotes: 47

Related Questions