I am getting sum of all reserved memory in KBs by using following command:-
ps aux --sort -rss | awk '{sum +=$6} END {print sum}'
OUTPUT: 14746220 i.e. 14.74GB
However free -g returns 27GB
as used. Why there is a difference between the two outputs? Doesn't ps shows all the memory allocation?