Check CPU stats
-
- Posts: 8
- Joined: Sun Aug 31, 2008 12:16 am
Check CPU stats
How do I check the cpu stat's of multiple CPU/cores?
Re: Check CPU stats
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
or
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:
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:
or just
dmidecode gives a detailed list of all hardware on the system, look for "Processor Information"
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
Code: Select all
up2date sysstat
Code: Select all
mpstat -P ALL
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
Code: Select all
less /proc/cpuinfo
Code: Select all
dmidecode
-
- Posts: 1
- Joined: Fri Mar 06, 2009 5:26 am
- Contact:
Thank you to share
Thank you to share, thank you very very much!