Why/how does "uptime" show CPU load >1?

26,597

Solution 1

Load is not equal to CPU usage. It is basically an indicator how many processes are waiting to be executed.

Some helpful links:

Solution 2

uptime shows system load (not exactly CPU usage), which is described in man uptime as follows:

System load averages is the average number of processes that are either in a runnable or uninterruptable state. A process in a runnable state is either using the CPU or waiting to use the CPU. A process in uninterruptable state is waiting for some I/O access, eg waiting for disk. The averages are taken over the three time intervals. Load averages are not normalized for the number of CPUs in a system, so a load average of 1 means a single CPU system is loaded all the time while on a 4 CPU system it means it was idle 75% of the time.

As long as the load is less than the number of CPU cores you have, it should be fine. If it gets above, it means that your system is not able to cope with its workload "real time". Thus, some processes need to wait to get CPU time (or IO access). A waiting line is created.

If you have a 2.7 load it means that on average (during the last 1, 5 or 15 minutes, depending on the value you look at), 2.7 processes are trying to execute in parallel, but you only have 1 core, so your system is overloaded. You're asking too much from it.

Don't panic though, it may not be such a problem: once the work is finished, things usually get back to normal.

Share:
26,597
Frantisek
Author by

Frantisek

An aspiring writer hoping to one day write a video game.

Updated on September 18, 2022

Comments

  • Frantisek
    Frantisek almost 2 years

    I have a 1 core CPU installed on my PC. Sometimes, uptime shows load >1. How is this possible and what does this mean?

    EDIT: The values go up to 2.4

  • Frantisek
    Frantisek over 10 years
    Oh, ok, that makes sense. Is there a way to get CPU usage, not load?
  • michas
    michas over 10 years
    Well generally you could have many CPUs. One could be totally busy and the other just idling. Have a look at htop for a nice "graphical" overview.
  • Wouter Verhelst
    Wouter Verhelst over 7 years
    rss is not related to load average, what are you on about?
  • Wouter Verhelst
    Wouter Verhelst over 7 years
    this is incorrect. The load average is a metric for how many processes are ready to be executed. This includes processes that are waiting, but also processes that are currently executing. So if the load average is 1, it means that on average (for the given time period) one CPU was in use; if it is two, that means that on average, two CPUs were in use. As such, a particular load average for a single-CPU system is not the same thing as the same load average for a multi-core system.
  • William Pursell
    William Pursell over 4 years
  • Travis Warlick
    Travis Warlick over 3 years
    This isn't entirely correct. System load includes processes waiting on the CPU, but it also includes processes using the CPU and processes waiting on I/O. This is exceptionally important because load >1 isn't a problem (nowadays) -- load greater than the number of your cores (not including threads) is a problem with sufficiently large I/O usage.