Menu

Atop – monitor system resources in Linux
Atop is an ASCII full-screen performance monitor for Linux that is capable of reporting the activity of all processes (even if processes have finished during the interval), daily logging of system and process activity for long-term analysis, highlighting overloaded system resources by using colors, etc. At regular intervals, it shows system-level activity related to the CPU, memory, swap, disks (including LVM) and network layers, and for every process (and thread) it shows e.g. the CPU utilization, memory growth, disk utilization, priority, username, state, and exit code.
In combination with the optional kernel module netatop, it even shows network activity per process/thread.

The command atop has some major advantages compared to other performance monitoring tools:

  • Resource consumption by all processes
  • Utilization of all relevant resources
  • Permanent logging of resource utilization
  • Highlight critical resources
  • Scalable window width
  • Resource consumption by individual threads
  • Watch activity only
  • Watch deviations only
  • Accumulated process activity per user
  • Accumulated process activity per program
  • Network activity per process
Install atop on RHEL/CentOS and Fedora linux


First you need to enable EPEL or RPMForge repository as described here to install atop. Type the following yum command:

# yum -y install atop
Install Atop on Debian/Ubuntu and Mint linux
# sudo apt-get install atop -y
How to use atop program

Type the following command as root user:
# atop
Example output:

To see active processes only
# atop -a
Display individual threads
# atop -y
Display average-per-second i.s.o. total values
# atop -1
Display memory-related process-info
# atop -m
Display disk-related process-info
# atop -d
Display network-related process-info
# atop -n
Display scheduling-related process-info
# atop -s
Display various process-info (ppid, user/group, date/time)
# atop -v
Display command line per process
# atop -c
Sorting option
Pass the following option to sort your process:

-C sort processes in order of cpu-consumption (default)
-M sort processes in order of memory-consumption
-D sort processes in order of disk-activity
-N sort processes in order of network-activity
-A sort processes in order of most active resource (auto mode)


For more information about Atop see man page:
# man atop

About Author:


I am a Linux Administrator and Security Expert with this site i can help lot's of people about linux knowladge and as per security expert i also intersted about hacking related news.TwitterFacebook

Next
Newer Post
Previous
Older Post

0 comments:

Post a Comment

 
Top