For Linux Cloud, Virtual, and Dedicated Servers
This article explains what information is displayed with the top program and which top commands you can use to monitor the current system load of your server.
You can use the top program to display system information as well as currently running processes. Additionally, it provides an interactive interface for manipulating processes and for individual configuration.
Most features can be selected either by interactive commands or by entries in the personal or system-wide configuration files.
After entering the top command, the following information is displayed in the first line:
System Time: The system time that is set on the server
Up: How long the system has been running
User: The number of users logged on
Load Average: The average system load for the last 1, 5, and 15 minutes
Tasks: The total number of running processes
%Cpu(s): The usage of the CPU in percent. The following abbreviations are used in this line:
|us||user||Time used by the un-"nice"-th user processes|
|sy||system||Time used by the kernel processes|
|ni||nice||Time used by the nice user processes|
|id||idle||Amount of time the system spends idle|
|wa||IO-wait||Time spent waiting for data processing. This information can also indicate disk speed bottlenecks.|
|hi||hardware interrupt||Time used to process hardware interrupts|
|si||software interrupt||Time used for handling software interrupts|
|st||steal time||Time that is "stolen" from the running virtual machine by the hypervisor for other tasks|
The following values are displayed in the process line:
|USER||User who started the process|
|NI||The nice value of this process: A negative value means higher priority. A positive value means lower priority.|
|VIRT||The total amount of virtual memory used by the task, which includes all code, data, shared libraries, and paged pages. In addition, it includes pages for which usage has been planned, but which are not currently in use.|
|RES||Part of physical memory that has not been swapped out|
|SHR||Space that could be shared with other processes|
|S||Status of the process. These are the corresponding statuses: D = uninterruptible sleep, R = running, S = sleeping, T = traced or stopped, Z = zombie.|
|%CPU||Processor time in percent used for this process|
|%MEM||Amount of available physical memory currently used by the process|
|TIME+||Processor time used by the process since startup|
|COMMAND||Name of the command|
The following is a list of important interactive commands.
|Key or key combination||Function|
|u||Display processes of a specific user|
|k||End process. You will then be asked for the PID of the process and the signal number.|
|r||Set the nice value of a process. You will then be asked for the PID and the nice value.|
|d||Set update interval in seconds. You will be asked for the waiting time (in seconds).|
|f||Add new fields to the display or remove existing ones.|
|n||Set maximum number of processes displayed.|
|N||Sort tasks by PID.|
|P||Sort task by CPU usage.|
|M||Sort task by RAM usage.|
You can find more information about top here:
For a further, more in-depth analysis of the system load, you can use the program atop. You can find more information about atop here:
Did this article help you?
Your feedback helps us to further improve our services. To leave feedback, log in to your IONOS account by clicking on the login button at the top right. You can then submit a rating below the article.