freebsd-dev/usr.bin/systat
Konstantin Belousov 57e5da2c98 Augment systat(1) -swap to display large swap space processes
This change updates the systat(1) -swap display to use libprocstat to
obtain and display per-process swap space usage infomation following its
existing swap devise/file statistics. It also incorporates the disk I/O
information from the -vmstat display.

The new screen looks like below with 'systat -swap':
                    /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 2034M
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
zvol/sys/tempora 1024M 1015M
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
zvol/sys/swap    1024M 1014M
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Total            4096M 4063M
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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

Submitted by:	Yoshihiro Ota
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D29754
2021-10-26 15:50:29 +03:00
..
cmds.c
cmdtab.c
convtbl.c
convtbl.h
devs.c systat: Handle SIGWINCH to properly window resizing and adjust 2021-04-21 20:31:58 +02:00
devs.h systat: Handle SIGWINCH to properly window resizing and adjust 2021-04-21 20:31:58 +02:00
extern.h Improve size readability. 2021-02-15 20:23:32 +01:00
fetch.c Introduce sysputpage() to display large page size with human readable format. 2020-05-15 17:37:08 +00:00
icmp6.c
icmp.c
ifcmds.c Handle device removal and removal+add cases to fix infinity rate. 2020-07-11 13:56:36 +00:00
ifstat.c Handle device removal and removal+add cases to fix infinity rate. 2020-07-11 13:56:36 +00:00
iostat.c systat -zarc to display disk activities like -vm 2019-04-02 14:01:03 +00:00
ip6.c Add stat counter for ipv6 atomic fragments 2019-04-19 17:06:43 +00:00
ip.c
keyboard.c
main.c systat: Handle SIGWINCH to properly window resizing and adjust 2021-04-21 20:31:58 +02:00
Makefile Augment systat(1) -swap to display large swap space processes 2021-10-26 15:50:29 +03:00
Makefile.depend
mode.c
mode.h
netcmds.c
netstat.c
pigs.c systat: Avoid incorrect reallocation in pigs.c 2021-04-21 20:09:21 +02:00
proc.c Augment systat(1) -swap to display large swap space processes 2021-10-26 15:50:29 +03:00
sctp.c
swap.c Augment systat(1) -swap to display large swap space processes 2021-10-26 15:50:29 +03:00
sysput.c Augment systat(1) -swap to display large swap space processes 2021-10-26 15:50:29 +03:00
systat.1 Augment systat(1) -swap to display large swap space processes 2021-10-26 15:50:29 +03:00
systat.h Augment systat(1) -swap to display large swap space processes 2021-10-26 15:50:29 +03:00
tcp.c
vmstat.c Adjust to display more than 999 sleeping threads 2020-12-27 22:32:22 +01:00
zarc.c Clean up copyright messages. 2021-05-10 23:14:35 -07:00