
Anish R. answered 05/14/20
Senior in Computer Science and Engineering at U of M
Install smem. smem gives you memory reports on Linux systems, it reports proportional set size (PSS), and is a way more meaningful metric than RSS, which will consistently overestimate memory consumption.
You can look at the documentation for smem, but smem -t, and smem -tw for applications, and system-wide output should work and service for your request. Attached is a video showing its use.
Hope this helps.