lat_pagefault.8 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. .\" $Id$
  2. .TH LAT_PAGEFAULT 8 "$Date$" "(c)1994 Larry McVoy" "LMBENCH"
  3. .SH NAME
  4. lat_pagefault \- measure the cost of pagefaulting pages from a file
  5. .SH SYNOPSIS
  6. .B lat_pagefault
  7. .I file
  8. [
  9. .I file....
  10. ]
  11. .SH DESCRIPTION
  12. .B lat_pagefault
  13. times how fast a page of a file can be faulted in. The file is flushed from
  14. (local) memory by using the \f(CBmsync()\fP interface with the invalidate
  15. flag set. (Note that NFS does not send this over the wire so this makes
  16. for a handy way to measure the cost of going across the wire.)
  17. .PP
  18. The benchmark maps in the entire file and the access pages backwards using
  19. a stride of 256K kilobytes.
  20. .SH OUTPUT
  21. Output format is below; it prints the average cost of page faulting a page.
  22. .sp
  23. .ft CB
  24. Pagefaults on <file>: <d> usecs
  25. .ft
  26. .SH BUGS
  27. Using a stride of 256K may be a bad idea because SCSI controllers
  28. may have caches bigger than that.
  29. .SH ACKNOWLEDGEMENT
  30. Funding for the development of
  31. this tool was provided by Sun Microsystems Computer Corporation.
  32. .SH "SEE ALSO"
  33. lmbench(8), mmap(2), munmap(2).