lat_mmap.8 971 B

1234567891011121314151617181920212223242526272829303132
  1. .\" $Id$
  2. .TH LAT_MMAP 8 "$Date$" "(c)1994 Larry McVoy" "LMBENCH"
  3. .SH NAME
  4. lat_mmap \- costs of mmapping and unmmapping varying file sizes
  5. .SH SYNOPSIS
  6. .B lat_mmap
  7. .I size
  8. .I file
  9. .SH DESCRIPTION
  10. .B lat_mmap
  11. times how fast a mapping can be made and unmade. This is useful because it
  12. is a fundemental part of processes that use SunOS style shared libraries
  13. (the libraries are mapped in at process start up time and unmapped at
  14. process exit).
  15. .PP
  16. The benchmark maps in and unmaps the first \fIsize\fP bytes of the file
  17. repeatedly and reports the average time for one mapping/unmapping.
  18. .PP
  19. The size
  20. specification may end with ``k'' or ``m'' to mean
  21. kilobytes (* 1024) or megabytes (* 1024 * 1024).
  22. .SH OUTPUT
  23. Output format is \f(CB"%0.2f %d\\n", megabytes, usecs\fP, i.e.,
  24. .sp
  25. .ft CB
  26. 8.00 1200
  27. .ft
  28. .SH ACKNOWLEDGEMENT
  29. Funding for the development of
  30. this tool was provided by Sun Microsystems Computer Corporation.
  31. .SH "SEE ALSO"
  32. lmbench(8), open(2), mmap(2), munmap(2).