Closed GoogleCodeExporter closed 9 years ago
PSS is already provided by get_memory_maps().
USS looks useful indeed, but it's not clear to me how to retrieve it.
Original comment by g.rodola
on 28 Dec 2012 at 3:33
This might help: http://lwn.net/Articles/236438/ per author's comment URES
provided by meminfo.py (http://koltsoff.com/pub/meminfo/releases/) is USS.
Original comment by anthony....@gmail.com
on 28 Dec 2012 at 3:43
See also smem: http://selenic.com/repo/smem/file/18af01ef8674/smem
Original comment by anthony....@gmail.com
on 28 Dec 2012 at 3:56
In meminfo it's calculated as (resident - shared).
Since both values are already provided natively I think we better leave USS out
and just let the user calculate it.
Original comment by g.rodola
on 28 Dec 2012 at 4:05
Makes sense.
Original comment by anthony....@gmail.com
on 28 Dec 2012 at 4:35
Note for USS people interested, to match smem USS report, the following should
be used instead of (resident - shared):
uss = 0
for m in p.get_memory_maps():
uss += (m.private_dirty + m.private_clean) / 1024
However not sure why smem include private_clean as some reading telling
private_dirty=uss
Original comment by anthony....@gmail.com
on 28 Dec 2012 at 5:08
Original issue reported on code.google.com by
anthony....@gmail.com
on 27 Dec 2012 at 12:55