Overview:

  • Command top shows in the very first line also so called “average load”.
  • These values are taken from the file /proc/loadavg
  • Typical content looks like this:
     15.61 15.78 14.82 15/665 29855 

    meaning:

    • load over 1 minute
    • over 5 minutes
    • over 15 minutes
    • number of currently running processes (<= total num of CPUs) / total number of processes
    • PID of the most recently created process
  • check number of CPUs:
    • grep processor /proc/cpuinfo
    • grep processor /proc/cpuinfo | wc -l
    • nproc
    • lscpu
  • if load goes over total number of CPUs (processing units) then system is overloaded