Total CPU usage for Linux monitor

How is the total CPU usage calculated for a Linux server monitor?

CPU Utilization is calculated using the 'top' command.
CPU Utilization = 100 - idle time
Eg:

idle value = 93.1 
CPU Utilization = ( 100 - 93.1 ) = 6.9%

If the server is an AWS instance, CPU usage is calculated using the formula:
CPU Utilization = 100 - idle_time - steal_time


Related Articles: