xref: /freebsd/tools/tools/kttcp/README (revision c697fb7f)
1$FreeBSD$
2
3This is a port of Jason Thorpe's kttcp tool for testing network
4performance for in-kernel applications (like NFS).  The tool consists
5of a loadable module and a small user-mode application.  Beware
6that you should match the kernel module to the kernel it is to be
7used with.  By default SYSDIR is set to /usr/src/sys in Makefile.
8You may want to change that.
9
10To use the tool do something like on each of two machines:
11
121. make
132. su; make install (installs module and kttcp in /usr/local/bin)
143. kldload kttcp
15
16Then:
17
184. kttcp -r on one machine
195. kttcp -t foo on the other machine, where foo is the
20   machine where #4 was done.
21
22kttcp w/o arguments gives usage.  Otherwise the source is your
23friend.  Beware that the kernel code must mimic soreceive and sosend
24for results to be meaningful.
25