Skip to content

Commit

Permalink
Merge branch 'issue993' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolargo committed Apr 7, 2024
2 parents 76509e0 + 0ca1334 commit 82d7bfa
Show file tree
Hide file tree
Showing 15 changed files with 369 additions and 164 deletions.
8 changes: 6 additions & 2 deletions conf/glances.conf
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ proc_critical=90
mem_careful=50
mem_warning=70
mem_critical=90
# Temperature
temperature_careful=60
temperature_warning=70
temperature_critical=80

[mem]
disable=False
Expand Down Expand Up @@ -312,8 +316,8 @@ disable=False
#hide=ambient
# Sensors core thresholds (in Celsius...)
# Default values are grabbed from the system
#temperature_core_careful=60
#temperature_core_warning=70
#temperature_core_careful=45
#temperature_core_warning=65
#temperature_core_critical=80
# Temperatures threshold in °C for hddtemp
# Default values if not defined: 45/52/60
Expand Down
10 changes: 7 additions & 3 deletions docker-compose/glances.conf
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ proc_critical=90
mem_careful=50
mem_warning=70
mem_critical=90
# Temperature
temperature_careful=60
temperature_warning=70
temperature_critical=80

[mem]
disable=False
Expand Down Expand Up @@ -312,8 +316,8 @@ disable=False
#hide=ambient
# Sensors core thresholds (in Celsius...)
# Default values are grabbed from the system
#temperature_core_careful=60
#temperature_core_warning=70
#temperature_core_careful=45
#temperature_core_warning=65
#temperature_core_critical=80
# Temperatures threshold in °C for hddtemp
# Default values if not defined: 45/52/60
Expand Down Expand Up @@ -443,7 +447,7 @@ disable=False

[alert]
disable=False
# Maximum number of alerts to display (default is 10)
# Maximum number of events to display (default is 10 events)
;max_events=10
# Minimum duration for an event to be taken into account (default is 6 seconds)
;min_duration=6
Expand Down
33 changes: 17 additions & 16 deletions docs/aoa/gpu.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,16 @@
GPU
===

.. note::
You need to install the `nvidia-ml-py`_ library on your system.
Or `py3nvml`_ for Glances 3.4.0.2 or lower.
Or `nvidia-ml-py3`_ for Glances 3.1.3 or lower.
For the moment, only following GPU are supported:
- NVidia (thanks to the `nvidia-ml-py`_ library)
- AMD (only on Linux Operating system with kernel 5.14 or higher)

The GPU stats are shown as a percentage of value and for the configured
refresh time. It displays:

- total GPU usage
- memory consumption
- temperature (Glances 3.1.4 or higher)
- temperature

.. image:: ../_static/gpu.png

Expand All @@ -29,15 +28,19 @@ You can change the threshold limits in the configuration file:

.. code-block:: ini
[gpu]
# Default processor values if not defined: 50/70/90
proc_careful=50
proc_warning=70
proc_critical=90
# Default memory values if not defined: 50/70/90
mem_careful=50
mem_warning=70
mem_critical=90
[gpu]
# Default processor values if not defined: 50/70/90
proc_careful=50
proc_warning=70
proc_critical=90
# Default memory values if not defined: 50/70/90
mem_careful=50
mem_warning=70
mem_critical=90
# Temperature
temperature_careful=60
temperature_warning=70
temperature_critical=80
Legend:

Expand All @@ -51,5 +54,3 @@ GPU (PROC/MEM) Status
============== ============

.. _nvidia-ml-py: https://pypi.org/project/nvidia-ml-py/
.. _py3nvml: https://pypi.org/project/py3nvml/
.. _nvidia-ml-py3: https://pypi.org/project/nvidia-ml-py3/
Loading

0 comments on commit 82d7bfa

Please sign in to comment.