The Wayback Machine - https://web.archive.org/web/20240602002031/https://www.geeksforgeeks.org/collectl-performance-analysis-tool-in-linux/
Open In App

Collectl – Performance Analysis Tool in Linux

Last Updated : 26 Mar, 2021
Improve
Improve
Like Article
Like
Save
Share
Report

There are a variety of situations in which you will need performance data. Benchmarking, tracking a system’s overall health, and attempting to find out what the system was doing in the past are examples of these. You may just want to know what the machine is doing at the moment. Depending on what you’re doing, you can find yourself using a variety of resources, each tailored to a particular situation.

Unlike other monitoring tools, collectl attempts to do everything. It focuses on a limited collection of statistics, formats its output in only one way, and runs interactively or as a daemon but not both. Buddyinfo, CPU, disc, inodes, Infiniband, luster, memory, network, nfs, processes, quadrics, slabs, sockets, and tcp are only a few of the subsystems that can be monitored.

Installing Collectl

The collectl package is included by default in most distributions (Debian, Ubuntu, Mint, Fedora, suse, openSUSE, Arch Linux, Manjaro, Mageia, and so on), so we can easily install it from the distribution official repository.

$ sudo apt-get install collectl
Collectl Examples An Awesome Performance Analysis Tool in Linux

Installing collectl

During installation, a popup will show select web server apach2:

Collectl Examples An Awesome Performance Analysis Tool in Linux

Select apache2

If you run the tool without any parameters, you’ll get the following result:

Collectl Examples An Awesome Performance Analysis Tool in Linux

The -s flag can be used to measure the following categories in brief:

SUMMARY SUBSYSTEMS

b - buddy info (memory fragmentation)
c - CPU
d - Disk
f - NFS V3 Data
i - Inode and File System
j - Interrupts
l - Lustre
m - Memory
n - Networks
s - Sockets
t - TCP
x - Interconnect
y - Slabs (system object caches)

DETAIL SUBSYSTEMS
C - CPU
D - Disk
E - Environmental data (fan, power, temp),  via ipmitool
F - NFS Data
J - Interrupts
L - Lustre OST detail OR client Filesystem detail
M - Memory node data, which is also known as numa data
N - Networks
T - 65 TCP counters only available in plot format
X - Interconnect
Y - Slabs (system object caches)
Z - Processes

Monitor CPU usage

Simply add -sc to the collectl command to print a list of CPU usage.

$ collectl -sc
Collectl Examples An Awesome Performance Analysis Tool in Linux

Monitor CPU usage

Simply add -sC to the collectl command to print detailed CPU usage:

$ collectl -sC
Collectl Examples An Awesome Performance Analysis Tool in Linux

Detailed CPU usage

Monitor Memory usage

Simply add -sm to the collectl command to print a list of memory consumption.

$ collectl -sm
Collectl Examples An Awesome Performance Analysis Tool in Linux

Monitor Memory usage

Simply use the -sM option with the collectl command to print detailed memory usage:

$ collectl -sM
Collectl Examples An Awesome Performance Analysis Tool in Linux

Detailed memory usage

Monitor Network usage

Simply add -sn to the collectl command to print a list of network usage.

$ collectl -sn
Collectl Examples An Awesome Performance Analysis Tool in Linux

Monitor Network usage

Simply use the -sN option with the collectl command to print detailed network usage.

$ collectl -sN
Collectl Examples An Awesome Performance Analysis Tool in Linux

Detailed network usage

Collectl Utilities

The focus of collectl has always been efficient performance data collection and its display on a single machine. Colplot is a web-based plotting utility that uses gnuplot to generate plots against collectl-generated files that have been generated in plot format.

You can access colplot by http://localhost/colplot (or a valid IP address of your server).

Colplot


Similar Reads

Mytop - Tool for Monitoring MySQL/MariaDB Performance in Linux
Mytop is a completely free and open-source tool that is used for monitoring MySQL and MariaDB databases. It was written in Perl by Jeremy Zawodny. It is almost similar to its counterpart top which is also used for monitoring purposes. Mytop provides the user with a shell through which the user can monitor different activities of the MySQL/MariaDB d
4 min read
Webkiller v2.0 - Tool Information Gathering tool in Kali Linux
Webkiller is a free and open-source tool available on GitHub. Webkiller is used as an information-gathering tool. Webkiller is used to scan websites for information gathering and finding vulnerabilities in websites and webapps. The whois data collection gives us information about Geoip lookup, Banner grabbing, DNS lookup, port scanning, sub-domain
3 min read
Cewl Tool - Creating Custom Wordlists Tool in Kali Linux
In this article, we will see how to create a wordlist with the Kali Linux tool Cewl and what options are available in this post. Cewl is a Ruby program that crawls a URL to a defined depth, optionally following external links, and produces a list of keywords that password crackers such as John the Ripper can use to crack passwords. can. FAB (Files
4 min read
Tool-X - Hacking Tool Installer in Kali Linux
Tool-X is a free and open-source tool written in python that is available on GitHub. Tool-X is used by security researchers and pen-testers in the early stages of reconnaissance and pen-testing. It is an installer framework for Kali Linux that has approximately 300 tools available on its menu. It will provide a command-line user interface that you
2 min read
MassDNS - High-Performance DNS Stub Resolver Tool
MassDNS is a C language-based tool that is simple and has high-performance DNS root resolver capability for those who seek to resolve a massive number of domain names in the order of billions. Without suitable configuration, MassDNS is steady at resolving 346000 words per second using publicly available resolvers. MassDNS tool is a single-threaded
3 min read
Ddosify - High-performance load testing tool
Securing web applications is a challenging task in the era of the digital world. The web application should be tested in all the parameters to prove itself a bug-free web application. So testing is the technique to make bug-free applications. Ddosify is a testing tool that is used in the Load Testing of an application. Ddosify tool is developed in
2 min read
SAR command in Linux to monitor system performance
sar (System Activity Report) It can be used to monitor Linux system's resources like CPU usage, Memory utilization, I/O devices consumption, Network monitoring, Disk usage, process and thread allocation, battery performance, Plug and play devices, Processor performance, file system and more. Linux system Monitoring and analyzing aids in understandi
4 min read
Iperf Command to Test Speed, Performance and Bandwidth of Network in Linux
There is a great degree of flex in how the packets are delivered and overall bit rate and packet payload size can be controlled. iperf is a tool that is used to perform network performance measurement and tuning. iperf is an open-source software which is written in C language. Jperf is a GUI version for doing the same job. The core concept work beh
2 min read
Finding System Boot-up Performance Statistics in Linux Using systemd-analyze Command
If your Linux system is taking so much time to boot, and you want to know which process is taking so much time to boot then you are on the right page. We are going to see how to get a complete overview of system boot-up time and which service is taking more time to initialize. We are going to use the systemd-analyze command and subcommands of syste
2 min read
How to Monitor Processor, Memory, Network Performance using dstat in Linux?
Do you want to run a quick performance test on your Linux machine? You may want to check the dstat command. Dstat is a versatile and efficient command that combines the features of several older tools such as vmstat, netstat, iostat, and ifstat to provide useful insights into Linux system performance. You can analyze virtual memory, network connect
2 min read
Article Tags :