| 1 |
.TH dropwatch "1" "Mar 2009" "Neil Horman" |
| 2 |
.SH NAME |
| 3 |
dropwatch \- kernel dropped packet monitoring utility |
| 4 |
.SH SYNOPSIS |
| 5 |
\fBdropwatch\fP [\fB\-l\fP \fImethod\fP | \fBlist\fP] |
| 6 |
.SH DESCRIPTION |
| 7 |
.B dropwatch |
| 8 |
is an interactive utility for monitoring and recording packets that |
| 9 |
are dropped by the kernel. |
| 10 |
.SH OPTIONS |
| 11 |
.TP |
| 12 |
\fB\-l\fP \fImethod\fP | \fBlist\fP, \fB\-\-lmethod\fP \fImethod\fP | \fBlist\fP |
| 13 |
Select the translation method to use when a drop alert arrives. By default the |
| 14 |
raw instruction pointer of a drop location is output, but by the use of the \fB\-l\fP |
| 15 |
option, we can assign a translation method so that the instruction pointer can |
| 16 |
be translated into function names. Currently supported lookup \fImethods\fP are: |
| 17 |
.RS |
| 18 |
.TP |
| 19 |
.B list |
| 20 |
Show all supported methods. |
| 21 |
.TP |
| 22 |
.B kas |
| 23 |
Use \fI/proc/kallsyms\fP to lookup instruction pointers to function mappings. |
| 24 |
.RE |
| 25 |
.SH INTERACTIVE COMMANDS |
| 26 |
.TP |
| 27 |
.B start |
| 28 |
Tells the kernel to start reporting dropped packets. |
| 29 |
.TP |
| 30 |
.B stop |
| 31 |
Tells the kernel to discontinue reporting dropped packets. |
| 32 |
.TP |
| 33 |
.B exit |
| 34 |
Exits the \fBdropmonitor\fP program. |
| 35 |
.TP |
| 36 |
.B help |
| 37 |
Displays summary of all commands. |
| 38 |
.TP |
| 39 |
\fBset alertlimit\fP \fIvalue\fP |
| 40 |
Sets a triggerpoint to stop monitoring for dropped packets after \fIvalue\fP alerts |
| 41 |
have been received. |
| 42 |
.TP |
| 43 |
.BR "set alertmode " "{ " summary " | " packet " }" |
| 44 |
.I summary |
| 45 |
- Default mode. A summary of recent packet drops is sent to user space. The |
| 46 |
alert includes drop locations and number of drops in each location. |
| 47 |
|
| 48 |
.I packet |
| 49 |
- Each dropped packet is sent to user space. The alert includes the packet |
| 50 |
itself and various metadata such as drop location and timestamp. |
| 51 |
.TP |
| 52 |
.BI "set trunc " "len" |
| 53 |
Sets the truncation length. Reported packets will be truncated to length |
| 54 |
\fIlen\fP. This setting is only applicable when \fIalertmode\fP is set to |
| 55 |
\fIpacket\fP. By default packets are not truncated. A value of \fI0\fP disables |
| 56 |
truncation. |
| 57 |
.TP |
| 58 |
.BI "set queue " "len" |
| 59 |
Sets the queue length in the kernel. When \fIalertmode\fP is set to |
| 60 |
\fIpacket\fP, the kernel queues dropped packets in a per-CPU drop list before |
| 61 |
preparing a netlink message for each. This setting controls the queue's length. |
| 62 |
By default this is limited by the kernel to 1,000 packets. Increasing this |
| 63 |
value will increase the memory utilization of the system. |
| 64 |
.TP |
| 65 |
.BR "set sw " "{ " true " | " false " }" |
| 66 |
Enables or disables the monitoring of software originated drops. By default |
| 67 |
software originated drops are monitored. |
| 68 |
.TP |
| 69 |
.BR "set hw " "{ " true " | " false " }" |
| 70 |
Enables or disables the monitoring of hardware originated drops. By default |
| 71 |
hardware originated drops are not monitored. |
| 72 |
.TP |
| 73 |
.B show |
| 74 |
Query existing configuration from the kernel and show it. |
| 75 |
.TP |
| 76 |
.B stats |
| 77 |
Query statistics from the kernel and show it. |
| 78 |
|
| 79 |
.I "Tail dropped" |
| 80 |
- Number of packets that could not be enqueued to the per-CPU drop list(s). |