Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We're running algorithms on Ubuntu and we need to know how much memory the program uses. Any help is appreciated.

share|improve this question
I read a thread recently on one of the opencl forums that indicates it isn't really possible unless you build it in to your application for AMD/ATI cards due to some optimizations that make memory management outputs non-global – RobotHumans Oct 9 '12 at 19:19
I've noticed that. – timothy Oct 11 '12 at 19:58

If you're really interested in monitoring an Nvidia GPU you can use the nvidia-smi tool (installed with nvidia-current package). See these references:

The latter in particular provides a nice script to output info.

For general memory and cpu usage, I'd go with htop (or top). Or you can use gnome-system-monitor for a gui based tool.

share|improve this answer
Okay thanks. This helps a lot. – timothy Oct 11 '12 at 19:57
Glad it helps... if it answers your question, please check the answer. We should both receive some reputation points then. – Ian B. Oct 11 '12 at 20:33

Your Answer


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.