Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Previously I was checking the memory usage on my GPU with the following command:

nvidia-settings -q all | grep Memory

I am processing some scientific data on my GPU with numpy and theano. I was doing this with the gnome desktop running, and there was already 380 Mb of memory used on the device. So I stopped lightdm to free up a little more GPU memory; but, now the nvidia-settings tool no longer works.

It simply errors that there is no display

ERROR: Cannot open display ':0.0'.

Is there some other way of getting GPU memory without using this tool? Is there some way to use make it function in headless mode?

share|improve this question
1  
Mitch (credit to) gives the answer here: askubuntu.com/questions/387594/how-to-measure-gpu-usage nvidia-smi –  xxjjnn Dec 7 '13 at 19:51
1  
possible duplicate of askubuntu.com/questions/387594/how-to-measure-gpu-usage? –  Kevin Bowen May 19 '14 at 7:17

1 Answer 1

For Nvidia GPUs

nvdia-smi

For Intel GPUs

intel-gpu-tools

For AMD GPUs

aticonfig --odgc --odgt

Bouns Tips for real time watching exmaple

watch nvdia-smi

Finally, relax and you're welcome.

share|improve this answer
    
+1. Just a headsup: intel_gpu_tools (underscore, not dash), as a command. –  IsaacS Jan 14 at 20:09

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.