docs/aoa/cpu.rst
.. _cpu:
The CPU stats are shown as a percentage or values and for the configured refresh time.
The total CPU usage is displayed on the first line.
.. image:: ../_static/cpu.png
If enough horizontal space is available, extended CPU information are displayed.
.. image:: ../_static/cpu-wide.png
CPU stats description:
To switch to per-CPU stats, just hit the 1 key:
.. image:: ../_static/per-cpu.png
In this case, Glances will show on line per logical CPU on the system. If you have multiple core, it is possible to define the maximum number of CPU to display. The top 'max_cpu_display' will be display and an extra line with the mean of all others CPU will be added.
.. code-block:: ini
[percpu]
max_cpu_display=4
Logical cores means the number of physical cores multiplied by the number of threads that can run on each core (this is known as Hyper Threading).
By default, steal CPU time alerts aren't logged. If you want that,
just add to the configuration file:
.. code-block:: ini
[cpu]
steal_log=True
Legend:
================= ============
CPU (user/system) Status
================= ============
<50% OK
>50% CAREFUL
>70% WARNING
>90% CRITICAL
================= ============
.. note::
Limit values can be overwritten in the configuration file under
the [cpu] and/or [percpu] sections.