The load values are proportional to how long time a runnable
Unix process has to spend in the run queue before it is scheduled.
Accordingly, higher values mean more system load. The returned
value divided by 256 produces the figure displayed by
For example,
If the user wants to view load values as percentage of machine capacity, then this way of measuring presents a problem, because the load values are not restricted to a fixed interval. In this case, the following simple mathematical transformation can produce the load value as a percentage:
PercentLoad = 100 * (1 - D/(D + Load))
Another way of measuring system load is to divide the number of busy CPU cycles by the total number of CPU cycles. This produces values in the 0-100 range immediately. However, this method hides the fact that a machine can be more or less saturated. CPU utilization is therefore a better name than system load for this measure.
A server which receives just enough requests to never become idle will score a CPU utilization of 100%. If the server receives 50% more requests, it will still scores 100%. When the system load is calculated with the percentage formula shown previously, the load will increase from 80% to 87%.
The
When run on Linux,
Returns the number of UNIX processes running on this machine. This is a crude way of measuring the system load, but it may be of interest in some cases.
Returns 0 if
Returns the average system load in the last minute, as
described above. 0 represents no load, 256 represents the load
reported as 1.00 by
Returns 0 if
Returns the average system load in the last five minutes, as
described above. 0 represents no load, 256 represents the load
reported as 1.00 by
Returns 0 if
Returns the average system load in the last 15 minutes, as
described above. 0 represents no load, 256 represents the load
reported as 1.00 by
Returns 0 if
Returns CPU utilization since the last call to
The returned value of the first call to
The CPU utilization is defined as the sum of the percentage
shares of the CPU cycles spent in all busy processor states
(see
Returns 0 if
Returns CPU utilization since the last call to
The returned value of the first call to
Currently recognized options:
The returned
Each CPU will be specified separately (assuming this
information can be retrieved from the operating system),
that is, a list with one
Description of
If the
If not, this is the atom
If the
If not, this is the sum of the percentage shares of the CPU cycles spent in all states identified as busy.
If the
Similar to
Currently unused; reserved for future use.
Currently these processor states are identified as busy:
Executing code in user mode.
Executing code in low priority (nice) user mode. This state is currently only identified on Linux.
Executing code in kernel mode.
Currently these processor states are identified as non-busy:
Waiting. This state is currently only identified on Solaris.
Idle.
Identified processor states may be different on different
operating systems and may change between different versions
of
Returns