LAT_FCNTL(8)
π LAT_FCNTL β the fcntl file locking benchmark, bestie edition
okay so this one lives in the LMBENCH manual, section 8 (that's the sysadmin/daemon section, iykyk π«Ά). it's a whole little tool for measuring how long file locking takes, and honestly? it's giving "hot potato but make it syscalls." π₯
β¨ NAME β¨
lat_fcntl β the fcntl file locking benchmark π
πΈ SYNOPSIS πΈ
lat_ctx [ -P <parallelism> ] [ -W <warmups> ] [ -N <repetitions> ]
no cap, that's literally what the page says. yes, it says lat_ctx. we do not editorialise. we reproduce. π
π¦ DESCRIPTION π¦
so lat_fcntl is a client/server program that measures file locking latencies. that's the whole job. that's the mission. β¨
the way it works is adorable actually: the benchmark alternately locks and unlocks files so that only <b>one</b> of the client or the server is running at any given time. it's basically the ``hot potato'' style of message passing benchmark, except instead of a potato it's a lock and instead of passing it you're grabbing it and yeeting it back. π₯β‘οΈπ
and that's it! no other work is done in the processes. they lock, they unlock, they vibe. nothing else. periodt. π
π ACKNOWLEDGEMENT π
funding for the development of this tool was provided by Sun Microsystems Computer Corporation. iconic of them, truly. ππ
π₯ SEE ALSO π₯
the whole lat-squad, fr fr. go read them too π«Ά
π AUTHOR π
Carl Staelin and Larry McVoy
and they said, and I quote, comments, suggestions, and bug reports are always welcome. so if you've got thoughts, spill them, bestie β they actually want to hear it. π¬β¨
okay so quick footnote energy: this whole thing is (c)1994-2000 Carl Staelin and Lar... (yes, the original literally trails off mid-name, and we are respecting it, no notes π) and the page carries that classic$Date$placeholder vibe, stamped ontoLAT_FCNTL(8).
stay locked in, but like, literally. π ππ§π
π¦ 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