lat_connect.8 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. .\" $Id$
  2. .TH LAT_CONNECT 8 "$Date$" "(c)1994 Larry McVoy" "LMBENCH"
  3. .SH NAME
  4. lat_connect \- measure interprocess connection latency via TCP/IP
  5. .SH SYNOPSIS
  6. .B lat_connect
  7. .I -s
  8. .sp .5
  9. .B lat_connect
  10. .I hostname
  11. .sp .5
  12. .B lat_connect
  13. .I -hostname
  14. .SH DESCRIPTION
  15. .B lat_connect
  16. is a client/server program that measures interprocess
  17. connection latencies. The benchmark times the creation and connection of
  18. an AF_INET (aka TCP/IP) socket to a remote server. Care is take that the
  19. connection time does not include any other overhead, such as the
  20. \fIgethostbyname()\fP or remote port lookups since these add more overhead
  21. than the connection establishment itself.
  22. .PP
  23. .B lat_connect
  24. has three forms of usage: as a server (-s),
  25. as a client (lat_connect localhost),
  26. and as a shutdown (lat_connect -localhost).
  27. .SH OUTPUT
  28. The reported time is in microseconds per connection.
  29. Output format is like so
  30. .sp
  31. .ft CB
  32. TCP/IP connection cost to localhost: 1006 microseconds
  33. .ft
  34. .SH "SEE ALSO"
  35. lmbench(8), lat_unix_connect(8), socket(2), bind(2), listen(2), connect(2).