LAT_UNIX_CONNECT(8)
π lat_unix_connect β ok bestie, it's giving UNIX socket speedrun
so this is a page from the LMBENCH manual, section 8 (that's the sysadmin / maintenance girlies section, iykyk). it's called lat_unix_connect and it's literally about measuring how long it takes to connect to another process over a UNIX socket. tiny numbers, big drama. let's get into it π«Ά
β¨ NAME β¨
lat_unix_connect β measure interprocess connection latency via UNIX sockets π
πΈ SYNOPSIS πΈ
lat_unix_connect -s
lat_unix_connect [ -P <parallelism> ] [ -W <warmups> ] [ -N <repetitions> ]
lat_unix_connect -S
π¦ DESCRIPTION π¦
okay so lat_unix_connect is a client/server program that measures interprocess connection latencies. it's a whole two-person operation, main character energy on both sides. π
what it actually times is the creation and connection of an AF_UNIX socket to a local server β so like, how long does it take to make a socket and slide into the server's DMs. π
and bestie, lat_connect has three forms of usage, not one, not two, three:
- as a server (
-s) π - as a client (
lat_connect) β¨ - as a shutdown (
lat_connect -S) π
pick your vibe, run it, get your number.
π₯ OUTPUT π₯
the reported time is in microseconds per connection. microseconds. that's the whole point β we're counting the tiny tiny slivers of time here, fr fr.
the output format is like so:
UNIX connection cost: 1006 microseconds
so yeah, 1006 microseconds, that's the connection cost. slay. π
π SEE ALSO π
go read that one too, it's the parent page, the mother of the whole fam. π
π AUTHOR π
Carl Staelin and Larry McVoy β¨
and the official word on feedback, copy-pasted straight from the source because I'm not about to paraphrase the authors:
Comments, suggestions, and bug reports are always welcome.
they literally want to hear from you. yes, even about the bugs. especially about the bugs. π
π the sign-off π
okay that's the whole page!! π«Ά this one lives in the LMBENCH manual, it's LAT_UNIX_CONNECT(8), and the copyright line says (c)1994 Larry McVoy, with the date field being $Date$. iconic behavior from 1994 honestly. π now go forth and measure your sockets, bestie β no cap. π¦βπ
π¦ 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