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