LMBENCH(8)

✨ LMBENCH ✨

okay so bestie, this is lmbench(8) β€” the system benchmarks page πŸ’… and honestly? it's giving main character energy for anyone who wants to know what their computer is actually doing.


🌸 NAME 🌸

lmbench β€” system benchmarks. that's it, that's the vibe πŸŽ€


πŸ’– DESCRIPTION πŸ’–

lmbench is a whole series of micro benchmarks, and their entire job is to measure basic operating system and hardware system metrics. no cap. the benchmarks fall into three general classes: bandwidth, latency, and ``other''. yes, "other" is literally in quotes in the original, it's iconic πŸ¦‹

most of the lmbench benchmarks use a standard timing harness described in timing(3), and they share a few standard options: parallelism, warmup, and repetitions. let's break it down:

  • parallelism β€” the number of benchmark processes to run in parallel. this is primarily useful when you're measuring the performance of SMP or distributed computers, and you can use it to evaluate the system's performance scalability πŸ‘‘
  • warmup β€” the minimum number of microseconds the benchmark should execute the benchmarked capability before it begins measuring performance. again, this is primarily useful for SMP or distributed systems, and it's intended to give the process scheduler time to "settle" and migrate processes to other processors. by measuring performance over various warmup periods, users may evaulate the scheduler's responsiveness ✨
  • repetitions β€” the number of measurements that the benchmark should take. this lets lmbench provide greater or lesser statistical strength to the results it reports. the default number of repetitions is 11 πŸ’«

🌈 BANDWIDTH MEASUREMENTS 🌈

data movement is fundamental to the performance on most computer systems. fr fr. the bandwidth measurements are intended to show how the system can move data. you can compare the results of the bandwidth metrics, but care must be taken to understand what it is that is being compared, bestie β€” don't just yolo the numbers 🫢

the bandwidth benchmarks can be reduced to two main components: operating system overhead and memory speeds. they report their results as megabytes moved per second, but please note that the data moved is not necessarily the same as the memory bandwidth used to move the data. consult the individual man pages for more info πŸ’œ

each bandwidth benchmark, with a brief overview of its intent:

  • bw_file_rd β€” reading and summing of a file via the read(2) interface.
  • bw_mem_cp β€” memory copy.
  • bw_mem_rd β€” memory reading and summing.
  • bw_mem_wr β€” memory writing.
  • bw_mmap_rd β€” reading and summing of a file via the memory mapping mmap(2) interface.
  • bw_pipe β€” reading of data via a pipe.
  • bw_tcp β€” reading of data via a TCP/IP socket.
  • bw_unix β€” reading data from a UNIX socket.

πŸ¦‹ LATENCY MEASUREMENTS πŸ¦‹

control messages are also fundamental to the performance on most computer systems. the latency measurements are intended to show how fast a system can be told to do some operation. the results of the latency metrics can be compared to each other for the most part β€” in particular, the pipe, rpc, tcp, and udp transactions are all identical benchmarks carried out over different system abstractions πŸ‘€

latency numbers here should mostly be in microseconds per operation. remember that bestie, it matters πŸ’…
  • lat_connect β€” the time it takes to establish a TCP/IP connection.
  • lat_ctx β€” context switching; the number and size of processes is varied.
  • lat_fcntl β€” fcntl file locking.
  • lat_fifo β€” ``hot potato'' transaction through a UNIX FIFO.
  • lat_fs β€” creating and deleting small files.
  • lat_pagefault β€” the time it takes to fault in a page from a file.
  • lat_mem_rd β€” memory read latency (accurate to the ~2-5 nanosecond range, reported in nanoseconds).
  • lat_mmap β€” time to set up a memory mapping.
  • lat_ops β€” basic processor operations, such as integer XOR, ADD, SUB, MUL, DIV, and MOD, and float ADD, MUL, DIV, and double ADD, MUL, DIV.
  • lat_pipe β€” ``hot potato'' transaction through a Unix pipe.
  • lat_proc β€” process creation times (various sorts).
  • lat_rpc β€” ``hot potato'' transaction through Sun RPC over UDP or TCP.
  • lat_select β€” select latency
  • lat_sig β€” signal installation and catch latencies. also protection fault signal latency.
  • lat_syscall β€” non trivial entry into the system.
  • lat_tcp β€” ``hot potato'' transaction through TCP.
  • lat_udp β€” ``hot potato'' transaction through UDP.
  • lat_unix β€” ``hot potato'' transaction through UNIX sockets.
  • lat_unix_connect β€” the time it takes to establish a UNIX socket connection.

πŸŽ€ OTHER MEASUREMENTS πŸŽ€

  • mhz β€” processor cycle time
  • tlb β€” TLB size and TLB miss latency
  • line β€” cache line size (in bytes)
  • cache β€” cache statistics, such as line size, cache sizes, memory parallelism.
  • stream β€” John McCalpin's stream benchmark
  • par_mem β€” memory subsystem parallelism. how many requests can the memory subsystem service in parallel, which may depend on the location of the data in the memory hierarchy.
  • par_ops β€” basic processor operation parallelism.

πŸ‘‘ SEE ALSO πŸ‘‘

bargraph(1), graph(1), lmbench(3), results(3), timing(3), bw_file_rd(8), bw_mem_cp(8), bw_mem_wr(8), bw_mmap_rd(8), bw_pipe(8), bw_tcp(8), bw_unix(8), lat_connect(8), lat_ctx(8), lat_fcntl(8), lat_fifo(8), lat_fs(8), lat_http(8), lat_mem_rd(8), lat_mmap(8), lat_ops(8), lat_pagefault(8), lat_pipe(8), lat_proc(8), lat_rpc(8), lat_select(8), lat_sig(8), lat_syscall(8), lat_tcp(8), lat_udp(8), lmdd(8), par_ops(8), par_mem(8), mhz(8), tlb(8), line(8), cache(8), stream(8)


πŸ’œ ACKNOWLEDGEMENT πŸ’œ

funding for the development of these tools was provided by Sun Microsystems Computer Corporation 🫢

a large number of people have contributed to the testing and development of lmbench. every single one of them, legends ✨


πŸ“œ COPYING πŸ“œ

the benchmarking code is distributed under the GPL with additional restrictions, see the COPYING file. read it bestie, it's important πŸ’…


🌟 AUTHOR 🌟

Carl Staelin and Larry McVoy

comments, suggestions, and bug reports are always welcome. like actually, they want them, slide into their mentions πŸ™ˆ


and that's the whole page, periodt πŸŽ€ this LMBENCH(8) page came from the LMBENCH manual, and the fine print at the bottom reads (c)1994-2000 Larry McVoy and Carl... $Date$ β€” so yeah, copyright 1994-2000 by Larry McVoy and Carl, and there's a $Date$ placeholder where the date lives. iconic behavior, we love a version-control keyword πŸ˜­πŸ’–