LAT_UNIX(8)
π LAT_UNIX β like, the manual page bestie
okay so this is lat_unix(8), and it lives in the LMBENCH manual, section 8, the big-kid system-admin section, periodt. πΈ
β¨ NAME β¨
lat_unix β measure interprocess communication latency via UNIX sockets π¦
π SYNOPSIS π
lat_unix [ -m <message size> ] [ -P <parallelism> ] [ -W <warmups> ] [
-N <repetitions> ]
yeah that's the whole vibe check. the flags are right there, no notes. π
π DESCRIPTION π
so lat_unix is a client/server program and its entire job is measuring interprocess communication latencies. that's it. that's the girl. β¨
here's the tea: the benchmark passes a message back and forth between the two processes. and bestie, this style of benchmark is frequently referred to as a ``hot potato'' benchmark π₯π₯ β because the message just keeps getting yeeted back and forth and nobody gets to hold it.
and here's the part that's lowkey iconic: no other work is done in the processes. nothing. zero. the processes are just out here passing the potato. main character energy, no side quests. π
π OUTPUT π
the reported time is in microseconds per round trip, and it includes the total time β meaning the context switching overhead is included too, ngl that part matters. π
the output format is like so:
AF_UNIX sock stream latency: 700 microseconds
that's it. that's the whole flex. π«Ά
π ACKNOWLEDGEMENT π
funding for the development of this tool was provided by Sun Microsystems Computer Corporation. so like, thank you Sun Microsystems, we appreciate you fr fr πβ¨
π SEE ALSO π
go read those too, the whole family is slay π§π
π AUTHOR π
Carl Staelin and Larry McVoy βοΈ
comments, suggestions, and bug reports are always welcome β like, genuinely, they want to hear from you, don't be shy bestie π
π friendly reminder that everything above is exactly what the page says, no cap. i'm not out here inventing options or guessing at behaviour, i would never. π
and that's the whole page!! π written by Carl Staelin and Larry McVoy, copyright (c)1994-2000, date stamp $Date$, and yes we're still in LAT_UNIX(8) the whole time. bye bestie, go measure some latency π
ππ¦
π¦ 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