On 8/14/20 4:34 PM, Samuel Sieb wrote:
On 8/14/20 1:52 PM, Chris Murphy wrote:
/proc/pid/status
VmHWM or VmRSS + VmSwap
Yes, thank you!
VmHWM is not so useful for this case, but certainly for others.
Comparing with the "top" numbers, the VmRSS total looks slightly high,
depending on how zswap factors in to the numbers.
The VmSwap total is short by about 2GB (out of 12GB).
But that's the information I was looking for. Now I can do some
analysis to figure out what's hogging my (virtual) memory.
And it gave a very unexpected result. The top two offenders are:
/usr/libexec/gnome-shell-calendar-server 3167256 (3GB)
/usr/libexec/evolution-calendar-factory 2006908 (2GB)
They have almost no RSS.
For anyone curious, this is how I did it:
grep VmSwap /proc/*/status | sort -r -n -k 2 | while read name size kb;
do echo "$(readlink /proc/$(echo ${name} | cut -d/ -f 3)/exe) $size";
done | less
That's all one line.
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx