LAT_RPC(8)
πΈ LAT_RPC π
okay bestie, so this is lat_rpc(8) β it lives in the LMBENCH manual, and it's about to measure how fast two processes can gossip with each other over Sun RPC. no cap. π«Ά
β¨ NAME β¨
lat_rpc β measure interprocess communication latency via Sun RPC π₯
π SYNOPSIS π
lat_rpc -s
lat_rpc [ -P <parallelism> ] [ -W <warmups> ] [ -N <repetitions> ] [ -p tcp|udp ] hostname [ udp|tcp ]
lat_rpc -S hostname
π¦ DESCRIPTION π¦
okay so lat_rpc is a client/server situation β one program, two moods β and its whole personality is measuring interprocess communication latencies. the benchmark passes a token back and forth between the two processes. and if that sounds like a game, it literally is one: this kind of benchmark is frequently called a "hot potato" benchmark. π₯β¨
and the way that it does nothing else? no other work is done in the processes. that's the entire job. iconic honestly.
the point of all this is that you can compare it against the TCP and UDP forms of the same benchmark to accurately see the cost of using RPC versus the cost of using plain old TCP or UDP sockets. and ngl, it's worth noting that the RPC form is passing back and forth a single byte, not some long complicated record. one byte!! the audacity of it. π
lat_rpc has three forms of usage:
- as a server (
-s) π - as a client (
lat_rpc localhost) π - as a shutdown (
lat_rpc -S localhost) πͺ
the client form may specify the protocol over which the RPCs are performed. the default is to measure performance for both udp and tcp. so you get both vibes unless you ask for one.
π OUTPUT π
the reported time is in microseconds per round trip and it includes the total time, i.e., the context switching overhead is includeded. (yes bestie, that typo is canon, we don't fix the canon π )
output format is like so:
RPC/udp latency using localhost: 1344 microseconds
RPC/tcp latency using localhost: 2089 microseconds
π ACKNOWLEDGEMENT π
funding for the development of this tool was provided by Sun Microsystems Computer Corporation. we love a sponsor moment. π«Άβ¨
πΈ SEE ALSO πΈ
π AUTHOR π
Carl Staelin and Larry McVoy
comments, suggestions, and bug reports are always welcome. fr fr, they want to hear from you. π
no notes, just vibes:(c)1994 Larry McVoy,$Date$, and this whole thing is served fresh from the LMBENCH manual. π slay, go measure some latency bestie π π¦
π¦ 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