Blame SOURCES/0001-man-lnstat-rewrite-manpage.patch

049c96
From b5c8d07b3e6c4c4b86636b6cb85f812eb634ea34 Mon Sep 17 00:00:00 2001
049c96
From: Phil Sutter <psutter@redhat.com>
049c96
Date: Tue, 16 Feb 2016 20:03:30 +0100
049c96
Subject: [PATCH] man: lnstat: rewrite manpage
049c96
049c96
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1269133
049c96
Upstream Status: commit f3737abf8ca5e
049c96
049c96
commit f3737abf8ca5e446f71d99b4f8e77460ede6f7ef
049c96
Author: Phil Sutter <phil@nwl.cc>
049c96
Date:   Fri Sep 18 20:17:04 2015 +0200
049c96
049c96
    man: lnstat: rewrite manpage
049c96
049c96
    Signed-off-by: Phil Sutter <phil@nwl.cc>
049c96
---
049c96
 man/man8/lnstat.8 | 197 ++++++++++++++++++++++++++++++++++++++++++++++++++++--
049c96
 1 file changed, 192 insertions(+), 5 deletions(-)
049c96
049c96
diff --git a/man/man8/lnstat.8 b/man/man8/lnstat.8
049c96
index a76940b..b817bcf 100644
049c96
--- a/man/man8/lnstat.8
049c96
+++ b/man/man8/lnstat.8
049c96
@@ -9,9 +9,21 @@ This manual page documents briefly the
049c96
 .B lnstat
049c96
 command.
049c96
 .PP
049c96
-\fBlnstat\fP is a generalized and more feature-complete replacement for the old rtstat program.
049c96
-In addition to routing cache statistics, it supports any kind of statistics the linux kernel
049c96
-exports via a file in /proc/net/stat/.
049c96
+\fBlnstat\fP is a generalized and more feature-complete replacement for the old
049c96
+rtstat program. It is commonly used to periodically print a selection of
049c96
+statistical values exported by the kernel.
049c96
+In addition to routing cache statistics, it supports any kind of statistics the
049c96
+linux kernel exports via a file in /proc/net/stat/.
049c96
+.PP
049c96
+Each file in /proc/net/stat/ contains a header line listing the column names.
049c96
+These names are used by \fBlnstat\fP as keys for selecting which statistics to
049c96
+print. For every CPU present in the system, a line follows which lists the
049c96
+actual values for each column of the file. \fBlnstat\fP sums these values up
049c96
+(which in fact are counters) before printing them. After each interval, only
049c96
+the difference to the last value is printed.
049c96
+.PP
049c96
+Files and columns may be selected by using the \fB-f\fP and \fB-k\fP
049c96
+parameters. By default, all columns of all files are printed.
049c96
 .SH OPTIONS
049c96
 lnstat supports the following options.
049c96
 .TP
049c96
@@ -28,13 +40,15 @@ Print <count> number of intervals.
049c96
 Dump list of available files/keys.
049c96
 .TP
049c96
 .B \-f, \-\-file <file>
049c96
-Statistics file to use.
049c96
+Statistics file to use, may be specified multiple times. By default all files in /proc/net/stat are scanned.
049c96
 .TP
049c96
 .B \-i, \-\-interval <intv>
049c96
 Set interval to 'intv' seconds.
049c96
 .TP
049c96
 .B \-k, \-\-keys k,k,k,...
049c96
-Display only keys specified.
049c96
+Display only keys specified. Each key \fBk\fP is of the form \fB[file:]key\fP. If \fB<file>\fP
049c96
+is given, the search for the given key is limited to that file. Otherwise the first file containing
049c96
+the searched key is being used.
049c96
 .TP
049c96
 .B \-s, \-\-subject [0-2]
049c96
 Specify display of subject/header. '0' means no header at all, '1' prints a header only at start of the program and '2' prints a header every 20 lines.
049c96
@@ -63,6 +77,179 @@ Print a header at start and every 20 lines.
049c96
 .TP
049c96
 .B # lnstat -c -1 -i 1 -f rt_cache -k entries,in_hit,in_slow_tot
049c96
 Display statistics for keys entries, in_hit and in_slow_tot of field rt_cache every second.
049c96
+
049c96
+.SH FILES
049c96
+.TP
049c96
+.B /proc/net/stat/arp_cache, /proc/net/stat/ndisc_cache
049c96
+Statistics around neighbor cache and ARP. \fBarp_cache\fP is for IPv4, \fBndisc_cache\fP is the same for IPv6.
049c96
+.sp
049c96
+.B entries
049c96
+Number of entries in the neighbor table.
049c96
+.sp
049c96
+.B allocs
049c96
+How many neighbor entries have been allocated.
049c96
+.sp
049c96
+.B destroys
049c96
+How many neighbor entries have been removed.
049c96
+.sp
049c96
+.B hash_grows
049c96
+How often the neighbor (hash) table was increased.
049c96
+.sp
049c96
+.B lookups
049c96
+How many lookups were performed.
049c96
+.sp
049c96
+.B hits
049c96
+How many \fBlookups\fP were successful.
049c96
+.sp
049c96
+.B res_failed
049c96
+How many neighbor lookups failed.
049c96
+.sp
049c96
+.B rcv_probes_mcast
049c96
+How many multicast neighbor solicitations were received. (IPv6 only.)
049c96
+.sp
049c96
+.B rcv_probes_ucast
049c96
+How many unicast neighbor solicitations were received. (IPv6 only.)
049c96
+.sp
049c96
+.B periodic_gc_runs
049c96
+How many garbage collection runs were executed.
049c96
+.sp
049c96
+.B forced_gc_runs
049c96
+How many forced garbage collection runs were executed. Happens when adding an
049c96
+entry and the table is too full.
049c96
+.sp
049c96
+.B unresolved_discards
049c96
+How many neighbor table entries were discarded due to lookup failure.
049c96
+.sp
049c96
+.B table_fulls
049c96
+Number of table overflows. Happens if table is full and forced GC run (see
049c96
+\fBforced_gc_runs\fP) has failed.
049c96
+
049c96
+.TP
049c96
+.B /proc/net/stat/ip_conntrack, /proc/net/stat/nf_conntrack
049c96
+Conntrack related counters. \fBip_conntrack\fP is for backwards compatibility
049c96
+with older userspace only and shows the same data as \fBnf_conntrack\fP.
049c96
+.sp
049c96
+.B entries
049c96
+Number of entries in conntrack table.
049c96
+.sp
049c96
+.B searched
049c96
+Number of conntrack table lookups performed.
049c96
+.sp
049c96
+.B found
049c96
+Number of \fBsearched\fP entries which were successful.
049c96
+.sp
049c96
+.B new
049c96
+Number of conntrack entries added which were not expected before.
049c96
+.sp
049c96
+.B invalid
049c96
+Number of packets seen which can not be tracked.
049c96
+.sp
049c96
+.B ignore
049c96
+Number of packets seen which are already connected to a conntrack entry.
049c96
+.sp
049c96
+.B delete
049c96
+Number of conntrack entries which were removed.
049c96
+.sp
049c96
+.B delete_list
049c96
+Number of conntrack entries which were put to dying list.
049c96
+.sp
049c96
+.B insert
049c96
+Number of entries inserted into the list.
049c96
+.sp
049c96
+.B insert_failed
049c96
+Number of entries for which list insertion was attempted but failed (happens if
049c96
+the same entry is already present).
049c96
+.sp
049c96
+.B drop
049c96
+Number of packets dropped due to conntrack failure. Either new conntrack entry
049c96
+allocation failed, or protocol helper dropped the packet.
049c96
+.sp
049c96
+.B early_drop
049c96
+Number of dropped conntrack entries to make room for new ones, if maximum table
049c96
+size was reached.
049c96
+.sp
049c96
+.B icmp_error
049c96
+Number of packets wich could not be tracked due to error situation. This is a
049c96
+subset of \fBinvalid\fP.
049c96
+.sp
049c96
+.B expect_new
049c96
+Number of conntrack entries added after an expectation for them was already
049c96
+present.
049c96
+.sp
049c96
+.B expect_create
049c96
+Number of expectations added.
049c96
+.sp
049c96
+.B expect_delete
049c96
+Number of expectations deleted.
049c96
+.sp
049c96
+.B search_restart
049c96
+Number of conntrack table lookups which had to be restarted due to hashtable
049c96
+resizes.
049c96
+
049c96
+.TP
049c96
+.B /proc/net/stat/rt_cache
049c96
+Routing cache statistics.
049c96
+.sp
049c96
+.B entries
049c96
+Number of entries in routing cache.
049c96
+.sp
049c96
+.B in_hit
049c96
+Number of route cache hits for incoming packets. Deprecated since IP route
049c96
+cache removal, therefore always zero.
049c96
+.sp
049c96
+.B in_slow_tot
049c96
+Number of routing cache entries added for input traffic.
049c96
+.sp
049c96
+.B in_slow_mc
049c96
+Number of multicast routing cache entries added for input traffic.
049c96
+.sp
049c96
+.B in_no_route
049c96
+Number of input packets for which no routing table entry was found.
049c96
+.sp
049c96
+.B in_brd
049c96
+Number of matched input broadcast packets.
049c96
+.sp
049c96
+.B in_martian_dst
049c96
+Number of incoming martian destination packets.
049c96
+.sp
049c96
+.B in_martian_src
049c96
+Number of incoming martian source packets.
049c96
+.sp
049c96
+.B out_hit
049c96
+Number of route cache hits for outgoing packets. Deprecated since IP route
049c96
+cache removal, therefore always zero.
049c96
+.sp
049c96
+.B out_slow_tot
049c96
+Number of routing cache entries added for output traffic.
049c96
+.sp
049c96
+.B out_slow_mc
049c96
+Number of multicast routing cache entries added for output traffic.
049c96
+.sp
049c96
+.B gc_total
049c96
+Total number of garbage collection runs. Deprecated since IP route cache
049c96
+removal, therefore always zero.
049c96
+.sp
049c96
+.B gc_ignored
049c96
+Number of ignored garbage collection runs due to minimum GC interval not
049c96
+reached and routing cache not full. Deprecated since IP route cache removal,
049c96
+therefore always zero.
049c96
+.sp
049c96
+.B gc_goal_miss
049c96
+Number of garbage collector goal misses. Deprecated since IP route cache
049c96
+removal, therefore always zero.
049c96
+.sp
049c96
+.B gc_dst_overflow
049c96
+Number of destination cache overflows. Deprecated since IP route cache removal,
049c96
+therefore always zero.
049c96
+.sp
049c96
+.B in_hlist_search
049c96
+Number of hash table list traversals for input traffic. Deprecated since IP
049c96
+route cache removal, therefore always zero.
049c96
+.sp
049c96
+.B out_hlist_search
049c96
+Number of hash table list traversals for output traffic. Deprecated since IP
049c96
+route cache removal, therefore always zero.
049c96
+
049c96
 .SH SEE ALSO
049c96
 .BR ip (8),
049c96
 and /usr/share/doc/iproute-doc/README.lnstat (package iproute-doc on Debian)
049c96
-- 
049c96
1.8.3.1
049c96