Atop Command Tutorial With Examples To Monitor Linux System Meterics
Atop is a monitoring tool which is mainly developed for command line usage. It is capable of showing detailed information about process, memory, disk network information and metrics. Atop commands provides more details than popular top command.
$ atop -h
Atop can be started just issuing
atop command. But to get more detailed information and metrics about different subsystem usages providing root privileges are better way.
$ sudo atop
As we can see from screenshot the information provided is more than we may want the terminal screen fills up with monitoring information. We will look how to show specific information about CPU,process,network,disk memory etc.
Display CPU Usage
We can display CPU related information with
c shortcut after atop started. This will list processes according to their CPU usage with their PID’s and full command line with parameters and options.
$ atop -c
Display Memory Usage
We can show memory usage with
m shortcut. This will list information like PIC, minimum and maximum fault numbers, vstext, vsize,rsize,vgrow, rgrow, running user ID, effective user ID , memory usage and command.
Display Disk Utilization
Another usage type of disk utilization. We will use –
d option for this.
$ atop -d
We can see that disk utilization of the each process is show separately. Each process disk metrics like
RRDSKshows read disk
WRDSKshows write disk
DSKshows general disk usage
CMDshows related command
Display Process Information In Cumulative Manner
Process information can be listed with –p option. This will also show other metrics about disk, network and memory
$ atop -p
SYSCPUshow system side CPU usage
USRCPUshows user side CPU usage
VSIZEshows virtual memory size
RSIZEshows real memory size
RDDSKshows disk read
WRDSKshows disk write
RNETshows network receive
SNETshows network send
CPUshows shortcutCPU usage percentage
CMDshows related command
Display Process Information In Cumulative Manner According To User
Another useful feature of the atop is showing metrics in user perspective. This shortcut will sum up all metrics according to user. We will use –
$ atop -u
Display Network Usageshortcut
Network usage can be displayed with –
n option. But there is dependency for
netatop to probe the network information.
$ atop -n
Show Generic Information
General information about system an process can be listed with
-g option like below.
Show All Process
up to now only active process are shown. We can list all process without filtering them with
$ atop -a
Display Details / Verbose Mode
More details about current windows can be show with verbose mode. Verbose mode can be call
-v option or
v shortcut after atop starts.
$ atop -v