atop

Installation

yum install atop --enablerepo=epel

By default atop will log all the activity on every 600 seconds

Commands

  • Change the default interval: sed -i 's/600/60/g' /etc/sysconfig/atop
  • Show disk-related process-info and sort processes in order of disk-activity: atop -dD
  • Store the activity in binary compressed form to a file with an interval of 5 seconds during an hour: atop -w /tmp/atop.raw 5 720
  • View the contents of a raw file (t to move forward & T to move backwards): atop -r /tmp/atop.raw

atopsar

The program atopsar can be used to report statistics on system level

  • Produce all available reports: atopsar -A -r /tmp/atop.raw
  • Display the memory activity for ten minutes (60 samples with 1 second interval): atopsar -m 1 60

Parameters

| -A | Show all possible reports.                                    |
| -c | Report about CPU utilization (in total and per cpu).          |
| -p | Report about processor-related,matters like load-averages     |
| -P | Report about processes.                                       |
| -m | Current memory- and swap-occupation.                          |
| -s | Report about paging and swapping activity and overcommitment. |
| -l | Report about utilization of logical volumes.                  |
| -f | Report about utilization of multiple devices.                 |
| -d | Report about utilization of disks.                            |
| -n | Report about NFS mounted filesystems on NFS client.           |
| -j | Report about NFS client activity.                             |
| -J | Report about NFS server activity.                             |
| -i | Report about the network interfaces.                          |
| -I | Report about errors for network-interfaces.                   |
| -w | Report about IP version 4 network traffic.                    |
| -W | Report about errors for IP version 4 traffic.                 |
| -y | General report about ICMP version 4 layer activity.           |
| -Y | Per-type report about ICMP version 4 layer activity.          |
| -u | Report about UDP version 4 network traffic.                   |
| -z | Report about IP version 6 network traffic.                    |
| -Z | Report about errors for IP version 6 traffic.                 |
| -k | General report about ICMP version 6 layer activity.           |
| -K | Per-type report about ICMP version 6 layer activity.          |
| -U | Report about UDP version 6 network traffic.                   |
| -t | Report about TCP network traffic.                             |
| -T | Report about errors for TCP-traffic.                          |

Files

  • Configuration file: /etc/sysconfig/atop
  • Service script: /etc/init.d/atop
  • Logrotate file: /etc/logrotate.d/atop

Links