The collectl utility is an all-in-one performance monitoring tool capable of capturing detailed system metrics including CPU utilization, memory allocation, network throughput, disk I/O, InfiniBand, and Lustre filesystems simultaneously. On minimal Linux distributions, stripped container base images, and cloud server instances, collectl is omitted by default, producing the bash: collectl: command not found error when executing comprehensive performance benchmarks.
Install collectl on Debian, Ubuntu, and Derivatives
On Debian-based systems, collectl is maintained in the standard software universe repositories:
- Update your local package lists:
sudo apt update - Install the
collectlpackage:sudo apt install -y collectl - Confirm successful installation and run interactive monitoring:
which collectl collectl
Install collectl on RHEL, AlmaLinux, Rocky Linux, and Fedora
On enterprise Linux distributions, collectl is available directly or through the EPEL repository:
- Enable EPEL on RHEL or compatible enterprise clones:
sudo dnf install -y epel-release - Install
collectlusing DNF:sudo dnf install -y collectl - On Fedora systems, run
sudo dnf install -y collectldirectly.
Common Usage Commands and Subsystem Monitoring
Utilise targeted collectl flags to capture specific subsystem telemetry in real time:
- Monitor CPU, network, and disk performance concurrently:
collectl -s cnd - Inspect process-level top consumers:
collectl --top - Export high-resolution performance metrics to raw log files for subsequent analysis:
collectl -f /var/log/collectl/metrics -P