]> granicus.if.org Git - procps-ng/commit
ps: Add PSS and USS fields
authorCraig Small <csmall@dropbear.xyz>
Wed, 16 Jun 2021 11:13:52 +0000 (21:13 +1000)
committerCraig Small <csmall@dropbear.xyz>
Wed, 16 Jun 2021 11:13:52 +0000 (21:13 +1000)
commite782b1d85989a9d27474264d4d65ffe1c485bdc9
tree5859fe4964b9611851dbeb7732d9f5a749f134f2
parente75bbeb117d930840ab376105b15a1eee113a4dc
ps: Add PSS and USS fields

The library added smaps_rollup fields in the referenced commit.
This commit exploits the new fields to give pss and uss options.

These options were first proposed back in 2015 by Petr Malat
and, with the library update, they are finally made it into ps.

Why use proportional or unique segment size? It is argued that
these give a better idea of the "real" memory usage of a process.

References:
 commit 12543b6c7690c379abc28e278cd804c05490a8b1
 issue #112
 https://www.freelists.org/post/procps/PSS-and-USS-support-for-ps
 https://lwn.net/Articles/230975/

Signed-off-by: Craig Small <csmall@dropbear.xyz>
NEWS
ps/common.h
ps/global.c
ps/output.c
ps/ps.1