NCA-AIIO practice question 16 of 25

You are assisting in a project that involves deploying a large-scale AI model on a multi-GPU server. The server is experiencing unexpected performance degradation during inference, and you have been asked to analyze the system under the supervision of a senior engineer. Which approach would be most effective in identifying the source of the performance degradation?

Full set: 197 questions
Answer options
A: Monitor the system’s power supply levels.
B: Check the system’s CPU utilization.
C: Analyze the GPU memory usage using nvidia-smi. Correct answer
D: Inspect the training data for inconsistencies.
Correct Answer:
C. Analyze the GPU memory usage using nvidia-smi.
Explanation

The most effective initial approach for diagnosing performance degradation in a GPU-accelerated AI workload is to analyze the state of the GPUs themselves. The nvidia-smi (NVIDIA System Management Interface) command-line utility is the standard tool for this purpose. It provides real-time data on GPU utilization, power consumption, temperature, and, critically, memory usage. For large models, performance issues are frequently linked to memory bottlenecks, such as insufficient VRAM, inefficient memory allocation, or excessive data transfers between the CPU and GPU, all of which can be identified by monitoring GPU memory metrics.

Why Incorrect

A. Monitor the system’s power supply levels. While insufficient power can cause GPU throttling, it is a less common cause of performance degradation than resource bottlenecks and is not the most direct first step.
B. Check the system’s CPU utilization. For a workload explicitly deployed on a multi-GPU server, the primary bottleneck is far more likely to be on the GPU side (compute or memory) than the CPU.
D. Inspect the training data for inconsistencies. Data inconsistencies primarily impact the model's accuracy and correctness, not the computational performance or speed of the inference process.

References

1. NVIDIA System Management Interface (nvidia-smi) Documentation: The official documentation describes nvidia-smi as a tool to "monitor... and manage NVIDIA GPU devices." It lists queryable properties including memory.used

memory.total

and utilization.gpu

which are essential for diagnosing performance issues.

Source: NVIDIA Developer Documentation

nvidia-smi man page. (Accessible via man nvidia-smi on a system with NVIDIA drivers or online documentation portals).

2. NVIDIA Deep Learning Performance Guide: This guide emphasizes profiling as a key step in optimization. It states

"The first step in any optimization effort is to understand the performance of the unmodified application... Use tools like nvidia-smi to get a coarse-grained look at what the GPU is doing."

Source: NVIDIA Deep Learning Performance Guide

v2.1

Section 3.1 "Profiling".

3. Stanford University CS230 Courseware: In practical deep learning

monitoring hardware is crucial. Course materials often highlight nvidia-smi as the fundamental tool for checking GPU status. As noted in the course's project guidelines

"You can use nvidia-smi to monitor your GPU usage... This can be helpful for debugging."

Source: Stanford University

CS230 Deep Learning

Winter 2021

"Tips for your project" section.

Scroll to Top