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_mmap - costs of mmapping and unmmapping varying file sizes

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_MMAP(8)

Description

lat_mmap  times  how  fast  a mapping can be made and unmade.  This is useful because it is a fundamental
       part of processes that use SunOS style shared libraries (the libraries are mapped in at process start  up
       time and unmapped at process exit).

       The benchmark maps in and unmaps the first size bytes of the file repeatedly and reports the average time
       for one mapping/unmapping.

       The  size  specification  may  end  with ``k'' or ``m'' to mean kilobytes (* 1024) or megabytes (* 1024 *
       1024).

Name

       lat_mmap - costs of mmapping and unmmapping varying file sizes

Output

       Output format is "%0.2f%d\n",megabytes,usecs, i.e.,

       8.001200

See Also

lmbench(8).

Synopsis

lat_mmap [ -P<parallelism> ] [ -W<warmups> ] [ -N<repetitions> ] sizefile

See Also