| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | .\" $NetBSD: systat.1,v 1.53 2023/03/29 19:40:18 kre Exp $ | | 1 | .\" $NetBSD: systat.1,v 1.54 2023/03/29 21:44:35 uwe Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 1985, 1990, 1993 | | 3 | .\" Copyright (c) 1985, 1990, 1993 |
4 | .\" The Regents of the University of California. All rights reserved. | | 4 | .\" The Regents of the University of California. All rights reserved. |
5 | .\" | | 5 | .\" |
6 | .\" Redistribution and use in source and binary forms, with or without | | 6 | .\" Redistribution and use in source and binary forms, with or without |
7 | .\" modification, are permitted provided that the following conditions | | 7 | .\" modification, are permitted provided that the following conditions |
8 | .\" are met: | | 8 | .\" are met: |
9 | .\" 1. Redistributions of source code must retain the above copyright | | 9 | .\" 1. Redistributions of source code must retain the above copyright |
10 | .\" notice, this list of conditions and the following disclaimer. | | 10 | .\" notice, this list of conditions and the following disclaimer. |
11 | .\" 2. Redistributions in binary form must reproduce the above copyright | | 11 | .\" 2. Redistributions in binary form must reproduce the above copyright |
12 | .\" notice, this list of conditions and the following disclaimer in the | | 12 | .\" notice, this list of conditions and the following disclaimer in the |
13 | .\" documentation and/or other materials provided with the distribution. | | 13 | .\" documentation and/or other materials provided with the distribution. |
14 | .\" 3. Neither the name of the University nor the names of its contributors | | 14 | .\" 3. Neither the name of the University nor the names of its contributors |
| @@ -19,196 +19,193 @@ | | | @@ -19,196 +19,193 @@ |
19 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | | 19 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
20 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | | 20 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
21 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | | 21 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE |
22 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | | 22 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
23 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | | 23 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
24 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | | 24 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
25 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | | 25 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
26 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | | 26 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
27 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | | 27 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
28 | .\" SUCH DAMAGE. | | 28 | .\" SUCH DAMAGE. |
29 | .\" | | 29 | .\" |
30 | .\" @(#)systat.1 8.2 (Berkeley) 12/30/93 | | 30 | .\" @(#)systat.1 8.2 (Berkeley) 12/30/93 |
31 | .\" | | 31 | .\" |
32 | .Dd August 21, 2021 | | 32 | .Dd March 29, 2023 |
33 | .Dt SYSTAT 1 | | 33 | .Dt SYSTAT 1 |
34 | .Os | | 34 | .Os |
35 | .Sh NAME | | 35 | .Sh NAME |
36 | .Nm systat | | 36 | .Nm systat |
37 | .Nd display system statistics in a full-screen view | | 37 | .Nd display system statistics in a full-screen view |
38 | .Sh SYNOPSIS | | 38 | .Sh SYNOPSIS |
39 | .Nm | | 39 | .Nm |
40 | .Op Fl bnz | | 40 | .Op Fl bnz |
41 | .Op Fl M Ar core | | 41 | .Op Fl M Ar core |
42 | .Op Fl N Ar system | | 42 | .Op Fl N Ar system |
43 | .Op Fl t Ar turns | | 43 | .Op Fl t Ar turns |
44 | .Op Fl w Ar wait | | 44 | .Op Fl w Ar wait |
45 | .Op Ar display | | 45 | .Op Ar display |
46 | .Op Ar refresh-interval | | 46 | .Op Ar wait |
47 | .Sh DESCRIPTION | | 47 | .Sh DESCRIPTION |
48 | .Nm | | 48 | .Nm |
49 | displays various system statistics in a screen oriented fashion | | 49 | displays various system statistics in a screen oriented fashion |
50 | using the curses screen display library, | | 50 | using the |
51 | .Xr curses 3 . | | 51 | .Xr curses 3 |
| | | 52 | screen display library. |
52 | .Pp | | 53 | .Pp |
53 | While | | 54 | While |
54 | .Nm | | 55 | .Nm |
55 | is running the screen is usually divided into two windows (an exception | | 56 | is running the screen is usually divided into two windows |
56 | is the vmstat display which uses the entire screen). | | 57 | .Pq an exception is the vmstat display which uses the entire screen . |
57 | The upper window depicts the current system load average. | | 58 | The upper window depicts the current system load average. |
58 | The information displayed in the lower window may vary, depending on | | 59 | The information displayed in the lower window may vary, depending on |
59 | user commands. | | 60 | user commands. |
60 | The last line on the screen is reserved for user input and error messages. | | 61 | The last line on the screen is reserved for user input and error messages. |
61 | .Pp | | 62 | .Pp |
62 | By default | | 63 | By default |
63 | .Nm | | 64 | .Nm |
64 | displays the processes getting the largest percentage of the processor | | 65 | displays the processes getting the largest percentage of the processor |
65 | in the lower window. | | 66 | in the lower window. |
66 | Other displays show more detailed process information, | | 67 | Other displays show more detailed process information, |
67 | swap space usage, | | 68 | swap space usage, |
68 | disk usage statistics (a la | | 69 | disk usage statistics |
69 | .Xr df 1 ) , | | 70 | .Pq a\~la Xr df 1 , |
70 | disk I/O statistics (a la | | 71 | disk I/O statistics |
71 | .Xr iostat 8 ) , | | 72 | .Pq a\~la Xr iostat 8 , |
72 | virtual memory statistics (a la | | 73 | virtual memory statistics |
73 | .Xr vmstat 1 ) , | | 74 | .Pq a\~la Xr vmstat 1 , |
74 | network | | 75 | network mbuf utilization, |
75 | .Qq Ic mbufs | | 76 | network interface traffic, |
76 | utilization, network | | 77 | and network connections |
77 | .Qq Ic ifstat | | 78 | .Pq a\~la Xr netstat 1 . |
78 | traffic, and network connections (a la | | | |
79 | .Xr netstat 1 ) . | | | |
80 | .Pp | | 79 | .Pp |
81 | Input is interpreted at two different levels. | | 80 | Input is interpreted at two different levels. |
82 | A ``global'' command interpreter processes all keyboard input. | | 81 | A global command interpreter processes all keyboard input. |
83 | If this command interpreter fails to recognize a command, the | | 82 | If this command interpreter fails to recognize a command, the |
84 | input line is passed to a per-display command interpreter. | | 83 | input line is passed to a per-display command interpreter. |
85 | This allows each display to have certain display-specific commands. | | 84 | This allows each display to have certain display-specific commands. |
86 | .Pp | | 85 | .Pp |
87 | Command line options: | | 86 | Command line options: |
88 | .Bl -tag -width "refresh_interval" | | 87 | .Bl -tag -width Fl |
| | | 88 | .It Fl b |
| | | 89 | Show the chosen display once and exit. |
89 | .It Fl M Ar core | | 90 | .It Fl M Ar core |
90 | Extract values associated with the name list from | | 91 | Extract values associated with the name list from |
91 | .Ar core | | 92 | .Ar core |
92 | instead of the default | | 93 | instead of the default |
93 | .Pa /dev/mem . | | 94 | .Pa /dev/mem . |
94 | .It Fl N Ar system | | 95 | .It Fl N Ar system |
95 | Extract the name list from | | 96 | Extract the name list from |
96 | .Ar system | | 97 | .Ar system |
97 | instead of the default | | 98 | instead of the default |
98 | .Pa /netbsd . | | 99 | .Pa /netbsd . |
99 | .It Fl b | | | |
100 | Show the chosen display once and exit. | | | |
101 | .It Fl n | | 100 | .It Fl n |
102 | Do not resolve IP addresses into string hostnames | | 101 | Do not resolve IP addresses into string hostnames |
103 | .Pq FQDNs | | 102 | .Pf ( Tn FQDN Ns s ) . |
104 | on | | | |
105 | .Ic netstat . | | | |
106 | It has the same effect as | | 103 | It has the same effect as |
107 | .Ic numbers | | 104 | .Ic numbers |
108 | subcommand in | | 105 | subcommand in |
109 | .Ic netstat . | | 106 | .Ic netstat . |
110 | .It Fl w Ar wait | | | |
111 | See | | | |
112 | .Ar refresh-interval . | | | |
113 | .It Fl t Ar turns | | 107 | .It Fl t Ar turns |
114 | How many refreshes to show each screen in 'all' display mode. | | 108 | How many refresh cycles to show each screen in |
| | | 109 | .Sq all |
| | | 110 | display mode. |
| | | 111 | The default is 2. |
| | | 112 | .It Fl w Ar wait |
| | | 113 | Set the screen refresh interval to |
| | | 114 | .Ar wait |
| | | 115 | seconds. |
| | | 116 | Floating point numbers are accepted. |
| | | 117 | The default is 1\~second. |
| | | 118 | .It Fl z |
| | | 119 | Display 0 instead of space when there is no data. |
115 | .It Ar display | | 120 | .It Ar display |
116 | The | | 121 | The |
117 | .Ar display | | 122 | .Ar display |
118 | argument expects to be one of: | | 123 | argument expects to be one of: |
119 | .Ic all , | | 124 | .Ic all , |
120 | .Ic bufcache , | | 125 | .Ic bufcache , |
121 | .Ic df , | | 126 | .Ic df , |
122 | .Ic ifstat , | | 127 | .Ic ifstat , |
123 | .Ic inet.icmp , | | 128 | .Ic inet.icmp , |
124 | .Ic inet.ip , | | 129 | .Ic inet.ip , |
125 | .Ic inet.tcp , | | 130 | .Ic inet.tcp , |
126 | .Ic inet.tcpsyn , | | 131 | .Ic inet.tcpsyn , |
127 | .Ic inet6.ip6 , | | 132 | .Ic inet6.ip6 , |
128 | .Ic iostat , | | 133 | .Ic iostat , |
129 | .Ic mbufs , | | 134 | .Ic mbufs , |
130 | .Ic netstat , | | 135 | .Ic netstat , |
131 | .Ic pigs , | | 136 | .Ic pigs , |
132 | .Ic ps , | | 137 | .Ic ps , |
133 | .Ic swap , | | 138 | .Ic swap , |
134 | .Ic syscall | | 139 | .Ic syscall |
135 | or | | 140 | or |
136 | .Ic vmstat . | | 141 | .Ic vmstat . |
137 | These displays can also be requested interactively and are described in | | 142 | These displays can also be requested interactively and are described in |
138 | full detail below. | | 143 | full detail below. |
139 | .It Ar refresh-interval | | 144 | .It Ar wait |
140 | The | | 145 | The same as |
141 | .Ar refresh-interval | | 146 | .Fl w Ar wait . |
142 | specifies the screen refresh time interval in seconds. | | 147 | This form is provided for backwards compatibility. |
143 | This is provided for backwards compatibility, and overrides the | | | |
144 | .Ar refresh-interval | | | |
145 | specified with the | | | |
146 | .Fl w | | | |
147 | flag. | | | |
148 | .It Fl z | | | |
149 | Display 0 instead of space when there is no data. | | | |
150 | .El | | 148 | .El |
151 | .Pp | | 149 | .Pp |
152 | Certain characters cause immediate action by | | 150 | Certain characters cause immediate action by |
153 | .Nm . | | 151 | .Nm . |
154 | These are | | 152 | These are |
155 | .Bl -tag -width Fl | | 153 | .Bl -tag -width Ic |
156 | .It Ic \&^L | | 154 | .It Ic \&^L |
157 | Refresh the screen. | | 155 | Refresh the screen. |
158 | .It Ic \&^G | | 156 | .It Ic \&^G |
159 | Print the name of the current ``display'' being shown in | | 157 | Print the name of the current display being shown in |
160 | the lower window and the refresh interval. | | 158 | the lower window and the refresh interval. |
161 | .It Ic \&^Z | | 159 | .It Ic \&^Z |
162 | Stop | | 160 | Suspend |
163 | .Nm . | | 161 | .Nm . |
164 | .It Ic \&? , Ic h | | 162 | .It Ic \&? , Ic h |
165 | Print the names of the available displays on the command line. | | 163 | Print the names of the available displays on the command line. |
166 | .It Ic \&: | | 164 | .It Ic \&: |
167 | Move the cursor to the command line and interpret the input | | 165 | Move the cursor to the command line and interpret the input |
168 | line typed as a command. | | 166 | line typed as a command. |
169 | While entering a command the current character erase, word erase, | | 167 | While entering a command the current character erase, word erase, |
170 | and line kill characters may be used. | | 168 | and line kill characters may be used. |
171 | .El | | 169 | .El |
172 | .Pp | | 170 | .Pp |
173 | The following commands are interpreted by the ``global'' | | 171 | The following commands are interpreted by the global |
174 | command interpreter. | | 172 | command interpreter. |
175 | .Bl -tag -width Fl | | 173 | .Bl -tag -width Ic |
176 | .It Ic help Ar key | | 174 | .It Ic help Op Ar key |
177 | Print the names of the available displays on the command line. | | 175 | Print the names of the available displays on the command line. |
178 | It will print long names as | | 176 | It will print long names as |
179 | .Dq Ic inet.* . | | 177 | .Ql inet.* . |
180 | To print items under | | 178 | To print items under |
181 | .Dq Ic inet , | | 179 | .Ic inet , |
182 | give | | 180 | give |
183 | .Ic inet | | 181 | .Ic inet |
184 | as | | 182 | as |
185 | .Ar key . | | 183 | .Ar key . |
186 | .It Ic load | | 184 | .It Ic load |
187 | Print the load average over the past 1, 5, and 15 minutes | | 185 | Print the load average over the past 1, 5, and 15 minutes |
188 | on the command line. | | 186 | on the command line. |
189 | .It Ic stop | | 187 | .It Ic quit |
190 | Stop refreshing the screen. | | 188 | Exit |
| | | 189 | .Nm . |
| | | 190 | .Pq This may be abbreviated to Ic q . |
191 | .It Oo Ic start Oc Oo Ar number Oc | | 191 | .It Oo Ic start Oc Oo Ar number Oc |
192 | Start (continue) refreshing the screen. | | 192 | Start (continue) refreshing the screen. |
193 | If a second, numeric, argument is provided it is interpreted as a | | 193 | If a second, numeric, argument is provided it is interpreted as a |
194 | refresh interval in seconds. | | 194 | refresh interval in seconds. |
195 | Supplying only a number will set the refresh interval to this | | 195 | Supplying only a number will set the refresh interval to this |
196 | value. | | 196 | value. |
197 | .It Ic quit | | 197 | .It Ic stop |
198 | Exit | | 198 | Stop refreshing the screen. |
199 | .Nm . | | | |
200 | (This may be abbreviated to | | | |
201 | .Ic q . ) | | | |
202 | .El | | 199 | .El |
203 | .Pp | | 200 | .Pp |
204 | The available displays are: | | 201 | The available displays are: |
205 | .Bl -tag -width Ic | | 202 | .Bl -tag -width Ic |
206 | .It Ic all | | 203 | .It Ic all |
207 | Cycle through all displays automatically. | | 204 | Cycle through all displays automatically. |
208 | At each display, wait some | | 205 | At each display, wait some |
209 | refresh-turns, then switch to the next display. | | 206 | refresh-turns, then switch to the next display. |
210 | Duration of one refresh-turn is adjustable with the | | 207 | Duration of one refresh-turn is adjustable with the |
211 | .Fl w | | 208 | .Fl w |
212 | option, number of refresh-turns can be changed with the | | 209 | option, number of refresh-turns can be changed with the |
213 | .Fl t | | 210 | .Fl t |
214 | option. | | 211 | option. |
| @@ -216,97 +213,110 @@ option. | | | @@ -216,97 +213,110 @@ option. |
216 | Display, in the lower window, statistics about the file system buffers. | | 213 | Display, in the lower window, statistics about the file system buffers. |
217 | Statistics for each file system that has active buffers include the number | | 214 | Statistics for each file system that has active buffers include the number |
218 | of buffers for that file system, the number of active kilobytes in those | | 215 | of buffers for that file system, the number of active kilobytes in those |
219 | buffers and the total size of the buffers for that file system. | | 216 | buffers and the total size of the buffers for that file system. |
220 | .It Ic df | | 217 | .It Ic df |
221 | Lists disk usage statistics for all filesystems, | | 218 | Lists disk usage statistics for all filesystems, |
222 | including the available free space as well as a bar | | 219 | including the available free space as well as a bar |
223 | graph indicating the used capacity. | | 220 | graph indicating the used capacity. |
224 | .Pp | | 221 | .Pp |
225 | The following commands are specific to the | | 222 | The following commands are specific to the |
226 | .Ic df | | 223 | .Ic df |
227 | display: | | 224 | display: |
228 | .Pp | | 225 | .Pp |
229 | .Bl -tag -width Fl -compact | | 226 | .Bl -tag -width Fl |
230 | .It Cm all | | 227 | .It Cm all |
231 | Displays information for all filesystems, including | | 228 | Displays information for all filesystems, including |
232 | kernfs, procfs and null-mounts. | | 229 | kernfs, procfs and null-mounts. |
233 | .It Cm some | | 230 | .It Cm some |
234 | Suppress information about procfs, kernfs and null-mounts (default). | | 231 | Suppress information about procfs, kernfs and null-mounts (default). |
235 | .El | | 232 | .El |
236 | .It Ic ifstat | | 233 | .It Ic ifstat |
237 | Display the network traffic going through active interfaces on the | | 234 | Display the network traffic going through active interfaces on the |
238 | system. | | 235 | system. |
239 | Idle interfaces will not be displayed until they receive some | | 236 | Idle interfaces will not be displayed until they receive some |
240 | traffic. | | 237 | traffic. |
241 | .Pp | | 238 | .Pp |
242 | For each interface being displayed, the current, peak and total | | 239 | For each interface being displayed, the current, peak and total |
243 | statistics are displayed for incoming and outgoing traffic. | | 240 | statistics are displayed for incoming and outgoing traffic. |
244 | By default, | | 241 | By default, |
245 | the | | 242 | the |
246 | .Ic ifstat | | 243 | .Ic ifstat |
247 | display will automatically scale the units being used so that they are | | 244 | display will automatically scale the units being used so that they are |
248 | in a human-readable format. | | 245 | in a human-readable format. |
249 | The scaling units used for the current and | | 246 | The scaling units used for the current and |
250 | peak | | 247 | peak |
251 | traffic columns can be altered by the | | 248 | traffic columns can be altered by the |
252 | .Ic scale | | 249 | .Ic scale |
253 | command. | | 250 | command. |
254 | .Bl -tag -width ".Cm scale Op Ar units" | | 251 | .Bl -tag -width Cm |
255 | .It Cm scale Op Ar units | | 252 | .It Cm scale Op Ar units |
256 | Modify the scale used to display the current and peak traffic over all | | 253 | Modify the scale used to display the current and peak traffic over all |
257 | interfaces. | | 254 | interfaces. |
258 | The following units are recognised: kbit, kbyte, mbit, | | 255 | The following units are recognised: |
259 | mbyte, gbit, gbyte and auto. | | 256 | .Ic kbit , kbyte , mbit , mbyte , gbit , gbyte |
| | | 257 | and |
| | | 258 | .Ic auto . |
260 | .It Cm pps | | 259 | .It Cm pps |
261 | Show statistics in packets per second instead of bytes/bits per second. | | 260 | Show statistics in packets per second instead of bytes or bits per second. |
262 | A subsequent call of | | 261 | A subsequent call of |
263 | .Ic pps | | 262 | .Ic pps |
264 | switches this mode off. | | 263 | switches this mode off. |
265 | .It Cm match Op Ar patterns | | 264 | .It Cm match Op Ar pattern ... |
266 | Display only interfaces that match pattern provided as an argument. | | 265 | Display only interfaces that match |
267 | Patterns should be in shell syntax separated by whitespaces or commas. | | 266 | .Ar pattern\^ Ns s |
| | | 267 | provided as an argument. |
| | | 268 | Patterns should be in shell |
| | | 269 | .Xr glob 7 |
| | | 270 | syntax separated by whitespaces or commas. |
268 | If this command is called without arguments then all interfaces are displayed. | | 271 | If this command is called without arguments then all interfaces are displayed. |
269 | For example: | | 272 | For example: |
270 | .Pp | | 273 | .Pp |
271 | .Dl match re0, bge1 | | 274 | .Dl match re0, bge1 |
272 | .Pp | | 275 | .Pp |
273 | This will display re0 and bge1 interfaces. | | 276 | This will display |
| | | 277 | .Li re0 |
| | | 278 | and |
| | | 279 | .Li bge1 |
| | | 280 | interfaces. |
274 | .Pp | | 281 | .Pp |
275 | .Dl match re*, bge*, lo0 | | 282 | .Dl match re* bge* lo0 |
276 | .Pp | | 283 | .Pp |
277 | This will display all | | 284 | This will display all |
278 | .Ic re | | 285 | .Li re |
279 | interfaces, all | | 286 | interfaces, all |
280 | .Ic bge | | 287 | .Li bge |
281 | interfaces and the loopback interface. | | 288 | interfaces and the loopback interface. |
282 | .El | | 289 | .El |
283 | .It Ic inet.icmp | | 290 | .It Ic inet.icmp |
284 | Display ICMP statistics. | | 291 | Display ICMP statistics. |
285 | .It Ic inet.ip | | 292 | .It Ic inet.ip |
286 | Display IPv4 and UDP statistics. | | 293 | Display IPv4 and UDP statistics. |
287 | .It Ic inet.tcp | | 294 | .It Ic inet.tcp |
288 | Display TCP statistics. | | 295 | Display TCP statistics. |
289 | .It Ic inet.tcpsyn | | 296 | .It Ic inet.tcpsyn |
290 | Display statistics about the TCP ``syncache''. | | 297 | Display statistics about the TCP syncache. |
291 | .It Ic inet6.ip6 | | 298 | .It Ic inet6.ip6 |
292 | Display IPv6 statistics. | | 299 | Display IPv6 statistics. |
293 | .It Ic iostat | | 300 | .It Ic iostat |
294 | Display, in the lower window, statistics about processor use | | 301 | Display, in the lower window, statistics about processor use |
295 | and disk throughput. | | 302 | and disk throughput. |
296 | Statistics on processor use appear as bar graphs of the amount of | | 303 | Statistics on processor use appear as bar graphs of the amount of |
297 | time executing in user mode (``user''), in user mode running low | | 304 | time executing in user mode, |
298 | priority processes (``nice''), in system mode (``system''), and | | 305 | in user mode running low priority |
299 | idle (``idle''). | | 306 | .Pq Dq nice |
| | | 307 | processes, |
| | | 308 | in system mode, |
| | | 309 | and idle. |
300 | Statistics on disk throughput show, for each drive, kilobytes of | | 310 | Statistics on disk throughput show, for each drive, kilobytes of |
301 | data transferred, number of disk transactions performed, and time | | 311 | data transferred, number of disk transactions performed, and time |
302 | spent in disk accesses in milliseconds. | | 312 | spent in disk accesses in milliseconds. |
303 | This information may be displayed as bar graphs or as rows of | | 313 | This information may be displayed as bar graphs or as rows of |
304 | numbers which scroll downward. | | 314 | numbers which scroll downward. |
305 | Bar graphs are shown by default; | | 315 | Bar graphs are shown by default; |
306 | .Pp | | 316 | .Pp |
307 | The following commands are specific to the | | 317 | The following commands are specific to the |
308 | .Ic iostat | | 318 | .Ic iostat |
309 | display; the minimum unambiguous prefix may be supplied. | | 319 | display; the minimum unambiguous prefix may be supplied. |
310 | .Pp | | 320 | .Pp |
311 | .Bl -tag -width Fl -compact | | 321 | .Bl -tag -width Fl -compact |
312 | .It Cm numbers | | 322 | .It Cm numbers |
| @@ -319,109 +329,123 @@ Show the disk I/O statistics in bar grap | | | @@ -319,109 +329,123 @@ Show the disk I/O statistics in bar grap |
319 | Toggle the display of time in disk activity (the default is to | | 329 | Toggle the display of time in disk activity (the default is to |
320 | not display time). | | 330 | not display time). |
321 | .It Cm all | | 331 | .It Cm all |
322 | Show the read and write statistics combined (default). | | 332 | Show the read and write statistics combined (default). |
323 | .It Cm rw | | 333 | .It Cm rw |
324 | Show the read and write statistics separately. | | 334 | Show the read and write statistics separately. |
325 | .El | | 335 | .El |
326 | .It Ic mbufs | | 336 | .It Ic mbufs |
327 | Display, in the lower window, the number of mbufs allocated | | 337 | Display, in the lower window, the number of mbufs allocated |
328 | for particular uses, i.e. data, socket structures, etc. | | 338 | for particular uses, i.e. data, socket structures, etc. |
329 | .It Ic netstat | | 339 | .It Ic netstat |
330 | Display, in the lower window, network connections. | | 340 | Display, in the lower window, network connections. |
331 | By default, network servers awaiting requests are not displayed. | | 341 | By default, network servers awaiting requests are not displayed. |
332 | Each address is displayed in the format ``host.port'', with each | | 342 | Each address is displayed in the format |
| | | 343 | .Ar host Ns Li . Ns Ar port , |
| | | 344 | with each |
333 | shown symbolically, when possible. | | 345 | shown symbolically, when possible. |
334 | It is possible to have addresses displayed numerically, | | 346 | It is possible to have addresses displayed numerically, |
335 | limit the display to a set of ports, hosts, and/or protocols | | 347 | limit the display to a set of ports, hosts, and/or protocols |
336 | (the minimum unambiguous prefix may be supplied): | | 348 | .Pq the minimum unambiguous prefix may be supplied : |
337 | .Pp | | 349 | .Pp |
338 | .Bl -tag -width Ar -compact | | 350 | .Bl -tag -width Cm |
339 | .It Cm all | | 351 | .It Cm all |
340 | Toggle the displaying of server processes awaiting requests (this | | 352 | Toggle the displaying of server processes awaiting requests |
341 | is the equivalent of the | | 353 | .Po |
| | | 354 | this is the equivalent of the |
342 | .Fl a | | 355 | .Fl a |
343 | flag to | | 356 | flag to |
344 | .Ar netstat 1 ) . | | 357 | .Xr netstat 1 |
345 | .It Cm numbers | | 358 | .Pc . |
346 | Display network addresses numerically. | | | |
347 | .It Cm names | | | |
348 | Display network addresses symbolically. | | | |
349 | .It Ar protocol | | | |
350 | Display only network connections using the indicated protocol | | | |
351 | (currently either ``tcp'' or ``udp''). | | | |
352 | .It Cm ignore Op Ar items | | | |
353 | Do not display information about connections associated with | | | |
354 | the specified hosts or ports. | | | |
355 | Hosts and ports may be specified by name (``vangogh'', ``ftp''), | | | |
356 | or numerically. | | | |
357 | Host addresses use the Internet dot notation (``128.32.0.9''). | | | |
358 | Multiple items may be specified with a single command by separating | | | |
359 | them with spaces. | | | |
360 | .It Cm display Op Ar items | | 359 | .It Cm display Op Ar items |
361 | Display information about the connections associated with the | | 360 | Display information about the connections associated with the |
362 | specified hosts or ports. | | 361 | specified hosts or ports. |
| | | 362 | Hosts and ports may be specified by name |
| | | 363 | .Pq Ql vangogh , ftp , |
| | | 364 | or numerically. |
| | | 365 | Host addresses use the Internet dot notation |
| | | 366 | .Pq Ql 128.32.0.9 . |
| | | 367 | Multiple items may be specified with a single command by separating |
| | | 368 | them with spaces. |
| | | 369 | .It Cm ignore Op Ar items |
| | | 370 | Do not display information about connections associated with |
| | | 371 | the specified hosts or ports. |
363 | As for | | 372 | As for |
364 | .Ar ignore , | | 373 | .Ic display , |
365 | .Op Ar items | | 374 | the |
| | | 375 | .Ar items |
366 | may be names or numbers. | | 376 | may be names or numbers. |
367 | .It Cm show Op Ar ports\&|hosts | | 377 | .It Cm names |
| | | 378 | Display network addresses symbolically. |
| | | 379 | .It Cm numbers |
| | | 380 | Display network addresses numerically. |
| | | 381 | .It Ar protocol |
| | | 382 | Display only network connections using the indicated protocol |
| | | 383 | .Po |
| | | 384 | currently either |
| | | 385 | .Ic tcp |
| | | 386 | or |
| | | 387 | .Ic udp |
| | | 388 | .Pc . |
| | | 389 | .It Cm show Op Cm hosts No \&| Cm ports |
368 | Show, on the command line, the currently selected protocols, | | 390 | Show, on the command line, the currently selected protocols, |
369 | hosts, and ports. | | 391 | hosts, and ports. |
370 | Hosts and ports which are being ignored are prefixed with a `!'. | | 392 | Hosts and ports which are being ignored are prefixed with a |
| | | 393 | .Ql \&! . |
371 | If | | 394 | If |
372 | .Ar ports | | 395 | .Cm ports |
373 | or | | 396 | or |
374 | .Ar hosts | | 397 | .Cm hosts |
375 | is supplied as an argument to | | 398 | is supplied as an argument to |
376 | .Cm show , | | 399 | .Cm show , |
377 | then only the requested information will be displayed. | | 400 | then only the requested information will be displayed. |
378 | .It Cm reset | | 401 | .It Cm reset |
379 | Reset the port, host, and protocol matching mechanisms to the default | | 402 | Reset the port, host, and protocol filters, show everything. |
380 | (any protocol, port, or host). | | | |
381 | .El | | 403 | .El |
382 | .It Ic pigs | | 404 | .It Ic pigs |
383 | Display, in the lower window, those processes which are getting the | | 405 | Display, in the lower window, those processes which are getting the |
384 | largest portion of the processor (the default display). | | 406 | largest portion of the processor (the default display). |
385 | When less than 100% of the | | 407 | When less than 100% of the |
386 | processor is scheduled to user processes, the remaining time | | 408 | processor is scheduled to user processes, the remaining time |
387 | is accounted to the ``idle'' process. | | 409 | is accounted to the idle process. |
388 | .It Ic ps | | 410 | .It Ic ps |
389 | Display, in the lower window, the same information provided | | 411 | Display, in the lower window, the same information provided |
390 | by the command | | 412 | by the command |
391 | .Xr ps 1 | | 413 | .Xr ps 1 |
392 | with the flags | | 414 | with the flags |
393 | .Fl aux . | | 415 | .Fl aux . |
394 | .Pp | | 416 | .Pp |
395 | The following command is specific to the | | 417 | The following command is specific to the |
396 | .Ic ps | | 418 | .Ic ps |
397 | display; the minimum unambiguous prefix may be supplied. | | 419 | display; the minimum unambiguous prefix may be supplied. |
398 | .Pp | | 420 | .Pp |
399 | .Bl -tag -width Fl -compact | | 421 | .Bl -tag -width Fl -compact |
400 | .It Cm user Ar name | | 422 | .It Cm user Ar name |
401 | Limit the list of processes displayed to those owned by user | | 423 | Limit the list of processes displayed to those owned by user |
402 | .Ar name . | | 424 | .Ar name . |
403 | If | | 425 | If |
404 | .Ar name | | 426 | .Ar name |
405 | is specified as `+', processes owned by any user are displayed (default). | | 427 | is specified as |
| | | 428 | .Ql \&+ , |
| | | 429 | processes owned by any user are displayed (default). |
406 | .El | | 430 | .El |
407 | .It Ic swap | | 431 | .It Ic swap |
408 | Show information about swap space usage on all the | | 432 | Show information about swap space usage on all the |
409 | swap areas configured with | | 433 | swap areas configured with |
410 | .Xr swapctl 8 . | | 434 | .Xr swapctl 8 . |
411 | The first column is the device name of the partition. | | 435 | The first column is the device name of the partition. |
412 | The next column is the total space available in the partition. | | 436 | The next column is the total space available in the partition. |
413 | The | | 437 | The |
414 | .Ar Used | | 438 | .Dq Used |
415 | column indicates the total blocks used so far; | | 439 | column indicates the total blocks used so far; |
416 | the graph shows the percentage of space in use on each partition. | | 440 | the graph shows the percentage of space in use on each partition. |
417 | If there are more than one swap partition in use, | | 441 | If there are more than one swap partition in use, |
418 | a total line is also shown. | | 442 | a total line is also shown. |
419 | Areas known to the kernel, but not in use are shown as not available. | | 443 | Areas known to the kernel, but not in use are shown as not available. |
420 | .It Ic syscall | | 444 | .It Ic syscall |
421 | Show per system call statistics. | | 445 | Show per system call statistics. |
422 | The display consists of several columns of system call name and counts. | | 446 | The display consists of several columns of system call name and counts. |
423 | .Pp | | 447 | .Pp |
424 | In order to stop entries moving around the screen too much, an infinite | | 448 | In order to stop entries moving around the screen too much, an infinite |
425 | response filter is applied to the values before they are sorted. | | 449 | response filter is applied to the values before they are sorted. |
426 | .Pp | | 450 | .Pp |
427 | The following commands are specific to the | | 451 | The following commands are specific to the |
| @@ -576,27 +600,30 @@ Thus this figure is most interesting whe | | | @@ -576,27 +600,30 @@ Thus this figure is most interesting whe |
576 | a long time period, such as from boot time | | 600 | a long time period, such as from boot time |
577 | (see below on getting such a display). | | 601 | (see below on getting such a display). |
578 | .Pp | | 602 | .Pp |
579 | To the left of the column of paging statistics is a breakdown | | 603 | To the left of the column of paging statistics is a breakdown |
580 | of the interrupts being handled by the system. | | 604 | of the interrupts being handled by the system. |
581 | At the top of the list is the total interrupts per second | | 605 | At the top of the list is the total interrupts per second |
582 | over the time interval. | | 606 | over the time interval. |
583 | The rest of the column breaks down the total on a device | | 607 | The rest of the column breaks down the total on a device |
584 | by device basis. | | 608 | by device basis. |
585 | Only devices that have interrupted at least once since boot time are shown. | | 609 | Only devices that have interrupted at least once since boot time are shown. |
586 | .El | | 610 | .El |
587 | .Pp | | 611 | .Pp |
588 | Commands to switch between displays may be abbreviated to the | | 612 | Commands to switch between displays may be abbreviated to the |
589 | minimum unambiguous prefix; for example, ``io'' for ``iostat''. | | 613 | minimum unambiguous prefix; for example, |
| | | 614 | .Ic io |
| | | 615 | for |
| | | 616 | .Ic iostat . |
590 | Certain information may be discarded when the screen size is | | 617 | Certain information may be discarded when the screen size is |
591 | insufficient for display. | | 618 | insufficient for display. |
592 | For example, on a machine with 10 drives the | | 619 | For example, on a machine with 10 drives the |
593 | .Ic iostat | | 620 | .Ic iostat |
594 | bar graph displays only 3 drives on a 24 line terminal. | | 621 | bar graph displays only 3 drives on a 24 line terminal. |
595 | When a bar graph would overflow the allotted screen space it is | | 622 | When a bar graph would overflow the allotted screen space it is |
596 | truncated and the actual value is printed ``over top'' of the bar. | | 623 | truncated and the actual value is printed ``over top'' of the bar. |
597 | .Pp | | 624 | .Pp |
598 | The following commands are common to each display which shows | | 625 | The following commands are common to each display which shows |
599 | information about disk drives. | | 626 | information about disk drives. |
600 | These commands are used to select a set of drives to report on, | | 627 | These commands are used to select a set of drives to report on, |
601 | should your system have more drives configured than can normally | | 628 | should your system have more drives configured than can normally |
602 | be displayed on the screen. | | 629 | be displayed on the screen. |
| @@ -640,31 +667,33 @@ Reset running statistics to zero. | | | @@ -640,31 +667,33 @@ Reset running statistics to zero. |
640 | .Bl -tag -width /etc/networks -compact | | 667 | .Bl -tag -width /etc/networks -compact |
641 | .It Pa /netbsd | | 668 | .It Pa /netbsd |
642 | For the namelist. | | 669 | For the namelist. |
643 | .It Pa /dev/kmem | | 670 | .It Pa /dev/kmem |
644 | For information in main memory. | | 671 | For information in main memory. |
645 | .It Pa /etc/hosts | | 672 | .It Pa /etc/hosts |
646 | For host names. | | 673 | For host names. |
647 | .It Pa /etc/networks | | 674 | .It Pa /etc/networks |
648 | For network names. | | 675 | For network names. |
649 | .It Pa /etc/services | | 676 | .It Pa /etc/services |
650 | For port names. | | 677 | For port names. |
651 | .El | | 678 | .El |
652 | .Sh NOTES | | 679 | .Sh NOTES |
653 | Much of the information that | | 680 | Most of the information shown by |
654 | .Nm | | 681 | .Nm |
655 | .Ic vmstat | | 682 | .Ic vmstat |
656 | uses is obtained from | | 683 | is obtained from the |
657 | .Cm struct vmmeter cnt . | | 684 | .Ql vm.vmmeter |
| | | 685 | .Xr sysctl 7 |
| | | 686 | node. |
658 | .Sh SEE ALSO | | 687 | .Sh SEE ALSO |
659 | .Xr df 1 , | | 688 | .Xr df 1 , |
660 | .Xr netstat 1 , | | 689 | .Xr netstat 1 , |
661 | .Xr ps 1 , | | 690 | .Xr ps 1 , |
662 | .Xr top 1 , | | 691 | .Xr top 1 , |
663 | .Xr vmstat 1 , | | 692 | .Xr vmstat 1 , |
664 | .Xr iostat 8 , | | 693 | .Xr iostat 8 , |
665 | .Xr pstat 8 | | 694 | .Xr pstat 8 |
666 | .Sh HISTORY | | 695 | .Sh HISTORY |
667 | The | | 696 | The |
668 | .Nm | | 697 | .Nm |
669 | program appeared in | | 698 | program appeared in |
670 | .Bx 4.3 . | | 699 | .Bx 4.3 . |