#linuxcnc Logs

Mar 29 2025

#linuxcnc Calendar

01:52 AM Deejay: moin
02:17 AM lcnc-relay: <meisterdippel@> moin
05:04 AM -!- #linuxcnc mode set to +v by ChanServ
07:22 AM lcnc-relay: <Lcvette> @irc_liberachat_pcw-home:jauriarts.org: quick question, I get a latency warning at start up but my latency numbers are spectacular, i have been ignoring it but i am never filled with confidence when I see it at start up. I was wondering what might cause the message? and if there is something i could monitor at startup to identify any culprits to fix?
07:38 AM lcnc-relay: <Lcvette> https://imgur.com/a/DlDQGRh
07:43 AM lcnc-relay: <Lcvette> https://imgur.com/a/XwaTCRR
07:43 AM lcnc-relay: <Lcvette> pretty much just stays here very stable
07:44 AM lcnc-relay: <Lcvette> 6glx gears a hd youtube, browser open, screengrabs, element chat running
07:53 AM lcnc-relay: <Lcvette> any thoughts appreciated!
08:33 AM Tom_L: lcvette, you want a heavy load test for latency try running unigine-heaven on extreme setting with histogram
08:33 AM Tom_L: glxgears doesn't load as much as you might think
08:35 AM lcnc-relay: <Lcvette> what is unigene-heaven
08:35 AM lcnc-relay: <Lcvette> a special video?
08:35 AM Tom_L: video graphic test
08:36 AM Tom_L: https://forum.linuxcnc.org/9-installing-linuxcnc/53163-new-and-working-rtai-debs-for-2-9?start=60
08:36 AM Tom_L: some results i got with the new RTAI i was testing
08:37 AM Tom_L: https://benchmark.unigine.com/heaven
08:37 AM lcnc-relay: <Lcvette> rtai doesn't support ethernet mesa though i thought
08:38 AM Tom_L: no that's right but that's the kernel i was testing
08:38 AM Tom_L: if you want a real load test try it
08:40 AM lcnc-relay: <Lcvette> ok
08:50 AM -!- #linuxcnc mode set to +v by ChanServ
09:12 AM lcnc-relay: <Lcvette> https://imgur.com/a/6uySlzn
09:12 AM lcnc-relay: <Lcvette> getting ready to test the heven thing
09:13 AM lcnc-relay: <Lcvette> i tried setting youtube to 2160 res and this popped p in the lateny test terminal
09:13 AM lcnc-relay: <Lcvette> never seen that before
09:14 AM Tom_L: what frame rate are you expecting?
09:14 AM lcnc-relay: <Lcvette> https://imgur.com/a/frVgWYX
09:15 AM lcnc-relay: <Lcvette> i ran glx gear up to 0
09:15 AM lcnc-relay: <Lcvette> 10
09:15 AM lcnc-relay: <Lcvette> not sure
09:16 AM Tom_L: you will notice a difference with the other test
09:17 AM Tom_L: i didn't run it full screen but did increase the window size quite a bit
09:17 AM lcnc-relay: <Lcvette> downloading now
09:17 AM Tom_L: set to extreme
09:17 AM lcnc-relay: <Lcvette> ok
09:18 AM Tom_L: you could also run stress-ng
09:18 AM -!- #linuxcnc mode set to +v by ChanServ
09:18 AM Tom_dev: sudo apt install stress-ng && stress-ng --cpu 4 --vm 4 --vm-bytes 1G --timeout 60s
09:20 AM lcnc-relay: <Lcvette> how do i run heaven
09:21 AM lcnc-relay: <Lcvette> Unigine_Heaven-4.0.run
09:21 AM Tom_dev: that will unpack it to a folder
09:21 AM Tom_dev: cd to that
09:21 AM Tom_dev: click on heaven
09:22 AM Tom_dev: 'run in terminal'
09:22 AM lcnc-relay: <Lcvette> it opens some code
09:23 AM Tom_dev: open a terminal and bash Unigine_Heaven-4.0.run
09:23 AM Tom_dev: it's a script file... sry
09:24 AM Tom_dev: that will unpack it
09:24 AM Tom_dev: then run he heaven file in that folder
09:25 AM Tom_dev: bash heaven from a terminal if you wish
09:27 AM Tom_dev: Preset: extreme
09:27 AM Tom_dev: then 'Run'
09:28 AM lcnc-relay: <skunkworks8841@> what is your servo thread in your linuxcnc config. (and do you have a base thread?)
09:30 AM lcnc-relay: <skunkworks8841@> and you are running mesa over ethernet?
09:30 AM lcnc-relay: <Lcvette> Yeah
09:30 AM lcnc-relay: <skunkworks8841@> what is the computer hardware?
09:30 AM lcnc-relay: <Lcvette> Down in the histogram
09:31 AM lcnc-relay: <Lcvette> Im getting like 1fps with this test
09:31 AM lcnc-relay: <skunkworks8841@> if it were me - I would do idle=poll and isolcpus=1 in the kernel line..
09:32 AM lcnc-relay: <Lcvette> 2core
09:32 AM lcnc-relay: <Lcvette> Isolcpus doesnt work well
09:32 AM lcnc-relay: <skunkworks8841@> yes - 0,1
09:32 AM lcnc-relay: <skunkworks8841@> ok
09:32 AM Tom_L: agree
09:32 AM lcnc-relay: <Lcvette> Screws up non realtime
09:32 AM lcnc-relay: <Lcvette> Start getting delay errors in ATC functionality for io not running realtime
09:33 AM lcnc-relay: <skunkworks8841@> are you using classicladder?
09:34 AM lcnc-relay: <Lcvette> No macros
09:34 AM lcnc-relay: <skunkworks8841@> ok (I have seen classic ladder use a lot of clock cycles on under-powered machines)
09:37 AM lcnc-relay: <skunkworks8841@> I would not expect heaven to have very high fps on your system.. It is going really test your hardware.
09:37 AM lcnc-relay: <Lcvette> I can barely do anything I had to set it back to basic
09:37 AM lcnc-relay: <skunkworks8841@> and I didn't know you could run it on linux.. LOL
09:37 AM lcnc-relay: <Lcvette> The delay time anytime I try to click on something or even run the latency test was ridiculous
09:37 AM Tom_L: yeah i ran it for the new RTAI test for ntulinux
09:38 AM lcnc-relay: <Lcvette> However it doesn't seem to be affecting latency at all it's actually much better than it was with YouTube's and GLX gears
09:39 AM lcnc-relay: <Lcvette> https://imgur.com/a/gjUnzuy
09:53 AM lcnc-relay: <Lcvette> How long does the heaven thing run?
09:54 AM lcnc-relay: <Lcvette> Tom_L: ^^^
10:01 AM lcnc-relay: <Lcvette> It's been running for 1,000 seconds now and the histogram looks fantastic does it do something different over time?
10:01 AM lcnc-relay: <Lcvette> How do you go through a battery of different hardware tests
10:02 AM lcnc-relay: <skunkworks8841@> Then I might be looking at the ethernet card - what is it (I assume on board?)
10:04 AM lcnc-relay: <Lcvette> Gigabyte intel onboard
10:06 AM lcnc-relay: <skunkworks8841@> and you have the hardware-irq-coalesce-rx-usecs 0
10:06 AM lcnc-relay: <skunkworks8841@> in the interfaces file?
10:06 AM lcnc-relay: <Lcvette> Ues
10:07 AM lcnc-relay: <Lcvette> Yes
10:07 AM lcnc-relay: <skunkworks8841@> well poop
10:07 AM lcnc-relay: <Lcvette> https://imgur.com/a/LTvHqVE
10:07 AM lcnc-relay: <skunkworks8841@> and you don't have a base thread running in your config?
10:07 AM lcnc-relay: <Lcvette> Nope
10:07 AM lcnc-relay: <skunkworks8841@> what is your base thread?
10:07 AM lcnc-relay: <skunkworks8841@> sorry servo thread
10:07 AM lcnc-relay: <Lcvette> Ethernet
10:07 AM Tom_L: you can stop it
10:07 AM lcnc-relay: <Lcvette> 1us
10:08 AM lcnc-relay: <skunkworks8841@> no
10:08 AM lcnc-relay: <skunkworks8841@> it would be 1ms or slower
10:08 AM Tom_L: i think it runs until you do
10:08 AM lcnc-relay: <skunkworks8841@> 1us would certainly cause it lol
10:08 AM lcnc-relay: <Lcvette> 1ms then
10:08 AM lcnc-relay: <skunkworks8841@> lol
10:08 AM lcnc-relay: <skunkworks8841@> what are you doing? steppers?
10:09 AM Tom_L: iirc he's got servos
10:09 AM lcnc-relay: <Lcvette> Servos
10:09 AM lcnc-relay: <Lcvette> Big machine
10:09 AM lcnc-relay: <Lcvette> Atc
10:09 AM lcnc-relay: <skunkworks8841@> but step/dir or tuning within linuxcnc?
10:09 AM lcnc-relay: <Lcvette> Whole shebang
10:09 AM lcnc-relay: <Lcvette> Yeah
10:09 AM lcnc-relay: <Lcvette> With feedback
10:09 AM lcnc-relay: <Lcvette> But not closed
10:10 AM lcnc-relay: <skunkworks8841@> try 2ms
10:10 AM lcnc-relay: <Lcvette> Had issues with delay
10:10 AM lcnc-relay: <skunkworks8841@> and see if the error goes away
10:10 AM lcnc-relay: <Lcvette> Just using for home to index
10:10 AM Tom_L: lcvette, i forget where you got that cnc... japan or china?
10:11 AM lcnc-relay: <Lcvette> China
10:12 AM lcnc-relay: <skunkworks8841@> wait - are you the guy who bought the machine from china - on cnczone? like 5 or 10 years ago.
10:12 AM lcnc-relay: <skunkworks8841@> ?
10:12 AM lcnc-relay: <Lcvette> Yup
10:12 AM lcnc-relay: <skunkworks8841@> ah - Ok - I remember that.
10:12 AM lcnc-relay: <skunkworks8841@> looked like a cool machine
10:13 AM lcnc-relay: <skunkworks8841@> Try a servo thread of 2ms and see if that helps. I don't know if this will effect your setup - tread lightly.
10:13 AM lcnc-relay: <skunkworks8841@> you don't ever get a read or write error to the mesa card?
10:14 AM lcnc-relay: <Lcvette> I don't see any negative issues and latency warning isn't always it's intermittent at startup
10:14 AM lcnc-relay: <Lcvette> https://imgur.com/a/byByOj9
10:15 AM lcnc-relay: <Lcvette> I've got the internet open the extreme version of heaven running and taking screen grabs and chatting with you guys on element running and it's pretty Rock solid
10:16 AM lcnc-relay: <Lcvette> I would expect with the results I'm seeing that one millisecond would be fine on the latency servo thread
10:16 AM lcnc-relay: <skunkworks8841@> huh. I bet it is something happening only at startup.. I would think if it was an issue you would be haveing issues with the commucication with the mesa card.
10:16 AM lcnc-relay: <skunkworks8841@> I would too
10:16 AM lcnc-relay: <Lcvette> That's my theory too is it's something at startup zero issues ever from it it's just I didn't used to get that messages start up
10:17 AM lcnc-relay: <skunkworks8841@> did you update linuxcnc?
10:17 AM Tom_L: you could try stress-ng to see if anything else showed up there
10:17 AM lcnc-relay: <Lcvette> Thought maybe Peter might have an insight
10:17 AM lcnc-relay: <Lcvette> I'm on the latest stable
10:17 AM lcnc-relay: <Lcvette> 2.9.4
10:17 AM lcnc-relay: <skunkworks8841@> did you install a newer debian?
10:18 AM Tom_L: the newer preempt kernels seem a bit better
10:18 AM lcnc-relay: <Lcvette> Deviant 12 latest stable kernel
10:18 AM lcnc-relay: <Lcvette> Debian
10:18 AM lcnc-relay: <skunkworks8841@> huh. I am at a loss
10:18 AM lcnc-relay: <travis_farmer@> i like "deviant" better 🙂
10:18 AM lcnc-relay: <Lcvette> 6.1.0-32
10:19 AM lcnc-relay: <skunkworks8841@> The only thing I can say is that the your computer hardware might be on the edge... but still - the latency looks awesome
10:20 AM Tom_L: we like livin on the edge
10:21 AM Tom_L: skunkworks.... so you were running a quart low or so ehh?
10:22 AM lcnc-relay: <Lcvette> Yeah stomping okay I just hit the benchmark button so now it's doing says benchmarking is that what it is I'm supposed to do
10:22 AM lcnc-relay: <Lcvette> Before it was just cycling through images to look like at one frame per second
10:23 AM lcnc-relay: <skunkworks8841@> I have had issues (base thread systems) that the latency was awesome - but I could not run a base thread consistently..
10:25 AM lcnc-relay: <skunkworks8841@> hay - ping the mesa card while you are running the latency test
10:26 AM lcnc-relay: <Lcvette> ok sec
10:26 AM lcnc-relay: <Lcvette> ran inside to grab a pop
10:27 AM lcnc-relay: <skunkworks8841@> what do you make with your machine?
10:34 AM lcnc-relay: <Lcvette> https://imgur.com/a/Z1hfxUV
10:35 AM lcnc-relay: <Lcvette> Chop shop work and some products that I developed and sell
10:36 AM lcnc-relay: <Lcvette> Job shop.. lol
10:37 AM lcnc-relay: <Lcvette> Benchmark finished
10:37 AM lcnc-relay: <Lcvette> I had closed everything else, ping in that inage also
10:37 AM lcnc-relay: <Lcvette> skunkworks8841@: ^^^
10:37 AM lcnc-relay: <skunkworks8841@> well poop
10:38 AM lcnc-relay: <Lcvette> Ping is ok?
10:38 AM lcnc-relay: <skunkworks8841@> I was wondering if you would get a latency spike
10:39 AM lcnc-relay: <Lcvette> None that i saw
10:40 AM lcnc-relay: <skunkworks8841@> it might be interesting to know what is causing the error.. like - motion or what.. But I don't know if that would help.
10:41 AM lcnc-relay: <Lcvette> The latency errors immediately at startup before I even power the machine on
10:41 AM lcnc-relay: <skunkworks8841@> the only way would be to look at all the tmax's for all the realtime modules
10:41 AM lcnc-relay: <Lcvette> I e the on-screen power button for Linux
10:41 AM lcnc-relay: <skunkworks8841@> but I think they are all in clock cycles - so you would have to calculate it based on that.
10:42 AM lcnc-relay: <skunkworks8841@> sure - all the realtime stuff is running at that point
12:28 PM jfsimon1981 is now known as jfsimon
03:12 PM berin is now known as _unreal_
04:56 PM lcnc-relay: <big_kevin420@> First robotics is pretty cool. i imagine this is what its like to enjoy football or something
04:57 PM lcnc-relay: <big_kevin420@> I wonder if they have cnc competitions. i dont know what that would mean, but it could be fun
04:59 PM Tom_L: pretty sure they do
05:00 PM lcnc-relay: <big_kevin420@> yeah i guess i have been to one of those. i couldnt really see what was going on though
06:29 PM lcnc-relay: <skunkworks8841@> well - I was kinda suprised it worked..
06:29 PM lcnc-relay: <skunkworks8841@> https://photos.app.goo.gl/o52rzieAZ6FRaT2x6
06:29 PM lcnc-relay: <skunkworks8841@> helping sully put together a tesla coil.
06:30 PM lcnc-relay: <skunkworks8841@> that was to test to see if the high voltage was working. I turned it on - and though it wasn't working as I thought I would at least hear it.. nope perfectly quiet
06:30 PM lcnc-relay: <skunkworks8841@> it is only slightly scary..
06:34 PM Tom_L: neon sign transformer?
06:35 PM Tom_L: i did one with a couple of coat hangars once
06:35 PM lcnc-relay: <skunkworks8841@> I don't know - it kidna looks like a flyback.. but I don't know
06:36 PM lcnc-relay: <skunkworks8841@> https://photos.app.goo.gl/JddxoHKBDJ6qX6Vy6
06:36 PM Tom_L: https://www.youtube.com/shorts/ucMJhP_Y3q0
06:36 PM Tom_L: show him that one
06:37 PM lcnc-relay: <skunkworks8841@> I was trying to make a jacobs ladder with it.. It wasn't wanting to rise up until I fiddled with it.
06:37 PM Tom_L: that's what my hangars were
07:37 PM xxcoder: injteresting heat hardening video from artian make
08:26 PM flyback: yeah that's a flyback
08:41 PM rifraf: you are a flyback
08:51 PM flyback: BMCC
08:51 PM Tom_L: he's an aussie flapjack
08:52 PM * flyback hurls veegee at rifraf
08:58 PM rifraf: flyback its a flipback https://www.youtube.com/shorts/Ipp7vrJm9WU