Ubuntu – How to get the actual used memory including RAM disks

memory usage

free -m does not seems to include memory used by RAM disks (tmpfs filesystems). Maybe because it's something in the kernel space?

How do I get the real memory usage (or it's opposite, free memory) including the allocated space of filesystems that reside in RAM like tmpfs?

I currently check for the memory usage by running df -h and adding the "In use" numbers to the -/+ buffers/cache number. Is there a command available that gives me the real memory usage?

Best Answer

you can install htop via the terminal

sudo apt-get install htop

then run htop in the terminal

disclaimer I guess this does not work on Lucid correctly

enter image description here

Related Question