New Chart about Swap usage
With this scripts we could easily get the top 10 of Swap users:
grep VmSwap /proc/*/status |
grep "^\/proc\/[0-9][0-9]*\/" |
sed -e "s/^\/proc\/\([0-9][0-9]*\)\/[^ ]* *\([0-9][0-9]*\) kB$/\2;\1/g" |
sort -nr |
while read line; do
mem="$(echo "$line" | cut -d";" -f1)";
pid="$(echo "$line" | cut -d";" -f2)";
echo -n "$line;";
cat "/proc/$pid/cmdline";
echo;
done;