Annotation of src/usr.bin/tcpbench/tcpbench.1, Revision 1.2
1.2 ! jmc 1: .\" $OpenBSD: tcpbench.1,v 1.1.1.1 2008/05/09 00:54:07 djm Exp $
1.1 djm 2: .\"
3: .\" Copyright (c) 2008 Damien Miller <djm@mindrot.org>
4: .\"
5: .\" Permission to use, copy, modify, and distribute this software for any
6: .\" purpose with or without fee is hereby granted, provided that the above
7: .\" copyright notice and this permission notice appear in all copies.
8: .\"
9: .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10: .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11: .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12: .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13: .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14: .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15: .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16: .\"
1.2 ! jmc 17: .Dd $Mdocdate: May 9 2008 $
1.1 djm 18: .Os
19: .Dt TCPBENCH 1
20: .Sh NAME
21: .Nm tcpbench
22: .Nd TCP benchmarking and measurement tool
23: .Sh SYNOPSIS
24: .Nm
25: .Fl l
26: .Nm
27: .Op Fl v
1.2 ! jmc 28: .Op Fl B Ar buf
1.1 djm 29: .Op Fl k Ar kvars
30: .Op Fl p Ar port
31: .Op Fl r Ar rate
32: .Op Fl S Ar space
33: .Ar hostname
34: .Nm
35: .Fl s
36: .Op Fl v
1.2 ! jmc 37: .Op Fl B Ar buf
1.1 djm 38: .Op Fl k Ar kvars
39: .Op Fl p Ar port
40: .Op Fl r Ar rate
41: .Op Fl S Ar space
42: .Sh DESCRIPTION
43: .Nm
44: is a small tool that performs throughput benchmarking and concurrent
45: sampling of kernel network variables.
46: .Pp
47: .Nm
48: is run as a client/server pair.
49: The server must be invoked with the
50: .Fl s
51: flag, which will cause it to listen for incoming connections.
52: The client must be invoked with the
53: .Ar hostname
54: of a listening server to connect to.
55: .Pp
56: Once connected, the client will send TCP traffic as fast as possible to
57: the server.
58: Both the client and server will periodically display throughput
59: statistics along with any kernel variables the user has selected to
60: sample (using the
61: .Fl k
62: option).
63: A list of available kernel variables may be obtained using the
64: .Fl l
65: option.
66: .Pp
67: The options are as follows:
68: .Bl -tag -width Ds
1.2 ! jmc 69: .It Fl B Ar buf
1.1 djm 70: Specify the size of the internal write buffer used by
71: .Nm .
72: .It Fl k Ar kvars
1.2 ! jmc 73: Specify one or more kernel variables to monitor; multiple variables must be
1.1 djm 74: separated with commas.
75: The default is not to monitor any variables.
1.2 ! jmc 76: .It Fl l
! 77: List the name of kernel variables available for monitoring and exit.
1.1 djm 78: .It Fl p Ar port
79: Specify the port used for the TCP test stream (default: 12345).
1.2 ! jmc 80: .It Fl r Ar rate
! 81: Specify the statistics reporting rate in milliseconds (default: 1000).
! 82: .It Fl S Ar space
! 83: Set the size of the socket buffer used for the TCP test stream.
! 84: On the client this option will resize the send buffer;
! 85: on the server it will resize the receive buffer.
1.1 djm 86: .It Fl s
87: Place
88: .Nm
89: in server mode, where it will listen on all interfaces for incoming
90: connections.
91: .It Fl v
92: Display verbose output.
93: If specified more than once, increase the detail of information displayed.
94: .El
95: .Sh SEE ALSO
1.2 ! jmc 96: .Xr netstat 1 ,
1.1 djm 97: .Xr pstat 8