The default GNU / Linux top command does allow to see statistics on servers and systems with multiple CPUs.
This is quite beneficial especially on Linux systems which are not equipped with htop which does show statistics to the multiple-core system load.
To examine the multiple CPUs statistics with the default top command available on every Linux system and part of the procps – /proc file system utilities
1. Start top:
linux:~# top
When the top system load statistics screen starts up refreshing,
2. press simply 1
You will notice all your system cpus to show up in the top head:
As I have started talking about top, a very useful way to use top to track processes which are causing a system high loads is:
linux:~# top -b -i
This command will run top in batch mode interactively and will show you statistics about the most crucial processes which does cause a server load, look over the output and you will get an idea about what is causing you server troubles.
Moreover if you’re a Linux console freak as me you will also probably want to take a look at tload
tload command is a part of the procps – /proc file system utilities and as you can read in the tload manual tload – graphic representation of system load average
Here is a picture to give you an idea on the console output of tload :
Another tool that you might find very usefel is slabtop it’s again a part of the procps linux package.
slabtop – displays a listing of the top caches sorted by one of the listed sort criteria., in most of the cases the slabtop kernel cache monitoring tool won’t be necessary for the regular administrator, however on some servers it might help up to the administrator to resolve performance issues which are caused by the kernel as a bottleneck.
slabtop is also used as a tool by kernel developers to write and debug the Linux kernel.
More helpful Articles
![Download PDF](https://www.pc-freak.net/blog/wp-content/plugins/wp-post-to-pdf/asset/images/pdf.png)
Tags: administrator, command, core, kernel developers, Monitoring, Monitoring multi core / (multiple CPUs) servers with top, servers, show, statistics, system, tload and on Linux
Mozilla/5.0 (X11; U; Linux x86_64; en-us) AppleWebKit/531.2+ (KHTML, like Gecko) Version/5.0 Safari/531.2+ Debian/squeeze (2.30.6-1) Epiphany/2.30.6
On FreeBSD system the “top” command does not support monitoring of mutli core CPU server systems.
Another handy thing about Linux top is pressing the “W” during the top is running. This will make top to save it’s current settings so next time when you launch it it will load the last known saved settings.
To get statistics about CPU information on FreeBSD you can use commands:
View CommentView Commentfreebsd# sysctl -a | egrep -i ‘hw.machine|hw.model|hw.ncpu’
or
freebsd# dmesg | grep -i cpu
Mozilla/5.0 (X11; FreeBSD amd64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7
for freebsd just read the man pages.
View CommentView Commenttop -P
Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.7.62 Version/11.00
good to know thx for info 🙂
View CommentView CommentMozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.26) Gecko/20120128 Firefox/3.6.26
in freebsd you can use top -HSP to check multi core usage statistics
View CommentView CommentMozilla/5.0 (Windows NT 6.1) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.77 Safari/535.7
thx for the tip!
View CommentView Comment