commit - 0e3e46b7cc59653dde1d3ff7405536e920834a91
commit + 3701c35479e9e9ab29b8f1c4dd0747e7f4c1487b
blob - ed9b7752758e6f0779460b6677085d0089aac4a6
blob + 2686795281c1f2ea0984713a005d6c0e652ec406
--- nsh.8
+++ nsh.8
show system-stats interface Interface information
show system-stats net Network connection information
- show system-stats mbuf Network data memory buffer information
- show system-stats queues Active Packet Filter queue information
- show system-stats rules Active Packet Filter rule information
- show system-stats states Packet Filter connection state information
- show system-stats packet-filter Packet Filter information
- show system-stats sensors Supported hardware sensor reading information
- show system-stats pigs CPU resource hog program information
+ show system-stats mbuf Network data memory buffer info
+ show system-stats queues Active Packet Filter queue info
+ show system-stats rules Active Packet Filter rule info
+ show system-stats states Packet Filter connection state info
+ show system-stats packet-filter Packet Filter information
+ show system-stats sensors Supported hardware sensor readings
+ show system-stats pigs CPU resource hog program info
show system-stats virtual-memory Virtual memory usage information
show system-stats cpu CPU usage information
show system-stats uvm UVM subsystem information
show system-stats swap Swap space usage information
show system-stats pool Kernel pool usage information
- show system-stats pcache Kernel pool per CPU cache information
- show system-stats malloc Kernel memory allocation type information
+ show system-stats pcache Kernel pool per CPU cache info
+ show system-stats malloc Kernel memory allocation type info
show system-stats bucket Kernel malloc bucket information
nsh(p)/show system-stats
.Ed
.Ox .
.Bd -literal -offset indent
nsh(p)/show system-stats interface
- 0 users Load 0.03 0.05 0.01 nsh 22:36:37
+ 0 users Load 0.03 0.05 0.01 nsh 22:36:37
-IFACE STATE DESC IPKTS IBYTES IFAILS OPKTS OBYTES OFAILS COLLS
-em0 up:U 0 0 0 0 0 0 0
-em1 dn:U 0 0 0 0 0 0 0
-enc0 dn:U 0 0 0 0 0 0 0
-lo0 up 0 0 0 0 0 0 0
-pflog0 up 0 0 0 0 0 0 0
-Totals 0 0 0 0 0 0 0
+IFACE STATE DESC IPKTS IBYTES IFAILS OPKTS OBYTES OFAILS
+em0 up:U 0 0 0 0 0 0
+em1 dn:U 0 0 0 0 0 0
+enc0 dn:U 0 0 0 0 0 0
+lo0 up 0 0 0 0 0 0
+pflog0 up 0 0 0 0 0 0
+Totals 0 0 0 0 0 0
.Ed
.Pp
.Tg statistics
.Ox .
.Bd -literal -offset indent
nsh(p)/show system-stats net
- 0 users Load 0.03 0.04 0.00 nsh 22:39:37
+ 0 users Load 0.03 0.04 0.00 nsh 22:39:37
-LOCAL ADDRESS FOREIGN ADDRESS PROTO RECV-Q SEND-Q STATE
-10.0.2.15:23041 10.4.90.123:123 udp 0 0
-10.0.2.15:12678 10.4.89.123:123 udp 0 0
+LOCAL ADDRESS FOREIGN ADDRESS PROTO RECV-Q SEND-Q STATE
+10.0.2.15:23041 10.4.90.13:123 udp 0 0
+10.0.2.15:12678 10.4.89.13:123 udp 0 0
.Ed
.Pp
.Tg statistics
.Ox .
.Bd -literal -offset indent
nsh(p)/show system-stats queues
- 0 users Load 0.01 0.02 0.00 nsh 00:34:38
+ 0 users Load 0.01 0.02 0.00 nsh 00:34:38
-QUEUE BW/FL SCH PKTS BYTES DROP_P DROP_B QLEN BORR SUSP P/S B/S
+QUEUE BW/FL SCH PKTS BYTES DROP_P DROP_B QLEN BORR SUSP
rootq on em0 20M fifo 0 0 0 0 0
main 20M fifo 0 0 0 0 0
qdef 9600K fifo 28 2125 0 0 0
.Ox .
.Bd -literal -offset indent
nsh(p)/show system-stats rules
- 0 users Load 0.39 0.17 0.06 nsh 00:41:41
+ 0 users Load 0.39 0.17 0.06 nsh 00:41:41
-RU A D L Q IF PR K PKTS BYTES STATE MAX INFO
- 0 B A 0 0 0 return all
- 1 P A K 1190 98403 8 all
- 2 M I Q em0 tcp 0 0 0 from any to any port = ftp queue
- 3 M I Q em0 tcp 0 0 0 from any to any port = www queue
- 4 M O em0 udp 1152 87696 0 all queue qdns
- 5 M O em0 icmp 0 0 0 all queue qdef
- 6 B I !lo0 tcp 0 0 0 turn from any to any port 6000:6
- 7 B O L tcp 0 0 0 return all user = 55
- 8 B O L udp 0 0 0 return all user = 55
+RU A D L Q IF PR K PKTS BYTES INFO
+ 0 B A 0 0 return all
+ 1 P A K 1190 98403 all
+ 2 M I Q em0 tcp 0 0 from any to any port = ftp queue
+ 3 M I Q em0 tcp 0 0 from any to any port = www queue
+ 4 M O em0 udp 1152 87696 all queue qdns
+ 5 M O em0 icmp 0 0 all queue qdef
+ 6 B I !lo0 tcp 0 0 turn from any to any port 6000:6
+ 7 B O L tcp 0 0 return all user = 55
+ 8 B O L udp 0 0 return all user = 55
.Ed
.Pp
sd.Tg statistics
.Ox .
.Bd -literal -offset indent
nsh(p)/show system-stats states
- 0 users Load 0.03 0.08 0.06 nsh 00:49:41
+ 0 users Load 0.03 0.08 0.06 nsh 00:49:41
-PR D SRC DEST STATE AGE EXP PKTS BYTES R
-udp O 10.0.2.15:12678 10.4.89.123:123 2:2 9479 28 600 45600
-udp O 10.0.2.15:23041 10.4.90.123:123 2:2 9479 56 602 45752
+PR D SRC DEST STATE AGE EXP PKTS BYTES R
+udp O 10.0.2.1:12678 10.4.89.12:123 2:2 9479 28 600 45600
+udp O 10.0.2.5:23041 10.4.90.12:123 2:2 9479 56 602 45752
.Ed
.Pp
.Tg statistics
.Ox .
.Bd -literal -offset indent
nsh(p)/show system-stats packet-filter
- 0 users Load 0.05 0.10 0.08 (1-42 of 48) nsh 00:59:36
+ 0 users Load 0.05 0.10 0.08 (1-42 of 48) nsh 00:59:36
TYPE NAME VALUE RATE
pf Status Enabled
.Ox .
.Bd -literal -offset indent
nsh(p)/show system-stats pigs
- 0 users Load 0.00 0.00 0.00 nsh 02:55:02
+ 0 users Load 0.00 0.00 0.00 nsh 02:55:02
- PID USER NAME CPU 20\ 40\ 60\ 80\ 100\
- <idle> 88.28 #############################
- 13920 _relayd relayd 2.93
+ PID USER NAME CPU 20\ 40\ 60\ 80\ 100\
+ <idle> 88.28 #############################
+ 13920 _relayd relayd 2.93
.Ed
.Pp
.Tg statistics
.Ox .
.Bd -literal -offset indent
nsh(p)/show system-stats cpu
- 0 users Load 0.00 0.01 0.00 nsh 03:11:16
+ 0 users Load 0.00 0.01 0.00 nsh 03:11:16
-CPU User Nice System Spin Interrupt Idle
-0 0.0% 0.0% 100% 0.0% 0.0% 0.0%
-1 0.0% 0.0% 0.0% 0.0% 0.0% 100%
+CPU User Nice System Spin Interrupt Idle
+0 0.0% 0.0% 100% 0.0% 0.0% 0.0%
+1 0.0% 0.0% 0.0% 0.0% 0.0% 100%
.Ed
.Pp
.Tg statistics
.Ox .
.Bd -literal -offset indent
nsh(p)/show system-stats swap
- 0 users Load 0.04 0.03 0.00 nsh 03:33:22
+ 0 users Load 0.04 0.03 0.00 nsh 03:33:22
-DISK 512-blocks USED 20\ 40\ 60\ 80\ 100\
- No swap devices
+DISK 512-blocks USED 20\ 40\ 60\ 80\ 100\
+ No swap devices
.Ed
.Pp
.Tg statistics
.Ox .
.Bd -literal -offset indent
nsh(p)/show system-stats pool
- 0 users Load 0.01 0.00 0.00 (1-42 of 164) nsh 03:41:17
+ 0 users Load 0.01 0.00 0.00 (1-42 of 164) nsh 03:41:17
-NAME SIZE REQUESTS FAIL INUSE PGREQ PGREL NPAGE HIWA
-acpiwqpl 32 1978 0 0 1 0 1 1
-aesni 576 0 0 0 1 0 1 1
-amapchunkpl 152 210000 0 4957 227 35 192 192
-amappl 88 21258 0 1223 46 18 28 32
-amappl1 80 35443 0 4726 104 2 102 103
-amappl10 152 901 0 70 3 0 3 3
-amappl11 160 913 0 68 4 1 3 3
-amappl12 168 3733 0 89 7 2 5 5
-amappl13 176 907 0 35 2 0 2 2
-amappl14 184 1619 0 84 6 1 5 5
-amappl15 192 665 0 16 2 1 1 1
-amappl16 200 305009 0 999 110 53 57 61
-amappl2 88 12272 0 1565 130 95 35 108
-amappl3 96 6278 0 674 23 6 17 17
-amappl4 104 4894 0 501 53 39 14 45
-amappl5 112 1569 0 167 8 2 6 6
-amappl6 120 1581 0 146 8 3 5 5
-amappl7 128 1668 0 113 5 1 4 4
-amappl8 136 2568 0 178 57 46 11 31
-amappl9 144 968 0 81 19 15 4 4
-anonpl 24 8040785 0 76043 525 49 476 477
-aobjpl 72 4 0 2 1 0 1 1
-arp 88 2 0 2 1 0 1 1
-art_heap4 256 96 0 96 6 0 6 6
-art_heap8 4096 1 0 1 1 0 1 1
-art_node 16 22 0 22 1 0 1 1
-art_table 32 97 0 97 1 0 1 1
-bufpl 280 91099 0 72676 5578 313 5265 5578
-dino2pl 256 35129 0 13892 879 10 869 869
-dirhash 1024 534 0 498 63 0 63 63
-dma128 128 5 0 0 1 1 0 1
-dma16 16 2 0 0 1 1 0 1
-dma256 256 17 0 0 1 1 0 1
-dma32 32 15 0 0 1 1 0 1
-dma4096 4096 2 0 0 1 1 0 1
-dma512 512 6 0 3 1 0 1 1
-dma64 64 3 0 0 1 1 0 1
-extentpl 40 66 0 20 1 0 1 1
-fdescpl 432 1161 0 69 12 4 8 9
-ffsino 240 35129 0 13892 828 10 818 818
-filepl 120 192747 0 631 22 1 21 21
-futexpl 64 4543 0 27 2 1 1 1
+NAME SIZE REQUESTS FAIL INUSE PGREQ PGREL NPAGE HIWA
+acpiwqpl 32 1978 0 0 1 0 1 1
+aesni 576 0 0 0 1 0 1 1
+amapchunkpl 152 210000 0 4957 227 35 192 192
+amappl 88 21258 0 1223 46 18 28 32
+amappl1 80 35443 0 4726 104 2 102 103
+amappl10 152 901 0 70 3 0 3 3
+amappl11 160 913 0 68 4 1 3 3
+amappl12 168 3733 0 89 7 2 5 5
+amappl13 176 907 0 35 2 0 2 2
+amappl14 184 1619 0 84 6 1 5 5
+amappl15 192 665 0 16 2 1 1 1
+amappl16 200 305009 0 999 110 53 57 61
+amappl2 88 12272 0 1565 130 95 35 108
+amappl3 96 6278 0 674 23 6 17 17
+amappl4 104 4894 0 501 53 39 14 45
+amappl5 112 1569 0 133 8 2 6 6
+amappl6 120 158 0 146 8 3 5 5
+amappl7 128 1668 0 113 5 1 4 4
+amappl8 136 2568 0 178 57 46 11 31
+amappl9 144 981 0 81 19 15 4 4
+anonpl 24 8040785 0 76043 525 49 476 477
+aobjpl 72 4 0 2 1 0 1 1
+arp 88 2 0 2 1 0 1 1
+art_heap4 256 96 0 96 6 0 6 6
+art_heap8 4096 1 0 1 1 0 1 1
+art_node 16 22 0 22 1 0 1 1
+art_table 32 97 0 97 1 0 1 1
+bufpl 280 91099 0 72676 5578 313 5265 5578
+dino2pl 256 35129 0 13892 879 10 869 869
+dirhash 1024 534 0 498 63 0 63 63
+dma128 128 5 0 0 1 1 0 1
+dma16 16 2 0 0 1 1 0 1
+dma256 256 17 0 0 1 1 0 1
+dma32 32 15 0 0 1 1 0 1
+dma4096 4096 2 0 0 1 1 0 1
+dma512 512 6 0 3 1 0 1 1
+dma64 64 3 0 0 1 1 0 1
+extentpl 40 66 0 20 1 0 1 1
+fdescpl 432 1161 0 69 12 4 8 9
+ffsino 240 35129 0 13892 828 10 818 818
+filepl 120 192747 0 631 22 1 21 21
+futexpl 64 4543 0 27 2 1 1 1
.Ed
.Pp
.Tg statistics
.Ox
.Bd -literal -offset indent
nsh(p)/show system-stats pcache
- 0 users Load 0.00 0.00 0.00 nsh 07:27:07
+ 0 users Load 0.00 0.00 0.00 nsh 07:27:07
-NAME LEN IDLE NGC CPU REQ REL LREQ LREL
-knotepl 8 0 34 0 5083315 5082739 134 61
- 1 4391987 4392854 46 153
-mbufpl 8 0 192 0 381062 373361 2781 1818
- 1 422272 431527 1841 2996
-mcl12k 8 0 1 0 356 365 0 0
- 1 298 313 0 1
-mcl16k 8 0 4 0 661 701 6 9
- 1 557 565 7 8
-mcl2k 8 0 0 0 17175 17019 50 30
- 1 15455 15628 31 51
-mcl2k2 8 0 95 0 1417 1248 22 0
- 1 42 988 0 117
-mcl4k 8 0 5 0 4665 4797 13 28
- 1 3807 3731 25 15
-mcl64k 8 0 8 0 2619 2894 23 56
- 1 2722 2528 53 28
-mcl8k 8 0 2 0 3853 3927 14 22
- 1 3221 3180 20 14
-mcl9k 8 0 1 0 82 103 0 1
- 1 71 75 0 0
-mtagpl b 8 0 0 0 1 2 0 0
- 1 0 0 0 0
-pvpl 8 * 3895 0 5773656 5773193 664752 666800
- 1 4615157 4695887 525893 533869
+NAME LEN IDLE NGC CPU REQ REL LREQ LREL
+knotepl 8 0 34 0 5083315 5082739 134 61
+ 1 4391987 4392854 46 153
+mbufpl 8 0 192 0 381062 373361 2781 1818
+ 1 422272 431527 1841 2996
+mcl12k 8 0 1 0 356 365 0 0
+ 1 298 313 0 1
+mcl16k 8 0 4 0 661 701 6 9
+ 1 557 565 7 8
+mcl2k 8 0 0 0 17175 17019 50 30
+ 1 15455 15628 31 51
+mcl2k2 8 0 95 0 1417 1248 22 0
+ 1 42 988 0 117
+mcl4k 8 0 5 0 4665 4797 13 28
+ 1 3807 3731 25 15
+mcl64k 8 0 8 0 2619 2894 23 56
+ 1 2722 2528 53 28
+mcl8k 8 0 2 0 3853 3927 14 22
+ 1 3221 3180 20 14
+mcl9k 8 0 1 0 82 103 0 1
+ 1 71 75 0 0
+mtagpl 8 0 0 0 1 2 0 0
+ 1 0 0 0 0
+pvpl 8 * 3895 0 5773656 5773193 664752 666800
+ 1 4615157 4695887 525893 533869
.Ed
.Pp
.Tg statistics
command with the malloc argument
.Bd -literal -offset indent
nsh(p)/show system-stats malloc
- 0 users Load 0.12 0.03 0.01 nsh 07:07:43
+ 0 users Load 0.12 0.03 0.01 nsh 07:07:43
-TYPE INUSE MEMUSE HIGHUS LIMIT REQUESTS TYPE KERN BUCKETS
-ACPI 2057 248272 418160 220M 120878 0 |||||.||........
-ISOFS mount 1 32768 32768 220M 1 0 ...........|....
-MSDOSFS mount 1 16384 16384 220M 1 0 ..........|.....
-NDP 5 80 80 220M 5 0 |...............
-NFS daemon 1 16384 16384 220M 1 0 ..........|.....
-NFS srvsock 1 128 128 220M 1 0 ...|............
-SYN cache 2 16384 16384 220M 2 0 .........|......
-UFS mount 33 83792 83792 220M 33 0 |.|||||||.||....
-UFS quota 1 32768 32768 220M 1 0 ...........|....
-USB 26 6720 6720 220M 32 0 |||||..|........
-USB HC 1 512 512 220M 1 0 .....|..........
-USB device 6 720 720 220M 8 0 ||.|.|..........
-UVM amap 2711 182528 182656 220M 28453 0 |||||||..|......
-UVM aobj 3 2080 2336 220M 5 0 |...|..|........
-VM map 2 1024 1024 220M 2 0 .....|..........
-VM swap 1 64 2192 220M 4 0 |.|....|........
-counters 48 35200 35200 220M 48 0 ..|||||.||......
-crypto data 1 1024 1024 220M 1 0 ......|.........
-devbuf 2061 2785K 2785K 220M 2974 0 ||||||||||||||..
-dirhash 168 38256 38256 220M 195 0 |||||||.........
-ether_multi 1 64 64 220M 1 0 ..|.............
-exec 0 0 1584 220M 1247 0 ||..|.|.........
-file desc 17 11264 12800 220M 51 0 .....||.........
-ifaddr 25 2176 2176 220M 25 0 .||.|...........
-ifgroup 24 1344 1344 220M 30 0 .|.|............
-in_multi 11 832 832 220M 11 0 .|.|............
-ioctlops 0 0 4096 220M 1592 0 ....|||||.......
-kqueue 108 207360 236032 220M 225 0 .....|.|........
-log 0 0 320 220M 3 0 ..||............
-mount 8 8192 8192 220M 8 0 ......|.........
-pcb 17 12384 12384 220M 17 0 ||....|.........
-pf 19 15424 19200 220M 40 0 ..|.|..||.......
-pinsyscall 132 270336 288768 220M 4212 0 ....||||........
-proc 261 150304 159296 220M 843 0 |.|...|.||......
-rtable 58 1952 2240 220M 195 0 |||||...........
-sem 2 160 160 220M 2 0 .|.|............
-shm 3 5376 5376 220M 3 0 ....|.|.|.......
-sysctl 2 576 576 220M 2 0 ..|..|..........
-tdb 3 768 768 220M 3 0 ....|...........
-temp 9 6793K 6921K 220M 469133 0 |||||||||||.|..|
-ttys 61 207872 207872 220M 61 0 .....||.|||.....
-vnodes 92 6528 81920 220M 1419 0 ..|||...........
+TYPE INUSE MEMUSE HIGHUS LIMIT REQUESTS BUCKETS
+ACPI 2057 248272 418160 220M 120878 |||||.||........
+ISOFS mount 1 32768 32768 220M 1 ...........|....
+MSDOSFS mount 1 16384 16384 220M 1 ..........|.....
+NDP 5 80 80 220M 5 |...............
+NFS daemon 1 16384 16384 220M 1 ..........|.....
+NFS srvsock 1 128 128 220M 1 ...|............
+SYN cache 2 16384 16384 220M 2 .........|......
+UFS mount 33 83792 83792 220M 33 |.|||||||.||....
+UFS quota 1 32768 32768 220M 1 ...........|....
+USB 26 6720 6720 220M 32 |||||..|........
+USB HC 1 512 512 220M 1 .....|..........
+USB device 6 720 720 220M 8 ||.|.|..........
+UVM amap 2711 182528 182656 220M 28453 |||||||..|......
+UVM aobj 3 2080 2336 220M 5 |...|..|........
+VM map 2 1024 1024 220M 2 .....|..........
+VM swap 1 64 2192 220M 4 |.|....|........
+counters 48 35200 35200 220M 48 ..|||||.||......
+crypto data 1 1024 1024 220M 1 ......|.........
+devbuf 2061 2785K 2785K 220M 2974 ||||||||||||||..
+dirhash 168 38256 38256 220M 195 |||||||.........
+ether_multi 1 64 64 220M 1 ..|.............
+exec 0 0 1584 220M 1247 ||..|.|.........
+file desc 17 11264 12800 220M 51 .....||.........
+ifaddr 25 2176 2176 220M 25 .||.|...........
+ifgroup 24 1344 1344 220M 30 .|.|............
+in_multi 11 832 832 220M 11 .|.|............
+ioctlops 0 0 4096 220M 1592 ....|||||.......
+kqueue 108 207360 236032 220M 225 .....|.|........
+log 0 0 320 220M 3 ..||............
+mount 8 8192 8192 220M 8 ......|.........
+pcb 17 12384 12384 220M 17 ||....|.........
+pf 19 15424 19200 220M 40 ..|.|..||.......
+pinsyscall 132 270336 288768 220M 4212 ....||||........
+proc 261 150304 159296 220M 843 |.|...|.||......
+rtable 58 1952 2240 220M 195 |||||...........
+sem 2 160 160 220M 2 .|.|............
+shm 3 5376 5376 220M 3 ....|.|.|.......
+sysctl 2 576 576 220M 2 ..|..|..........
+tdb 3 768 768 220M 3 ....|...........
+temp 9 6793K 6921K 220M 469133 |||||||||||.|..|
+ttys 61 207872 207872 220M 61 .....||.|||.....
+vnodes 92 6528 81920 220M 1419 ..|||...........
.Ed
.Pp
.Tg statistics
.Ox
.Bd -literal -offset indent
nsh(p)/show system-stats bucket
- 0 users Load 0.09 0.05 0.01 nsh 08:56:59
+ 0 users Load 0.09 0.05 0.01 nsh 08:56:59
-BUCKET REQUESTS INUSE FREE HIWAT COULDFREE
-16 5377 1472 64 1280 0
-32 12847 1106 430 640 58
-64 201827 969 823 320 4332
-128 161454 2821 187 160 421
-256 320113 471 9 80 0
-512 2224 174 2 40 0
-1024 3680 64 4 20 0
-2048 3643 356 12 10 289
-4096 2792 559 1 5 0
-8192 189 39 1 5 0
-16384 1061 9 0 5 0
-32768 7 5 0 5 0
-65536 2346 0 0 5 0
-131072 3 1 0 5 0
-262144 0 0 0 5 0
-524288 1 1 0 5 0
+BUCKET REQUESTS INUSE FREE HIWAT COULDFREE
+16 5377 1472 64 1280 0
+32 12847 1106 430 640 58
+64 201827 969 823 320 4332
+128 161454 2821 187 160 421
+256 320113 471 9 80 0
+512 2224 174 2 40 0
+1024 3680 64 4 20 0
+2048 3643 356 12 10 289
+4096 2792 559 1 5 0
+8192 189 39 1 5 0
+16384 1061 9 0 5 0
+32768 7 5 0 5 0
+65536 2346 0 0 5 0
+131072 3 1 0 5 0
+262144 0 0 0 5 0
+524288 1 1 0 5 0
.Ed
.Pp
.Ic show version