Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to determine the amount of free video RAM in Linux?

We believe that we are running out of video RAM in a Linux based system that we are working on. We are seeing video & graphic drivers segment faulting with allocation related errors.

Are they any tools or techniques that we can use to determine how much video ram is free at any given point in time? Either an external application or something that we build into our application would be great.

Any ideas / suggestions would be appreciated -- Thanks.

like image 681
Steve Hawkins Avatar asked Sep 26 '09 04:09

Steve Hawkins


People also ask

How do I find out how much VRAM I have in Linux?

Open CPU-Z. Click the Graphics tab. Locate the Memory section. The amount of video memory is displayed next to Size, as shown in the image below.


1 Answers

There isn't a standard way that I know of. Ask whoever makes the drivers you are using.

Depending on your driver, you might have a shot with lspci. Run it verbosely with -v -v

$lspci -v -v | less

look for something that resembles your video card driver, if you're lucky it might list the amount of free memory.

like image 101
Mike Avatar answered Sep 21 '22 11:09

Mike