Monitoring multi core / (multiple CPUs) servers with top, tload and on Linux

Thursday, 17th March 2011

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:

8 cpu top screen statistics on Linux

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 :

tload console/terminal system load statistics on Linux screenshot

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.

Share this on:

Download PDFDownload PDF

Tags: , , , , , , , , , ,

6 Responses to “Monitoring multi core / (multiple CPUs) servers with top, tload and on Linux”

  1. admin says:
    Epiphany 2.30.6 Epiphany 2.30.6 Debian GNU/Linux x64 Debian GNU/Linux x64
    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:
    freebsd# sysctl -a | egrep -i ‘hw.machine|hw.model|hw.ncpu’
    freebsd# dmesg | grep -i cpu

    View CommentView Comment
  2. subbsd says:
    Google Chrome 16.0.912.63 Google Chrome 16.0.912.63 FreeBSD FreeBSD
    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.
    top -P

    View CommentView Comment
  3. google4u says:
    Firefox 3.6.26 Firefox 3.6.26 Windows 7 Windows 7
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv: Gecko/20120128 Firefox/3.6.26

    in freebsd you can use top -HSP to check multi core usage statistics

    View CommentView Comment
  4. WordPress 4.8.2 WordPress 4.8.2
    The Incutio XML-RPC PHP Library -- WordPress/4.8.2

    […] are plenty of software to check the Server Load bottlenecks such as top / tload / slabtop / htop but for shell scripting purposes or perl  / python / ruby automation Dev Ops scripts and […]

    View CommentView Comment

Leave a Reply

CommentLuv badge