Master class  "Linux performance analysis and tuning"
Learn to interpret the output of tools like atop and to improve your system's performance
Lectured by the atop developer!

News

July 22, 2013

Netatop version 0.3

December 28, 2012

Netatop version 0.2

November 19, 2012

Atop version 2.0.2

November 12, 2012

Netatop version 0.1.1

October 26, 2012

Atop version 2.0

October 26, 2012

Netatop version 0.1

July 23, 2012

Atop version 1.27-3

November 18, 2010

Atop version 1.26-2

October 31, 2010

Atop version 1.26

April 30, 2010

Atop version 1.25

March 12, 2010

Patches kernel version 2.6.33

Download kernel patch

These kernel patches are obsolete and will not be maintained any more for future kernel versions.
Instead, the kernel module netatop can be used to gather statistics of network utilization per process/thread.

General

When atop is used on a system running a standard Linux-kernel, no information is available about the network-accesses per process and only limited information about disk-accesses per process. This means a.o. that the selection 'n' (show network-transfers per process) cannot be used, and that the columns shown in the generic screen are different.
For extended use of atop two kernel-patches are delivered.

Patch 1: atopcnt

Patch 01patch-version_atopcnt takes care that statistical counters are added to the process-administration (task_struct) and that these counters are incremented per process. The additional counters are shown via the file /proc/pid/stat as a second line of counters.
When this patch is installed, atop automatically shows another layout for the generic screen (including disk- and network-transfers for active processes). However for terminated process these additional counters are not shown, because the conventional layout of the process-accounting record has not been adapted.

Patch 2: atopacct

Patch 02patch-version_atopacct takes care that the additional statistical counters are added to the process-accounting record (yes, this means an incompatible layout of this record). Notice that this patch is an extension of the patch 01patch-version-atopcnt, i.e. it can not be installed on its own.
When this patch is installed, atop automatically shows the additional counters for terminated processes as well. Since the pid of processes is also stored in the modified process-accounting record, matching this info with the formerly running process is less time-consuming compared to the conventional process-accounting record.

Install kernel patches

After the archive with patches has been downloaded and extracted, the following steps are required to install these patches:

  1. Take care that the kernel sources are installed (e.g. as a subdirectory of /usr/src). The kernel sources in this new subdirectory will be modified with the patch(es).
  2. Go to the subdirectory with new kernel sources (e.g. called linux-2.6.33) and start the command to patch the tree.
    Example (install both patches):
    patch -p1 < /tmp/atoppatch-kernel-2.6.33/01patch-2.6.33_atopcnt
    patch -p1 < /tmp/atoppatch-kernel-2.6.33/02patch-2.6.33_atopacct
             	
  3. Build a new kernel and reboot.
Disclaimer:
The authors deny any warranty for any data loss and damage whatsoever that may be caused directly or indirectly by using this software. This is experimental software. Use at your own risk.