summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/netstat.1
diff options
context:
space:
mode:
authorgnn <gnn@FreeBSD.org>2008-05-15 20:18:44 +0000
committergnn <gnn@FreeBSD.org>2008-05-15 20:18:44 +0000
commit368bdf05e9188bfc74fa11ed733351ed1c1e5c2c (patch)
treedc4a19cd314451b850213be8dc0f8bf050c8258b /usr.bin/netstat/netstat.1
parentf7f31164f19cdffc5fc75cde6ac6d025b796f980 (diff)
downloadFreeBSD-src-368bdf05e9188bfc74fa11ed733351ed1c1e5c2c.zip
FreeBSD-src-368bdf05e9188bfc74fa11ed733351ed1c1e5c2c.tar.gz
Update the kernel to count the number of mbufs and clusters
(all types) used per socket buffer. Add support to netstat to print out all of the socket buffer statistics. Update the netstat manual page to describe the new -x flag which gives the extended output. Reviewed by: rwatson, julian
Diffstat (limited to 'usr.bin/netstat/netstat.1')
-rw-r--r--usr.bin/netstat/netstat.125
1 files changed, 24 insertions, 1 deletions
diff --git a/usr.bin/netstat/netstat.1 b/usr.bin/netstat/netstat.1
index c1e140f..de87477 100644
--- a/usr.bin/netstat/netstat.1
+++ b/usr.bin/netstat/netstat.1
@@ -49,7 +49,7 @@ depending on the options for the information presented.
.It Xo
.Bk -words
.Nm
-.Op Fl AaLnSW
+.Op Fl AaLnSWx
.Op Fl f Ar protocol_family | Fl p Ar protocol
.Op Fl M Ar core
.Op Fl N Ar system
@@ -85,6 +85,9 @@ is also present,
show network addresses as numbers (as with
.Fl n )
but show ports symbolically.
+If
+.Fl x
+is present display full socket buffer statistics for each internet socket.
.It Xo
.Bk -words
.Nm
@@ -454,6 +457,26 @@ remotely on the interface.
.Pp
For more information about these flags, please refer to
.Xr bpf 4 .
+.Pp
+The
+.Fl x
+flag causes netstat to output all the information recorded about data
+stored in the socket buffers. The fields are:
+.Bl -column ".Li R-MBUF"
+.It Li R-MBUF Ta Number of mbufs in the receive queue.
+.It Li S-MBUF Ta Number of mbufs in the send queue.
+.It Li R-CLUS Ta Number of clusters, of any type, in the recieve
+queue.
+.It Li S-CLUS Ta Number of clusters, of any type, in the send queue.
+.It Li R-HIWA Ta Receive buffer high water mark, in bytes.
+.It Li S-HIWA Ta Send buffer high water mark, in bytes.
+.It Li R-LOWA Ta Receive buffer low water mark, in bytes.
+.It Li S-LOWA Ta Send buffer low water mark, in bytes.
+.It Li R-BCNT Ta Receive buffer byte count.
+.It Li S-BCNT Ta Send buffer byte count.
+.It Li R-BMAX Ta Maximum bytes that can be used in the receive buffer.
+.It Li S-BMAX Ta Maximum bytes that can be used in the send buffer.
+.El
.Sh SEE ALSO
.Xr fstat 1 ,
.Xr nfsstat 1 ,
OpenPOWER on IntegriCloud