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 Β© 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 πŸ’…βœ¨πŸŽ€