1. 9
  1.  

  2. 6

    One variant of RSS that I like, but doesn’t seem to be commonly used, is PSS (proportional set size), which allocates memory usage of shared libraries proportionally to the various processes that are using them. Otherwise a shared library loaded by 5 processes ends up quintuple-counted in each process’s RSS, even though that memory is only used once total. I found that idea from smem, a tool that measures PSS.

    1. 1

      Thanks for showing this project!

    2. 2

      On Linux:

      cat /etc/<pid>/status | grep VmRSS