History log of /freebsd-current/usr.sbin/pstat/pstat.8
Revision Date Author Comments
# 8a7b6120 23-Nov-2023 Warner Losh <imp@FreeBSD.org>

usr.sbin: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix


# b2c76c41 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line nroff pattern

Remove /^\.\\"\s*\$FreeBSD\$$\n/


# 39ad6e28 08-Jul-2022 Felix Johnson <felix.the.red@gmail.com>

swapinfo.8: Mention BLOCKSIZE in the ENVIRONMENT section

Copy the ENVIRONMENT section from df(1) to swapinfo(8), except
that the --si option is removed for swapinfo.

PR: 235225
Reported by: 0mp
MFC after: 3 days


# fbbd9655 28-Feb-2017 Warner Losh <imp@FreeBSD.org>

Renumber copyright clause 4

Renumber cluase 4 to 3, per what everybody else did when BSD granted
them permission to remove clause 3. My insistance on keeping the same
numbering for legal reasons is too pedantic, so give up on that point.

Submitted by: Jan Schaumann <jschauma@stevens.edu>
Pull Request: https://github.com/freebsd/freebsd/pull/96


# 3e83ac2b 11-Oct-2014 Jilles Tjoelker <jilles@FreeBSD.org>

pstat(8): Correct description of the SESS column in pstat -t.

MFC after: 1 week


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# c0086bf2 11-Feb-2009 Ed Schouten <ed@FreeBSD.org>

Serialize write() calls on TTYs.

Just like the old TTY layer, the current MPSAFE TTY layer does not make
any attempt to serialize calls of write(). Data is copied into the
kernel in 256 (TTY_STACKBUF) byte chunks. If a write() call occurs at
the same time, the data may interleave. This is especially likely when
the TTY starts blocking, because the output queue reaches the high
watermark.

I've implemented this by adding a new flag, TTY_BUSY_OUT, which is used
to mark a TTY as having a thread stuck in write(). Because I don't want
non-blocking processes to be possibly blocked by a sleeping thread, I'm
still allowing it to bypass the protection. According to this message,
the Linux kernel returns EAGAIN in such cases, but I think that's a
little too restrictive:

http://kerneltrap.org/index.php?q=mailarchive/linux-kernel/2007/5/2/85418/thread

PR: kern/118287


# c3328b2a 05-Feb-2009 Ed Schouten <ed@FreeBSD.org>

Don't leave the console TTY constantly open.

When we leave the console TTY constantly open, we never reset the
termios attributes. This causes output processing, echoing, etc. not to
be reset to the proper values when going into single user mode after the
system has booted. It also causes nl-to-crnl-conversion not to take
place during shutdown, which causes a `staircase effect'.

This patch adds a new TTY flag, TF_OPENED_CONS, which is set when the
TTY is opened through /dev/console. Because the flags are only used by
the kernel and the pstat(8) utility, I've decided to renumber the TTY
flags. This shouldn't be an issue, because the TTY layer is not yet part
of a stable release.

Reported by: Mark Atkinson <atkin901 yahoo com>
Tested by: sepotvin


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# a1215e37 22-Sep-2008 Ed Schouten <ed@FreeBSD.org>

Introduce a hooks layer for the MPSAFE TTY layer.

One of the features that prevented us from fixing some of the TTY
consumers to work once again, was an interface that allowed consumers to
do the following:

- `Sniff' incoming data, which is used by the snp(4) driver.

- Take direct control of the input and output paths of a TTY, which is
used by ng_tty(4), ppp(4), sl(4), etc.

There's no practical advantage in committing a hooks layer without
having any consumers. In P4 there is a preliminary port of snp(4) and
thompsa@ is busy porting ng_tty(4) to this interface. I already want to
have it in the tree, because this may stimulate others to work on the
remaining modules.

Discussed with: thompsa
Obtained from: //depot/projects/mpsafetty/...


# 9d5a92ee 20-Aug-2008 Ed Schouten <ed@FreeBSD.org>

Fix a small typo in the pstat(8) manual page.

The second LOW column of the pstat(8) command refers to the low
watermark of the output queue.


# bc093719 20-Aug-2008 Ed Schouten <ed@FreeBSD.org>

Integrate the new MPSAFE TTY layer to the FreeBSD operating system.

The last half year I've been working on a replacement TTY layer for the
FreeBSD kernel. The new TTY layer was designed to improve the following:

- Improved driver model:

The old TTY layer has a driver model that is not abstract enough to
make it friendly to use. A good example is the output path, where the
device drivers directly access the output buffers. This means that an
in-kernel PPP implementation must always convert network buffers into
TTY buffers.

If a PPP implementation would be built on top of the new TTY layer
(still needs a hooks layer, though), it would allow the PPP
implementation to directly hand the data to the TTY driver.

- Improved hotplugging:

With the old TTY layer, it isn't entirely safe to destroy TTY's from
the system. This implementation has a two-step destructing design,
where the driver first abandons the TTY. After all threads have left
the TTY, the TTY layer calls a routine in the driver, which can be
used to free resources (unit numbers, etc).

The pts(4) driver also implements this feature, which means
posix_openpt() will now return PTY's that are created on the fly.

- Improved performance:

One of the major improvements is the per-TTY mutex, which is expected
to improve scalability when compared to the old Giant locking.
Another change is the unbuffered copying to userspace, which is both
used on TTY device nodes and PTY masters.

Upgrading should be quite straightforward. Unlike previous versions,
existing kernel configuration files do not need to be changed, except
when they reference device drivers that are listed in UPDATING.

Obtained from: //depot/projects/mpsafetty/...
Approved by: philip (ex-mentor)
Discussed: on the lists, at BSDCan, at the DevSummit
Sponsored by: Snow B.V., the Netherlands
dcons(4) fixed by: kan


# ae35e8ad 03-Apr-2007 Ruslan Ermilov <ru@FreeBSD.org>

- Recognize -g and -m in pstat(8) too.
- Document -g and -m support in swapinfo(8).

Reviewed by: markm


# 7e8409a7 01-Apr-2007 Mark Murray <markm@FreeBSD.org>

Add -m (megabytes) and -g (gigabytes) options. I'm tired of being told
I can't do this.

MFC: 1 month


# 7257230f 21-Mar-2005 Giorgos Keramidas <keramida@FreeBSD.org>

- Add a -h flag to pstat to print swap sizes in "human readable"
format, with humanize_number(3).

- Move the common parts of the code that prints the sizes for a single
swap device and the total to a single function to avoid repeating
the humanize_number() stuff all over the place.

- Change the type of CONVERT() from intmax_t to int64_t, since this
makes calling humanize_number() easier but cast the values to
intmax_t before printing them, to make use of the %jd format that
printf() supports.

- Document the new -h flag in the manpage and bump its date.

Approved by: pjd
Useful tips: brooks
MFC after: 2 weeks


# 59a3c79d 18-Jan-2005 Ruslan Ermilov <ru@FreeBSD.org>

Sort sections.


# 7aaa4825 11-Nov-2004 Diomidis Spinellis <dds@FreeBSD.org>

Corrected the description of the -t output columns to reflect reality.

MFC after: 2 weeks


# 486c8cc4 06-Aug-2004 Warner Losh <imp@FreeBSD.org>

Per letter dated July 22, 1999 remove 3rd clause of Berkeley derived software
(with permission of addtional copyright holders where appropriate)


# 455fb174 03-Jul-2004 Ruslan Ermilov <ru@FreeBSD.org>

Eliminated double whitespace.


# 07bfccd7 02-Jul-2004 Ruslan Ermilov <ru@FreeBSD.org>

Mechanically kill hard sentence breaks.


# 8482be06 26-Mar-2004 Ruslan Ermilov <ru@FreeBSD.org>

-N without -M is pointless.


# 0b46bb97 26-Mar-2004 Ruslan Ermilov <ru@FreeBSD.org>

Update information of how pstat(8) accesses the running system.


# 799aba96 31-Jul-2003 Poul-Henning Kamp <phk@FreeBSD.org>

Remove options processing for dumping swapdevice radix map.


# eeebf53e 30-Jul-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Use struct xfile, not struct file.


# 490d5836 14-Jul-2002 Philippe Charnier <charnier@FreeBSD.org>

The .Nm utility


# 0cbfd1a5 23-May-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Cull large amounts of dead code (deprecated since 1997)

Sponsored by: DARPA, NAI Labs


# 1063e126 09-May-2002 Josef Karthauser <joe@FreeBSD.org>

Replace /kernel with /boot/kernel/kernel.

PR: docs/37757
Submitted by: Hiten Pandya <hiten@uk.FreeBSD.org>


# 72d12a7f 28-Apr-2002 Ian Dowse <iedowse@FreeBSD.org>

Oops, remove references to NLOCKED and NWANTED, now that they no
longer exist.


# 91196234 18-Sep-2001 Peter Wemm <peter@FreeBSD.org>

Userland part of nfs client/server split and cleanup.


# a4c37c81 10-Jul-2001 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: removed HISTORY info from the .Os call.


# 65834d4b 03-Jun-2001 Jens Schweikhardt <schweikh@FreeBSD.org>

Fix a grammar bogon and removed whitespace at EOL.
MFC after: 1 week


# 0b381bf1 01-Jun-2001 Ruslan Ermilov <ru@FreeBSD.org>

Remove vestiges of MFS.


# b56b39ad 08-May-2001 Alfred Perlstein <alfred@FreeBSD.org>

Unbreak world, IN_SHLOCK/IN_EXLOCK haven't existed in a while and
Kirk finally has ditched them. While I'm here also ditch FSHLOCK.


# 039a0992 04-Apr-2001 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: you don't need to use enclose macros for blocks of text.


# 06bd8205 28-Mar-2001 Dima Dorfman <dd@FreeBSD.org>

Note that the -v option is not supported. Don't remove the actual
text because the code is still in pstat.c, and may be reincarnated at
some point.

PR: 26054
Approved by: nik


# 46eea498 07-Feb-2001 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: Change -filled displays (which just happen
to be the same as -ragged in the current implementation) to
-ragged. With mdocNG, -filled displays produce the correct
output, formatted and justified to both margins.


# 0985ff69 17-Jan-2001 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: compact a few lists for better output.


# c3f0a895 16-Jan-2001 Ben Smithurst <ben@FreeBSD.org>

Ooops, the -M and -N flags were already documented, though not very clearly.
Remove the old description in favour of the new description which lists the
-M and -N flags along with all the other flags. This is consistent with the
manual pages for ps, netstat, iostat, etc.


# a82684b6 16-Jan-2001 Ben Smithurst <ben@FreeBSD.org>

document -M and -N flags.

PR: 24323
Submitted by: Jesse Monroy <opentrax@email.com>


# 26a2d903 30-Dec-2000 Assar Westerlund <assar@FreeBSD.org>

update to the current set of mnt_, ufs_ and nfs_ flags
also make man-page correspond to the code


# 8b5c4af3 27-Dec-2000 Ruslan Ermilov <ru@FreeBSD.org>

Prepare for mdoc(7)NG.


# e97407b4 20-Nov-2000 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: use the new features of the Nm macro.


# 7c0e6e50 27-Nov-1999 Philippe Charnier <charnier@FreeBSD.org>

Merge fprintf and exit into errx.
Use .Ev for environment variable.


# 97d92980 27-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# eedc3436 21-Jan-1999 Matthew Dillon <dillon@FreeBSD.org>

Update pstat -s to handle both old and new swapper.
Add pstat -ss to dump new swapper's radix tree.


# 18e5aee8 17-Jan-1998 Bruce Evans <bde@FreeBSD.org>

VVMIO -> VOBJBUF as in pstat.c.


# d9961cfd 09-Oct-1997 Philippe Charnier <charnier@FreeBSD.org>

Use err(3). Add usage().
Default source of tables (-M) is /dev/mem, not /dev/kmem.


# fdaad796 30-Aug-1997 Peter Wemm <peter@FreeBSD.org>

Update to include some of the newer vnode flags and remove some stale ones.


# 9c5cdfe0 11-Mar-1997 Peter Wemm <peter@FreeBSD.org>

Merge Lite2 changes


# ed005182 10-Mar-1997 Peter Wemm <peter@FreeBSD.org>

Import some CSRG 4.4BSD-Lite2 components in order to fix the tree build.


# 476602a9 22-Feb-1997 Peter Wemm <peter@FreeBSD.org>

Revert $FreeBSD$ to $Id$


# 1130b656 14-Jan-1997 Jordan K. Hubbard <jkh@FreeBSD.org>

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


# c2dc07c8 27-Oct-1996 Alexander Langer <alex@FreeBSD.org>

Fix a typo, putput --> output.

Submitted by: Philippe Charnier <charnier@xp11.frmug.org>


# c0b0bcf4 23-Aug-1996 Mike Pritchard <mpp@FreeBSD.org>

Use the .Bx macro where appropriate.


# d19eed81 02-Jul-1996 Mike Pritchard <mpp@FreeBSD.org>

Document the -i backward compatibility option (same as -v).

Submitted by: Faried Nawaz


# 9b25840f 17-Apr-1996 Joerg Wunsch <joerg@FreeBSD.org>

Mention swapinfo as .Nm, so it will be referenced by mkwhatis.


# 270d3d75 20-Jan-1996 Mike Pritchard <mpp@FreeBSD.org>

Fix a variety of minor typos and cross references in a bunch of
man pages.

Masanobu Saitoh <msaitoh@spa.is.uec.ac.jp>
Giles Lean <giles@nemeton.com.au>
<soda@sra.co.jp>


# 3f692954 06-Oct-1995 Bruce Evans <bde@FreeBSD.org>

Document SESS, fix PGRP (now PGID), and document some more STATE flags.
Submitted by: clemc@locus.com and edited by me.


# 283fecc1 21-Jul-1995 Bruce Evans <bde@FreeBSD.org>

Document new tty states TS_CONNECTED, TS_SO_OLOWAT, TS_SO_OCOMPLETE,
TS_CAR_OFLOW, TS_CTS_OFLOW, TS_DSR_OFLOW and TS_ZOMBIE.

Document old tty states TS_ASLEEP and TS_TTSTOP more completely.

Document old tty states TS_ASYNC and TS_TBLOCK.

Document not so old tty states TS_CAN_BYPASS_L_RINT and TS_SNOOP.

Don't document nonexistent state TS_HUPCL.

Document the current line disciplines instead of prehistoric ones.


# 59392fe2 13-May-1995 Poul-Henning Kamp <phk@FreeBSD.org>

Make pstat act like swapinfo if so invoked.


# b3bfc719 05-Aug-1994 David Greenman <dg@FreeBSD.org>

Converted 'vmunix' to 'kernel'.


# dea673e9 25-May-1994 Rodney W. Grimes <rgrimes@FreeBSD.org>

BSD 4.4 Lite usr.sbin Sources