The installation steps of the kernel module
netatop can be found below.
Important notice before download
- By downloading the software you agree with the license-conditions of
the GPL
(an open source license). Please read
these conditions before you download the software.
- The license states that the software is offered to you "as is",
which means that guarantee and liability is limited.
- For questions or remarks, please
contact the maintainer.
- 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.
Version 3.2.2
- Modifications for netatop kernel module:
- Fix protection fault that occurs when a short-living process opens a (short-living) socket.
- Introduce DKMS to install the kernel module.
Version 3.1
- Modifications for netatop kernel module:
- Adapted for kernel version 5.6 and higher: modified kernel structs.
Version 3.0-1
- Modifications for netatop kernel module:
- Adapted for kernel version 5.5 and higher: modified kernel variable name.
- Added service file for native use with systemd.
- Modified 3.0-1: Corrected pathname for system service file.
Version 2.0
- Modifications for netatop kernel module:
- Adapted for kernel version 4.13 and higher: modified to new netfilter functions.
Version 1.0
- Modifications for netatop kernel module:
- Adapted for kernel version 4.4 and higher: added ifdef's for pointer compatibility.
Version 0.7
- Modifications for netatop kernel module:
- Adapted for kernel version 4.2 and higher: added include file.
Version 0.6
- Modifications for netatop kernel module:
- Adapted for kernel version 4.1 and higher: API modification.
Version 0.5
- Modifications for netatop kernel module:
- Enable 64-bit division on 32-bit systems by using div_u64()
(required for kernel version 3.17 and higher on 32-bit systems).
Version 0.4
- Modifications for netatop kernel module:
- Use of variable real_start_time (in task_struct) modified
(required for kernel version 3.17 and higher).
Version 0.3
- Modifications for netatop kernel module:
- Interface for /proc changed to proc_create/seq_file
(required for kernel version 3.10 and higher).
Version 0.2
- Modifications for netatop kernel module:
- Avoid panic by implementing kernel daemon 'knetatop' for garbage collection.
- Improved allocation of structures (via slab cache).
- Minor bug solutions and cosmetic changes.
Version 0.1.1
netatop-0.1.1.tar.gz
- Modifications for netatop kernel module:
- Bug solution:
Sometimes the kernel module stops gathering statistics.
Version 0.1
netatop-0.1.tar.gz
- Modifications for netatop kernel module:
- Initial release.
- Utilization counters are maintained for IPv4.
No support (yet) for IPv6.
- Modifications for netatopd daemon:
- Initial release.
Installation netatop and netatopd
After the archive has been downloaded and extracted (perferably under
the directory /usr/src,
the following steps are required to install the netatop
kernel module and the netatopd daemon (as root):
-
Install the packages gcc and make that are needed for
compilation of the source code.
-
Install the package dkms.
-
Depending on the Linux distribution, install the package zlib-devel
(e.g. for RedHat and CentOS) or zlib1g-dev (e.g. for Debian and Ubuntu)
from the distributor's repository.
-
Depending on the Linux distribution, install the packages kernel-devel
and/or kernel-headers (e.g. for RedHat and CentOS) or linux-headers
(e.g. for Debian and Ubuntu) from the distributor's repository. Take care that the
version of these packages correspond to the kernel version in use.
Whether explicit installation of these packages is needed depends on the distribution.
-
Build and install the module and daemon.
From the topdirectory of the extracted archive and run the
following commands:
make
make install
The kernel module is installed now via dkms and the kernel daemon with
its unit file is copied to the proper directories.
-
To load the module and start the daemon:
systemctl start netatop
-
To load the module and start the daemon automatically
after boot:
systemctl enable netatop
When atop is running while you load or unload the module, it will
automatically adapt to the new situation on a per-sample basis.