bw_unix.8 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. .\" $Id$
  2. .TH BW_UNIX 8 "$Date$" "(c)1994 Larry McVoy" "LMBENCH"
  3. .SH NAME
  4. bw_unix \- time data movement through Unix stream sockets
  5. .SH SYNOPSIS
  6. .B bw_unix
  7. .SH DESCRIPTION
  8. .B bw_unix
  9. creates a Unix stream socket between two processes and moves 10MB
  10. through the stream in 64KB chunks (note that sockets are typically
  11. sized smaller than that).
  12. .SH OUTPUT
  13. Output format is \f(CB"AF_UNIX sock stream bandwidth: %0.2f MB/sec\\n", megabytes_per_second\fP, i.e.,
  14. .sp
  15. .ft CB
  16. AF_UNIX sock stream bandwidth: 4.87 MB/sec
  17. .ft
  18. .SH MEMORY UTILIZATION
  19. This benchmark can move up to six times the requested memory per process.
  20. There are two processes, the sender and the receiver.
  21. Most Unix systems implement the read/write system calls as a bcopy
  22. from/to kernel space to/from user space.
  23. Bcopy will use 2-3 times as much memory bandwidth: there is one read
  24. from the source and a write to the destionation.
  25. The write usually results in a cache line read and then a write back of
  26. the cache line at some later point.
  27. Memory utilization might be reduced by 1/3 if the processor
  28. architecture implemented "load cache line" and "store cache line"
  29. instructions (as well as getcachelinesize).
  30. .SH ACKNOWLEDGEMENT
  31. Funding for the development of
  32. this tool was provided by Sun Microsystems Computer Corporation.
  33. .SH "SEE ALSO"
  34. lmbench(8).