LAT_PAGEFAULT(8)
π NAME π
lat_pagefault β bestie, this is the tool that measures the cost of pagefaulting pages from a file β¨
It lives in the LMBENCH family, iykyk π
πΈ SYNOPSIS πΈ
lat_pagefault [ -P <parallelism> ] [ -W <warmups> ] [ -N <repetitions> ]
file [ file.... ]
π¦ DESCRIPTION π¦
okay so here's the vibe: lat_pagefault times how fast a page of a file can be faulted in π«Ά
How does it make that happen? The file gets flushed from (local) memory by using the msync() interface with the invalidate flag set β¨ And like, heads up bestie: NFS does not send this over the wire, which honestly makes this a super handy way to measure the cost of going across the wire π no cap.
The benchmark maps in the entire file and then accesses pages backwards using a stride of 256K kilobytes π
β OUTPUT β
The output format is below, and it prints the average cost of page faulting a page π
Pagefaults on <file>: <d> usecs
π BUGS π
ngl, using a stride of 256K may be a bad idea because SCSI controllers may have caches bigger than that π fr fr, that's the whole warning.
π ACKNOWLEDGEMENT π
Funding for the development of this tool was provided by Sun Microsystems Computer Corporation π iconic of them honestly.
π₯ SEE ALSO π₯
π AUTHOR π
Carl Staelin and Larry McVoy π«Ά
Comments, suggestions, and bug reports are always welcome π (yes, actually β slide into their mentions).
(c)1994 Larry McVoy Β· $Date$ Β· LMBENCH β ok that's the whole page bestie, ty for coming to my ted talk, go measure some pagefaults, slay π β¨π
π¦ where this page comes from
- debian bookworm: lmbench 3.0-a9+debian.1-6
- debian trixie: lmbench 3.0-a9+debian.1-9
- ubuntu jammy: lmbench 3.0-a9+debian.1-6
- ubuntu noble: lmbench 3.0-a9+debian.1-6build3
- ubuntu questing: lmbench 3.0-a9+debian.1-9
- ubuntu resolute: lmbench 3.0-a9+debian.1-10
- ubuntu stonking: lmbench 3.0-a9+debian.1-10
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms