How to measure the actual memory usage of Linux processes

This is a much harder question than one might think as VSZ and RSS are not accurate.  /proc/{PID}/smaps provides the most accurate information as of Linux 2.6.16. is a nice script that summarizes smaps information on a per application basis and gracefully falls back to measure VSZ when no smaps support is found.

Leave a Reply

Your email address will not be published.