Date: Fri, 02 Apr 2021 15:57:59 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 254723] [patch] systat -swap to display per-process swap space usage ordered by highest Message-ID: <bug-254723-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254723 Bug ID: 254723 Summary: [patch] systat -swap to display per-process swap space usage ordered by highest Product: Base System Version: 13.0-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: ota@j.email.ne.jp Created attachment 223771 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D223771&action= =3Dedit Display per-process swap usage - diff against releng/13.0 and contains extra improvements This is an improvement to "systat -swap" to display high swap space process= es in addition to swap process. It uses libprocstat to find swap backed vm entries. It adds each of vm size from the address space minus resident memory to figure out swapped out page size. Some example outputs are pasted below: /0 /1 /2 /3 /4 /5 /6 /7 /8 /9 /10 Load Average |=20 Device/Path Size Used |0% /10 /20 /30 /40 / 60\ 70\ 80\ 90\ = 100| ada0s1b 2048M 2034M XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX= XXX zvol/sys/tempora 1024M 1015M XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX= XXX zvol/sys/swap 1024M 1014M XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX= XXX Total 4096M 4063M XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX= XXX Pid Username Command Swap/Total Per-Process Per-System 24153 hiro seamonkey 98M / 1G 7% 2% 23677 hiro xfce4-pane 28M / 81M 34% XXX 0% 23629 hiro xfce4-sess 25M / 118M 21% XX 0% 23681 hiro xfdesktop 20M / 58M 34% XXX 0% 23678 hiro thunar 15M / 43M 36% XXX 0% 23658 hiro at-spi-bus 14M / 23M 63% XXXXXX 0% 23660 hiro gvfsd 12M / 21M 56% XXXXX 0% Disks ada0 ada1 ada2 cd0 pass0 pass1 pass2 pass3 KB/t 8.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 tps 0 0 0 0 1 0 0 0 MB/s 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 %busy 0 0 0 0 0 0 0 0 /0 /1 /2 /3 /4 /5 /6 /7 /8 /9 /10 Load Average | Device/Path Size Used |0% /10 /20 /30 /40 / 60\ 70\ 80\ 90\ = 100| ada0s1b 2048M 1046M XXXXXXXXXXXXXXXXXXXXXXXXX Pid Username Command Swap/Total Per-Process Per-System 12696 hiro java 2G / 3G 62% XXXXXX 85% XXXXXXXX 2201 hiro xfdesktop 21M / 51M 41% XXXX 1% 2217 hiro gvfsd-tras 19M / 31M 61% XXXXXX 0% 2214 hiro gvfs-gphot 17M / 26M 64% XXXXXX 0% 2212 hiro gvfs-hal-v 17M / 25M 64% XXXXXX 0% 2206 hiro gvfsd 16M / 27M 59% XXXXX 0% 2203 hiro xfsettings 15M / 44M 35% XXX 0% 2260 hiro xterm 15M / 24M 64% XXXXXX 0% 2197 hiro xfce4-pane 15M / 45M 33% XXX 0% Disks ada0 da0 cd0 pass0 pass1 pass2 KB/t 13.87 0.00 0.00 0.00 0.00 0.00 tps 14 0 0 1 0 0 MB/s 0.18 0.00 0.00 0.00 0.00 0.00 %busy 1 0 0 0 0 0 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-254723-227>