Demo: RSS, PSS and USS for One Process¶
Run¶
grep -E '^[0-9a-f]|^Rss:|^Pss:' /proc/$$/smaps | head -20
smem -P bash -c "pid command uss pss rss" | grep -E "PID|^ *$$ "
Ask¶
- The code zone: 1,240 KB of
Rss, 63 KB ofPss. How many processes share it? - The heap:
PssequalsRss. Why can a writable zone not be shared the same way?