Mailinglist Archive: opensuse (911 mails)

< Previous Next >
Re: [opensuse] Leap: strange problem with SWAP bloating
On Sunday, December 13, 2015 11:30:40 PM stakanov@xxxxxxxxxx wrote:
When using streaming or a broser like chromium or firefox I have the
problem that this machine bloats the swap up to 350- 400 Mb and even
more up to 1G and more.

Try running the following as root (one line):

grep Swap /proc/*/smaps | sort -k1 | awk '($1 == last) || (last == "")
{sum += $2} ($1 != last) && (last != "") {print last " " sum; sum = $2}
{last = $1} END {print last " " sum}'|sort -k2 -g -r | awk ' BEGIN
{FS="(/| *)"} { system("cat /proc/" $3 "/cmdline"); print " " $5 " kB"}'
2> /dev/null

This yields the list of programs sorted according to the memory swapped
out.
--
Regards,
Peter
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
References