On 8/17/20 12:00 PM, Chris Murphy wrote:
I don't know what smem's Swap column is showing. It doesn't match /proc/pid/status -> VmSwap
sudo smem -t --sort swap
PID User Command Swap USS PSS RSS ... 31111 chris /usr/bin/gnome-shell 4912 119760 151274 238112
$ grep VmSwap /proc/31111/status VmSwap: 0 kB
From smem source, it's totaling up the "Swap:" lines from /proc/pid/smaps
https://selenic.com/repo/smem/file/tip/smem#l35