logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

lat_proc - process creation tests

Acknowledgement

       Funding for the development of this tool was provided by Sun Microsystems Computer Corporation.

Author

       Carl Staelin and Larry McVoy

       Comments, suggestions, and bug reports are always welcome.

(c)1994 Larry McVoy                                  $Date$                                          LAT_PROC(8)

Description

lat_proc  creates processes in three different forms, each more expensive than the last.  The purposes is
       to measure the time that it takes to create a basic thread of control.

       The forms are listed and described below:

       Process fork+exit   The time it takes to split a process into two (nearly) identical copies and have  one
                           exit.   This  is  how  new  processes  are  created but is not very useful since both
                           processes are doing the same thing.

       Process fork+execve The time it takes to create a new process  and  have  that  new  process  run  a  new
                           program.  This is the inner loop of all shells (command interpreters).

       Process fork+/bin/sh -c
                           The time it takes to create a new process and have that new process run a new program
                           by  asking  the  system  shell  to  find  that program and run it.  This is how the C
                           library interface called system is implemented.  It is the most general and the  most
                           expensive.

Name

       lat_proc - process creation tests

Output

       Output is in microseconds per operation like so:

       Processfork+exit:6054microsecondsProcessfork+execve:11212microsecondsProcessfork+/bin/sh-c:44346microseconds

See Also

lmbench(8).

Synopsis

lat_proc [ -P<parallelism> ] [ -W<warmups> ] [ -N<repetitions> ] procedure|fork|exec|shell

See Also