Este conteúdo não está disponível no idioma selecionado.
Chapter 12. The NVIDIA GPU administration dashboard
12.1. Introduction Copiar o linkLink copiado para a área de transferência!
The OpenShift Console NVIDIA GPU plugin is a dedicated administration dashboard for NVIDIA GPU usage visualization in the OpenShift Container Platform (OCP) Console. The visualizations in the administration dashboard provide guidance on how to best optimize GPU resources in clusters, such as when a GPU is under- or over-utilized.
The OpenShift Console NVIDIA GPU plugin works as a remote bundle for the OCP console. To run the plugin the OCP console must be running.
12.2. Installing the NVIDIA GPU administration dashboard Copiar o linkLink copiado para a área de transferência!
Install the NVIDIA GPU plugin by using Helm on the OpenShift Container Platform (OCP) Console to add GPU capabilities.
The OpenShift Console NVIDIA GPU plugin works as a remote bundle for the OCP console. To run the OpenShift Console NVIDIA GPU plugin an instance of the OCP console must be running.
Prerequisites
- Red Hat OpenShift 4.11+
- NVIDIA GPU operator
- Helm
Procedure
Use the following procedure to install the OpenShift Console NVIDIA GPU plugin.
Add the Helm repository:
helm repo add rh-ecosystem-edge https://rh-ecosystem-edge.github.io/console-plugin-nvidia-gpu
$ helm repo add rh-ecosystem-edge https://rh-ecosystem-edge.github.io/console-plugin-nvidia-gpu
Copy to Clipboard Copied! Toggle word wrap Toggle overflow helm repo update
$ helm repo update
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Install the Helm chart in the default NVIDIA GPU operator namespace:
helm install -n nvidia-gpu-operator console-plugin-nvidia-gpu rh-ecosystem-edge/console-plugin-nvidia-gpu
$ helm install -n nvidia-gpu-operator console-plugin-nvidia-gpu rh-ecosystem-edge/console-plugin-nvidia-gpu
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example output
Copy to Clipboard Copied! Toggle word wrap Toggle overflow The dashboard relies mostly on Prometheus metrics exposed by the NVIDIA DCGM Exporter, but the default exposed metrics are not enough for the dashboard to render the required gauges. Therefore, the DGCM exporter is configured to expose a custom set of metrics, as shown here.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Install the ConfigMap and edit the NVIDIA Operator ClusterPolicy CR to add that ConfigMap in the DCGM exporter configuration. The installation of the ConfigMap is done by the new version of the Console Plugin NVIDIA GPU Helm Chart, but the ClusterPolicy CR editing is done by the user.
View the deployed resources:
oc -n nvidia-gpu-operator get all -l app.kubernetes.io/name=console-plugin-nvidia-gpu
$ oc -n nvidia-gpu-operator get all -l app.kubernetes.io/name=console-plugin-nvidia-gpu
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example output
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
12.3. Using the NVIDIA GPU administration dashboard Copiar o linkLink copiado para a área de transferência!
After deploying the OpenShift Console NVIDIA GPU plugin, log in to the OpenShift Container Platform web console using your login credentials to access the Administrator perspective.
To view the changes, you need to refresh the console to see the GPUs tab under Compute.
12.3.1. Viewing the cluster GPU overview Copiar o linkLink copiado para a área de transferência!
You can view the status of your cluster GPUs in the Overview page by selecting Overview in the Home section.
The Overview page provides information about the cluster GPUs, including:
- Details about the GPU providers
- Status of the GPUs
- Cluster utilization of the GPUs
12.3.2. Viewing the GPUs dashboard Copiar o linkLink copiado para a área de transferência!
You can view the NVIDIA GPU administration dashboard by selecting GPUs in the Compute section of the OpenShift Console.
Charts on the GPUs dashboard include:
-
GPU utilization: Shows the ratio of time the graphics engine is active and is based on the
DCGM_FI_PROF_GR_ENGINE_ACTIVE
metric. -
Memory utilization: Shows the memory being used by the GPU and is based on the
DCGM_FI_DEV_MEM_COPY_UTIL
metric. -
Encoder utilization: Shows the video encoder rate of utilization and is based on the
DCGM_FI_DEV_ENC_UTIL
metric. -
Decoder utilization: Encoder utilization: Shows the video decoder rate of utilization and is based on the
DCGM_FI_DEV_DEC_UTIL
metric. -
Power consumption: Shows the average power usage of the GPU in Watts and is based on the
DCGM_FI_DEV_POWER_USAGE
metric. -
GPU temperature: Shows the current GPU temperature and is based on the
DCGM_FI_DEV_GPU_TEMP
metric. The maximum is set to110
, which is an empirical number, as the actual number is not exposed via a metric. -
GPU clock speed: Shows the average clock speed utilized by the GPU and is based on the
DCGM_FI_DEV_SM_CLOCK
metric. -
Memory clock speed: Shows the average clock speed utilized by memory and is based on the
DCGM_FI_DEV_MEM_CLOCK
metric.
12.3.3. Viewing the GPU Metrics Copiar o linkLink copiado para a área de transferência!
You can view the metrics for the GPUs by selecting the metric at the bottom of each GPU to view the Metrics page.
On the Metrics page, you can:
- Specify a refresh rate for the metrics
- Add, run, disable, and delete queries
- Insert Metrics
- Reset the zoom view