Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between nvidia-smi Memory-Usage and GPU Memory Usage?

Tags:

memory

gpu

nvidia

Running the nvidia-smi command displays for example:

enter image description here

What's the difference between Memmory-Usage and GPU Memory Usage?

like image 876
user3731622 Avatar asked Nov 15 '25 13:11

user3731622


1 Answers

Memory-Usage indicates:

used memory/total memory

Used memory is how much of the GPU's memory is in use. Total Memory is how much is available, if nobody were using any of it.

GPU Memory Usage simply breaks this down by process.

This output apparently has one process running, and that process is using 10557 megabytes of GPU 0 memory. That is essentially the same as the 10570 number reported above it. Yes, there is a small difference, it is due to GPU memory consumption not associated with that process (e.g. in use by CUDA itself).

like image 108
Robert Crovella Avatar answered Nov 18 '25 20:11

Robert Crovella