Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- grep '^VmSwap:' /proc/*/status
- | grep -v '0 kB$'
- | sed -re 's#^/proc/([0-9]+)/status:VmSwap:[ t]+([0-9]+) kB$#1 2#'
- | sort -nrk2
- | while read pid swap; do
- printf "%10s kB %-6s " ${swap} ${pid};
- cat /proc/${pid}/cmdline | xargs -0 | fold -sw160 | sed -re '/^$/d; 1!s/^/tttt/;';
- done
- | less -cRS
- 233256 kB 31326 mysqld
- 229896 kB 32229 mysqld
- 24968 kB 32424 /usr/local/bin/ruby bin/rails server -b 0.0.0.0
- 17232 kB 15256 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
- 8972 kB 15405 /usr/lib/virtualbox/VBoxHeadless --startvm acdb10c9-00fa-4514-a836-b9e3554214f3
- 8664 kB 14551 /usr/bin/containerd
- 5972 kB 22984 /usr/sbin/named -f -u bind -c /etc/bind/named.conf
- [...]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement