I run free -m on a debian VM running on Hyper-V:
total used free shared buffers cached
Mem: 10017 9475 541 147 34 909
-/+ buffers/cache: 8531 1485
Swap: 1905 0 1905
So out of my 10GB of memory, 8.5GB is in use and only 1500MB is free (excluding cache).
But I struggle to find what is using the memory. The output of ps aux | awk '{sum+=$6} END {print sum / 1024}', which is supposed to add up the RSS utilisation is:
1005.2
In other words, my processes only use 1GB of memory but the system as a whole (excluding cache) uses 8.5GB.
What could be using the other 7.5GB?
ps: I have another server with a similar configuration that shows used mem of 1200 (free mem = 8.8GB) and the sum of RSS usage in ps is 900 which is closer to what I would expect...