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.
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 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 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.
After the archive with patches has been downloaded and extracted, the following steps are required to install these 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