Page 1 of 1

Check CPU stats

Posted: Thu Mar 05, 2009 12:38 am
by unreal_champion
How do I check the cpu stat's of multiple CPU/cores?

Re: Check CPU stats

Posted: Thu Mar 05, 2009 1:12 am
by Chris
You can alasy use top
In a true SMP environment (multiple CPUS), top will operate in number of CPUs.

Then you have mpstat
You need to install sysstat

Code: Select all

apt-get install sysstat
or

Code: Select all

up2date sysstat
The mpstat command display activities for each available processor, processor 0 being the first one. Global average activities among all processors are also reported. The mpstat command can be used both on SMP and UP machines, but in the latter, only global average activities will be printed:

Code: Select all

mpstat -P ALL
sar is another command that show utilization.

iostat command
You can use iostat command which report CPU statistics and input/output statistics for devices and partitions. It can be use to find out your system's average CPU utilization since the last reboot.


If you which to know more details about the cpu, you can use the following commands:

Code: Select all

grep processor /proc/cpuinfo
or just

Code: Select all

less /proc/cpuinfo
dmidecode gives a detailed list of all hardware on the system, look for "Processor Information"

Code: Select all

dmidecode

Thank you to share

Posted: Wed Apr 01, 2009 10:51 am
by Yana.Rudenko2009
Thank you to share, thank you very very much!