Analyzing Linux server performance with atop

Read the full article here:

https://www.redhat.com/en/blog/analyzing-linux-server-performance-atop

Partial excerpt follows:


We’re all familiar with top, a real-time system monitor which shows usage of your Linux hardware and network resources. As a top command alternative, atop also provides sysadmins with real-time system insight, and also allows for an anatomized view of which processes are using the most CPU, memory, storage, or network.

Let’s take a look at using atop for Linux server performance analysis.

Advantages of atop

Atop is an ASCII, full-screen performance monitor which can log and report the activity of all server processes. One feature I really like is that atop stays active in the background for long-term server analysis (up to 28 days by default). Other advantages include:

  • Shows resource usage of all processes, even those that are closed or completed.

  • Monitors threads within processes and ignores processes that are unused.

  • Accumulates resource usage for all processes and users with the same name.

  • Highlights critical resources using colors (red).

  • Adds or removes columns as the size of the display window changes.

  • Includes disk I/O and network utilization.

  • Uses the netatop kernel module to monitor TCP, UDP, and network bandwidth.

Once atop is launched, by default it shows system activity for CPU, memory, swap, disks, and network in 10-second intervals. In addition, for each process and thread, you can analyze CPU utilization, memory consumption, disk I/O, priority, username, state, and even exit codes: