1 .\" Copyright (c) 1980, 1991, 1993, 1994
2 .\" The Regents of the University of California. All rights reserved.
3 .\" Copyright (c) 2002 Networks Associates Technology, Inc.
4 .\" All rights reserved.
6 .\" Portions of this software was developed for the FreeBSD Project by
7 .\" ThinkSec AS and NAI Labs, the Security Research Division of Network
8 .\" Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035
9 .\" ("CBOSS"), as part of the DARPA CHATS research program.
11 .\" Redistribution and use in source and binary forms, with or without
12 .\" modification, are permitted provided that the following conditions
14 .\" 1. Redistributions of source code must retain the above copyright
15 .\" notice, this list of conditions and the following disclaimer.
16 .\" 2. Redistributions in binary form must reproduce the above copyright
17 .\" notice, this list of conditions and the following disclaimer in the
18 .\" documentation and/or other materials provided with the distribution.
19 .\" 3. Neither the name of the University nor the names of its contributors
20 .\" may be used to endorse or promote products derived from this software
21 .\" without specific prior written permission.
23 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
41 .Nd display system data structures
45 .Op Fl M Ar core Op Fl N Ar system
48 .Op Fl M Ar core Op Fl N Ar system
52 utility displays open file entry, swap space utilization,
53 terminal state, and vnode data structures.
59 option is implied, and only the
67 option is not specified, information is obtained from
68 the currently running kernel via the
71 Otherwise, information is read from the specified core file,
72 using the name list from the specified kernel image (or from
75 The following options are available:
76 .Bl -tag -width indent
78 Print devices out by major/minor instead of name.
82 Use unit suffixes when printing swap partition sizes:
83 Byte, Kilobyte, Megabyte, Gigabyte, Terabyte and Petabyte.
85 Print sizes in kilobytes, regardless of the setting of the
89 Print sizes in megabytes, regardless of the setting of the
93 Print sizes in gigabytes, regardless of the setting of the
97 Print the number of used and free slots in several system tables.
98 This is useful for checking to see how large system tables have become
99 if the system is under heavy load.
101 Print the open file table with these headings:
102 .Bl -tag -width indent
104 The core location of this table entry.
106 The type of object the file table entry points to.
108 Miscellaneous state variables encoded thus:
110 .Bl -tag -width indent -compact
118 signal pgrp when data ready
121 Number of processes that know this open file.
123 Number of messages outstanding for this file.
125 The location of the vnode table entry or socket structure for this file.
131 Print information about swap space usage on all the
132 swap areas compiled into the kernel.
133 The first column is the device name of the partition.
135 the total space available in the partition.
138 column indicates the total blocks used so far; the
140 column indicates how much space is remaining on each partition.
143 reports the percentage of space used.
145 If more than one partition is configured into the system, totals for all
146 of the statistics will be reported in the final line of the report.
148 Print table for terminals
150 .Bl -tag -width indent
154 Number of characters that can be stored in the input queue.
156 Number of characters in the input queue which can be read.
158 Number of characters in the input queue which cannot be read yet.
160 Low water mark for input.
162 Number of characters that can be stored in the output queue.
164 Number of bytes in the output queue.
166 Low water mark for output.
168 Calculated column position of terminal.
170 Process ID of the session leader.
172 Process group for which this is the controlling terminal.
174 Miscellaneous state variables encoded thus:
176 .Bl -tag -width indent -compact
178 init/lock-state device nodes present
180 callout device nodes present
191 send SIGIO for input events
193 next character is literal
195 high watermark reached
197 open for exclusive use
199 output stopped (ixon flow control)
201 block mode input routine in use
217 characters refer to the previous character, to differentiate between
221 Extract values associated with the name list from the specified core.
226 extract the name list from the specified system instead of the default,
227 which is the kernel image the system has booted from.
230 .Bl -tag -width BLOCKSIZE
232 If the environment variable
238 options are not specified, the block counts will be displayed in units of
246 options are not specified, the block counts will be displayed in 512-byte
257 .%T UNIX Implementation