From owner-freebsd-bugs@freebsd.org Fri Apr 2 15:57:59 2021 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 58A5457B0E4 for ; Fri, 2 Apr 2021 15:57:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4FBl7q1jPZz3KJ8 for ; Fri, 2 Apr 2021 15:57:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 386CD57B2D6; Fri, 2 Apr 2021 15:57:59 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3822957B2D3 for ; Fri, 2 Apr 2021 15:57:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FBl7q0vkTz3Kjc for ; Fri, 2 Apr 2021 15:57:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0B7562292B for ; Fri, 2 Apr 2021 15:57:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 132FvwmB043039 for ; Fri, 2 Apr 2021 15:57:58 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 132FvwFN043038 for bugs@FreeBSD.org; Fri, 2 Apr 2021 15:57:58 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f 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 Date: Fri, 02 Apr 2021 15:57:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: ota@j.email.ne.jp X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Apr 2021 15:57:59 -0000 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.=