“Drugs are a waste of time. They destroy your memory and your self-respect and everything that goes along with with your self-esteem. They’re no good at all.” – Kurt Cobain

Sitting here playing around with some cli I wanted to know how much memory my VGA card was using so to find out I did the following by typing:

root@websvr:~# lspci |grep “VGA

My results was the following
00:0f.0 VGA compatible controller: VMware SVGA II Adapter

I then typed the following lspci command to give me more details:

root@websvr:~# lspci -v -s 00:0f.0 |grep “Memory
Memory at d8000000 (32-bit, prefetchable) [size=64M]
Memory at d0800000 (32-bit, non-prefetchable) [size=8M]

And there I have it. I’m using 64M of memory.

–more info–

lspci is a command on Unix-like operating systems that prints detailed information about all PCI buses and devices in the system. It is based on a common portable library libpci which offers access to the PCI configuration space on a variety of operating systems.