lat_tcp.8 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. .\" $Id$
  2. .TH LAT_TCP 8 "$Date$" "(c)1994 Larry McVoy" "LMBENCH"
  3. .SH NAME
  4. lat_tcp \- measure interprocess communication latency via TCP/IP
  5. .SH SYNOPSIS
  6. .B lat_tcp
  7. .I -s
  8. .sp .5
  9. .B lat_tcp
  10. .I hostname
  11. .sp .5
  12. .B lat_tcp
  13. .I -hostname
  14. .SH DESCRIPTION
  15. .B lat_tcp
  16. is a client/server program that measures interprocess
  17. communication latencies. The benchmark passes a token back and forth between
  18. the two processes (this sort of benchmark is frequently referred to as a
  19. ``hot potato'' benchmark). No other work is done in the processes.
  20. .PP
  21. .B lat_tcp
  22. has three forms of usage: as a server (lat_tcp -s),
  23. as a client (lat_tcp localhost), and
  24. as a shutdown (lat_tcp -localhost).
  25. .SH OUTPUT
  26. The reported time is in microseconds per round trip and includes the total
  27. time, i.e., the context switching overhead is included.
  28. Output format is like so
  29. .sp
  30. .ft CB
  31. TCP latency using localhost: 700 microseconds
  32. .ft
  33. .SH ACKNOWLEDGEMENT
  34. Funding for the development of
  35. this tool was provided by Sun Microsystems Computer Corporation.
  36. .SH "SEE ALSO"
  37. lmbench(8), read(2), write(2), socket(2), bind(2), connect(2).