nvidia-smi shows 80 GB total and 6 GB used on a GPU. A job needs about 60 GB for data plus 20 GB working space. What should you do?
- Exam domain
- MLOps19% of the exam
- Difficulty
- Medium
- In this mock
- 10 questions on this domainPractise this domain
Why the exam asks this
Objective in the exam guide: Comparing the required memory with the available memory on a device
Comparing required and available memory is named.
Why D is the answer
Reduce the footprint or use more GPUs, because 80 GB needed exceeds 74 GB free
Required memory, 80 GB, exceeds free memory, 74 GB. Smaller dtypes, fewer columns, partitioning across GPUs or spilling are needed.
Remember: Compare required memory with free device memory.
How it works
Device memory planning compares the dataset and working memory with free GPU memory.
In detail
- Compare required with free memory.
- Plan headroom for intermediates.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Run it as is, since 80 GB total is enoughWrongMost tempting
Total is not free memory.
Why it tempts: The total matches the requirement.
B. Restart nvidia-smi to free memoryWrong
nvidia-smi only reports.
C. Lower the GPU fan speedWrong
Fans do not change memory.
D. Reduce the footprint or use more GPUs, because 80 GB needed exceeds 74 GB freeRight
Compare required memory with free device memory.
Use case
An illustrative scenario, not a real incident.
Illustrative: downcasting floats to float32 brings the need to 55 GB.
See it in different ways
mindmap
root(("GPU memory"))
n1["Total"]
n2["80 GB"]
n3["Used"]
n4["6 GB"]
n5["Free"]
n6["74 GB"]
n7["Needed"]
n8["80 GB"]How to read this chart
- The centre is "GPU memory".
- "Total" covers "80 GB".
- "Used" covers "6 GB".
- "Free" covers "74 GB".
- "Needed" covers "80 GB".
flowchart LR S0["Downcast dtypes"] --> S1["Drop unused columns"] --> S2["Partition with Dask"] --> S3["Enable spilling"]
How to read this chart
- Read it in order: Downcast dtypes, then Drop unused columns, then Partition with Dask, then Enable spilling.