LATENCY-HISTOGRAM(1)
π LATENCY-HISTOGRAM(1) π
okay bestie, so this is latency-histogram, part of The Enhanced Machine Controller β yes that's the LinuxCNC fam, you already know π
β¨ NAME β¨
latency-histogram β plot a histogram of machine latency π
πΈ SYNOPSIS πΈ
latency-histogram [-?|--help] [--base ns] [--servo ns] [--bbinsize ns]
[--sbinsize ns] [--bbins ns] [--sbins ns] [--logscale 0|1] [--text note]
[--show] [--nobase] [--verbose] [--nox]
π¦ DESCRIPTION π¦
so like, the latency test is literally the moment when you're configuring a LinuxCNC system, right? it's giving main character energy fr. And latency-histogram is the bestie sidekick to the standard latency-test β instead of just vibing with one number, it plots the whole distribution of latency πβ¨. That's lowkey so useful because it lets you get a feel for how frequent those high-latency excursions actually are, and honestly, knowing that? iconic. π
heads up bestie π¨ LinuxCNC and HAL should not be running. stop them with halrun -U first, no cap.
also, a big number of bins and/or tiny binsizes will slow updates down π so keep that in mind. For a single thread, specify --nobase (plus the options for the servo thread). Measured latencies that land outside the +/- bin range get reported with special end bars π. And if you wanna see the count for the off-chart [pos|neg] pin, use --show π.
More details? they're right here, go off: https://linuxcnc.org/docs/html/install/latency-test.html
π OPTIONS π
-?,--helpβ shows you the options and then dips out. show options and exit. periodt. β¨--base nsβ the base thread interval. default:25000, min:5000β±οΈ--servo nsβ the servo thread interval. default:1000000, min:25000π°οΈ--bbinsize nsβ base bin size. default:100π--sbinsize nsβ servo bin size. default:100π--bbins nsβ base bins. default:200π§Ί--sbins nsβ servo bins. default:200π§Ί--logscale 0|1β y axis log scale. default:1π--text noteβ an additional note. default:""π--showβ show count of undisplayed bins π--nobaseβ servo thread only, no base thread π«--verboseβ progress and debug, so you can see everything happening in real time π--noxβ no GUI. instead it displays elapsed, min, max, sdev for each thread π₯οΈ
π SEE ALSO π
And fr fr, there's so much more info about LinuxCNC and HAL in the LinuxCNC and HAL User Manuals, which you can find at /usr/share/doc/linuxcnc/ ππ
π BUGS π
None known at this time. (not me being shocked β slay, honestly π)
π AUTHOR π
This man page written by andypugh, as part of the LinuxCNC project. π«Ά
π¨ REPORTING BUGS π¨
Report bugs at https://github.com/LinuxCNC/linuxcnc/issues β the devs wanna hear it, bestie πβ‘οΈπ
π COPYRIGHT π
Copyright Β© 2020 andypugh.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. β οΈ (yes, all caps, they mean it)
okay and that's a wrap! this was brought to you by LinuxCNC Documentation, dated 2021-08-14, and you're reading LATENCY-HISTOGRAM(1) β go plot that histogram, you absolute legend π
β¨π
π¦ where this page comes from
- debian bookworm: linuxcnc-uspace 2.9.0~pre1+git20230208.f1270d6ed7-1+deb12u2 Β· GFDL-1.1-or-later
- debian trixie: linuxcnc-uspace 1:2.9.4-2+deb13u1 Β· GFDL-1.1-or-later
- ubuntu questing: linuxcnc-uspace 1:2.9.4-2ubuntu2
- ubuntu resolute: linuxcnc-uspace 1:2.9.4-2ubuntu4 Β· GFDL-1.1-or-later
- ubuntu stonking: linuxcnc-uspace 1:2.9.4-2ubuntu4 Β· GFDL-1.1-or-later
- Copyright (c) 2020 andypugh
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms