lat_proc.8 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. .\" $Id$
  2. .TH LAT_PROC 8 "$Date$" "(c)1994 Larry McVoy" "LMBENCH"
  3. .SH NAME
  4. lat_proc \- process creation tests
  5. .SH SYNOPSIS
  6. .B lat_proc
  7. .SH DESCRIPTION
  8. .B lat_proc
  9. creates processes in three different forms, each more expensive than the last.
  10. The purposes is to measure the time that it takes to create a basic thread
  11. of control.
  12. .PP
  13. The forms are listed and described below:
  14. .TP 20
  15. Process fork+exit
  16. The time it takes to split a process into two (nearly) identical copies
  17. and have one exit. This is how new processes are created but is not
  18. very useful since both processes are doing the same thing.
  19. .TP
  20. Process fork+execve
  21. The time it takes to create a new process and have that new process run a new
  22. program. This is the inner loop of all shells (command interpreters).
  23. .TP
  24. Process fork+/bin/sh -c
  25. The time it takes to create a new process and have that new process run a new
  26. program by asking the system shell to find that program and run it. This is
  27. how the C library interface called \f(CBsystem\fP is implemented. It is the
  28. most general and the most expensive.
  29. .SH OUTPUT
  30. Output is in microseconds per operation like so:
  31. .sp
  32. .ft CB
  33. .nf
  34. Process fork+exit: 6054 microseconds
  35. Process fork+execve: 11212 microseconds
  36. Process fork+/bin/sh -c: 44346 microseconds
  37. .br
  38. .fi
  39. .ft
  40. .SH ACKNOWLEDGEMENT
  41. Funding for the development of
  42. this tool was provided by Sun Microsystems Computer Corporation.
  43. .SH "SEE ALSO"
  44. lmbench(8), fork(2), execlp(2), execve(2), wait(2).