Check CPU stats

Post Reply
unreal_champion
Posts: 8
Joined: Sun Aug 31, 2008 12:16 am

Check CPU stats

Post by unreal_champion »

How do I check the cpu stat's of multiple CPU/cores?
Chris
Site Admin
Posts: 129
Joined: Mon Jul 21, 2008 9:45 am
Location: Leuven, Belgium
Contact:

Re: Check CPU stats

Post 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
Yana.Rudenko2009
Posts: 1
Joined: Fri Mar 06, 2009 5:26 am
Contact:

Thank you to share

Post by Yana.Rudenko2009 »

Thank you to share, thank you very very much!
Post Reply