htop lists a good 3.5 GB of RAM usage, but the system monitor only totals up to 300-400 MB (which seems reasonable since I had nothing but the gnome shell running).
How can I get a quick overview of RAM usage / what is using how much?
This is very frustrating for me. Yesterday I even had processes killed due to RAM limits and I have no idea where the bottleneck is.
Something like SnakeViz for RAM would come in handy.
Thanks a lot!
P.S. All tmpfs (df -t tmpfs | awk '/tmpfs/{sum+=$3} END {print sum}') occupy about 60 MB currently.
You have to add kernel overhead and kernel caches to the memory used by processes.
Edit: and beware that processes share memory so just adding the memory of all processes will give you too big a answer.
Like I said memory use in a modern OS is complex.