2016-03-02 15:29:19 +03:00
|
|
|
.. _load:
|
|
|
|
|
|
|
|
Load
|
|
|
|
====
|
|
|
|
|
2019-04-11 14:24:17 +03:00
|
|
|
*Availability: Unix and Windows with a PsUtil version >= 5.6.2*
|
2016-03-02 15:29:19 +03:00
|
|
|
|
|
|
|
.. image:: ../_static/load.png
|
|
|
|
|
2017-06-27 22:13:26 +03:00
|
|
|
On the *No Sheep* blog, Zachary Tirrell defines the `load average`_
|
|
|
|
on GNU/Linux operating system:
|
2016-03-02 15:29:19 +03:00
|
|
|
|
|
|
|
"In short it is the average sum of the number of processes
|
|
|
|
waiting in the run-queue plus the number currently executing
|
|
|
|
over 1, 5, and 15 minutes time periods."
|
|
|
|
|
2019-04-11 14:24:17 +03:00
|
|
|
Be aware that Load on Linux, BSD and Windows are different things, high
|
|
|
|
`load on BSD`_ does not means high CPU load. The Windows load is emulated
|
|
|
|
by the PsUtil lib (see `load on Windows`_)
|
2017-06-27 22:13:26 +03:00
|
|
|
|
2019-11-02 15:42:24 +03:00
|
|
|
Glances gets the number of CPU core (displayed on the first line) to adapt
|
|
|
|
the alerts. Alerts on load average are only set on 15 minutes time period.
|
|
|
|
|
|
|
|
Thresholds are computed by dividing the 5 and 15 minutes average load per
|
|
|
|
CPU(s) number. For example, if you have 4 CPUs and the 5 minutes load is
|
|
|
|
1.0, then the warning threshold will be set to 2.8 (0.7 * 4 * 1.0).
|
2016-03-02 15:29:19 +03:00
|
|
|
|
2019-11-06 11:15:09 +03:00
|
|
|
From Glances 3.1.4, if Irix/Solaris mode is off ('0' key), the value is
|
|
|
|
divided by logical core number and multiple by 100 to have load as a
|
|
|
|
percentage.
|
|
|
|
|
|
|
|
.. image:: ../_static/loadpercent.png
|
|
|
|
|
2024-01-28 18:36:51 +03:00
|
|
|
A character is also displayed just after the LOAD header and shows the
|
|
|
|
trend value (for the 1 minute load stat):
|
|
|
|
|
|
|
|
======== ==============================================================
|
|
|
|
Trend Status
|
|
|
|
======== ==============================================================
|
|
|
|
``-`` Mean 15 lasts values equal mean 15 previous values
|
|
|
|
``↓`` Mean 15 lasts values is lower mean 15 previous values
|
|
|
|
``↑`` Mean 15 lasts values is higher mean 15 previous valuess
|
|
|
|
======== ==============================================================
|
|
|
|
|
2016-03-02 15:29:19 +03:00
|
|
|
Legend:
|
|
|
|
|
|
|
|
============= ============
|
|
|
|
Load avg Status
|
|
|
|
============= ============
|
|
|
|
``<0.7*core`` ``OK``
|
|
|
|
``>0.7*core`` ``CAREFUL``
|
|
|
|
``>1*core`` ``WARNING``
|
|
|
|
``>5*core`` ``CRITICAL``
|
|
|
|
============= ============
|
|
|
|
|
|
|
|
.. note::
|
|
|
|
Limit values can be overwritten in the configuration file under
|
|
|
|
the ``[load]`` section.
|
|
|
|
|
|
|
|
.. _load average: http://nosheep.net/story/defining-unix-load-average/
|
2017-06-27 22:13:26 +03:00
|
|
|
.. _load on BSD: http://undeadly.org/cgi?action=article&sid=20090715034920
|
2019-04-11 14:24:17 +03:00
|
|
|
.. _load on Windows: https://psutil.readthedocs.io/en/latest/#psutil.getloadavg
|