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.
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.Thanks for showing this project!
On Linux: