About unexpected realtime delay ...
- DomCa
- Offline
- Senior Member
-
Less
More
- Posts: 71
- Thank you received: 6
19 Oct 2019 17:24 #148349
by DomCa
Replied by DomCa on topic About unexpected realtime delay ...
Hi!
Maaybe check this:
forum.linuxcnc.org/9-installing-linuxcnc...or-new-rtai-packages
Gave me great latency values!
Further reading for 2.7 rtai:
forum.linuxcnc.org/18-computer/25927-red...lticore-pc-s-success
In combination With setting max cstates
Gave me latencies below 10.000ns
On the 2.8 with 5.2rtai (first link) other tips made it worse. Will investigate further...
One thing is for sure: rtai will give you much better results!
Regards
Domca
I
Maaybe check this:
forum.linuxcnc.org/9-installing-linuxcnc...or-new-rtai-packages
Gave me great latency values!
Further reading for 2.7 rtai:
forum.linuxcnc.org/18-computer/25927-red...lticore-pc-s-success
In combination With setting max cstates
Gave me latencies below 10.000ns
On the 2.8 with 5.2rtai (first link) other tips made it worse. Will investigate further...
One thing is for sure: rtai will give you much better results!
Regards
Domca
I
Please Log in or Create an account to join the conversation.
- pl7i92
-
- Offline
- Platinum Member
-
Less
More
- Posts: 1872
- Thank you received: 357
19 Oct 2019 17:48 #148351
by pl7i92
Replied by pl7i92 on topic About unexpected realtime delay ...
if you are on softwarestepping 35000 is well good to go
what kind of interface and drivers are you using
what kind of interface and drivers are you using
Please Log in or Create an account to join the conversation.
- l2-max
- Offline
- Junior Member
-
Less
More
- Posts: 26
- Thank you received: 2
19 Oct 2019 20:57 - 19 Oct 2019 20:59 #148363
by l2-max
Replied by l2-max on topic About unexpected realtime delay ...
However, this motherboard can do 5000nS, so, why not to squeeze that:)if you are on softwarestepping 35000 is well good to go
...
Last edit: 19 Oct 2019 20:59 by l2-max.
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 20255
- Thank you received: 6890
19 Oct 2019 23:05 - 19 Oct 2019 23:06 #148375
by tommylight
It is very nice for directly reading encoders!
Replied by tommylight on topic About unexpected realtime delay ...
Oh well, if you are using almost any BOB, those short pulses will disappear somewhere on their way to the drives, and most cheap drives do not even work with anything under 10.000uS.
However, this motherboard can do 5000nS, so, why not to squeeze that:)if you are on softwarestepping 35000 is well good to go
...
It is very nice for directly reading encoders!

Last edit: 19 Oct 2019 23:06 by tommylight.
Please Log in or Create an account to join the conversation.
- l2-max
- Offline
- Junior Member
-
Less
More
- Posts: 26
- Thank you received: 2
20 Oct 2019 08:47 - 20 Oct 2019 08:50 #148389
by l2-max
You are right, but do not we talk about latency test and not pulse width?
P.S. I personally use cheap, china made, 2x BOBs and cheap 5x DM542 drivers, and they are okay at 32kHz pulses rate (steplen 1, stepspace 0, dirhold 11000, dirsetup 11000, base _period 31250)
Replied by l2-max on topic About unexpected realtime delay ...
Oh well, if you are using almost any BOB, those short pulses will disappear somewhere on their way to the drives, and most cheap drives do not even work with anything under 10.000uS.
It is very nice for directly reading encoders!
You are right, but do not we talk about latency test and not pulse width?
P.S. I personally use cheap, china made, 2x BOBs and cheap 5x DM542 drivers, and they are okay at 32kHz pulses rate (steplen 1, stepspace 0, dirhold 11000, dirsetup 11000, base _period 31250)

Last edit: 20 Oct 2019 08:50 by l2-max.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- DomCa
- Offline
- Senior Member
-
Less
More
- Posts: 71
- Thank you received: 6
21 Oct 2019 09:32 #148451
by DomCa
I am currently finishing my Sorotex AL-Line. I am using their parallel port BOB on an old Athlon 64 dual core.
The CNC in X, Y has spindles with 10mm/turn and is suggested to run with 6m/min and 3200 microsteps.
Looks like with my setup I can run it with this specs.
Replied by DomCa on topic About unexpected realtime delay ...
if you are on softwarestepping 35000 is well good to go
what kind of interface and drivers are you using
I am currently finishing my Sorotex AL-Line. I am using their parallel port BOB on an old Athlon 64 dual core.
The CNC in X, Y has spindles with 10mm/turn and is suggested to run with 6m/min and 3200 microsteps.
Looks like with my setup I can run it with this specs.
Please Log in or Create an account to join the conversation.
- jonch919
- Offline
- Senior Member
-
Less
More
- Posts: 42
- Thank you received: 0
21 Oct 2019 10:38 #148457
by jonch919
But I have an ethernet Mesa 7i92 card so I had to switch to PREEMP. With the official image I was getting about 50-70uS, but had ramdom spikes up to several seconds. Tried lots of tweaks that lowered latency a bit but didn't get rid of the spikes.
Maybe it would have helped if SMICTRL had worked at all for me.
Tried Mint and Lubuntu as well, but it didn't help.
Now I'm back on Debian 9, latest version, with pre-compiled PREEMT from rep. I don't get those 2-3s spikes any more. Now they only reach maybe 120uS.
But since I'm using a Mesa card I guess my numbers are ok.
Replied by jonch919 on topic About unexpected realtime delay ...
I briefly installed RTIA at first and I had very low latency numbers as well. Many around 16uS like you.I do not think my tweaks will help you much as you and I running different Debian releases.
Initially, latency test on this mother board shown 16uS with official RTAI 2.7.14 ISO image. Then I switched to 2.8 master branch. Latency remain exactly the same as with official release despite kernel changed to preempt-rt. If you cannot reach such latency with clean 2.7.14 RTAI on the motherboard then I am not sure my BIOS setup will help you much.
Sorry, I do not have LinuxCNC machine by hand thus, what I recall, I disabled "INTEL speed step" (-3uS) to run processor at constant speed and may be, not sure disabled virtualization (not sure it had some impact on latency). I also isolated CPU on 2 cores only (that tweak helped a lot -8uS) and latency dropped down to 5uS.
That is it, from what I remember had noticeable impact on latency. Try booting from 2.7.14 RTAI flash drive and run latency test to see if it will be different from what you have now.
But I have an ethernet Mesa 7i92 card so I had to switch to PREEMP. With the official image I was getting about 50-70uS, but had ramdom spikes up to several seconds. Tried lots of tweaks that lowered latency a bit but didn't get rid of the spikes.
Maybe it would have helped if SMICTRL had worked at all for me.
Tried Mint and Lubuntu as well, but it didn't help.
Now I'm back on Debian 9, latest version, with pre-compiled PREEMT from rep. I don't get those 2-3s spikes any more. Now they only reach maybe 120uS.
But since I'm using a Mesa card I guess my numbers are ok.
Please Log in or Create an account to join the conversation.
- jonch919
- Offline
- Senior Member
-
Less
More
- Posts: 42
- Thank you received: 0
21 Oct 2019 10:44 #148459
by jonch919
Says it's only for AMD CPUs? But looks interesting!
Does Mesa ethernet cards work?
Replied by jonch919 on topic About unexpected realtime delay ...
Hi!
Maaybe check this:
forum.linuxcnc.org/9-installing-linuxcnc...or-new-rtai-packages
Gave me great latency values!
Further reading for 2.7 rtai:
forum.linuxcnc.org/18-computer/25927-red...lticore-pc-s-success
In combination With setting max cstates
Gave me latencies below 10.000ns
On the 2.8 with 5.2rtai (first link) other tips made it worse. Will investigate further...
One thing is for sure: rtai will give you much better results!
Regards
Domca
I
Says it's only for AMD CPUs? But looks interesting!
Does Mesa ethernet cards work?
Please Log in or Create an account to join the conversation.
- jonch919
- Offline
- Senior Member
-
Less
More
- Posts: 42
- Thank you received: 0
21 Oct 2019 10:46 #148460
by jonch919
Me or TS?
Using Mesa 7i92, so I guess my numbers are good enough.
Leadshine MX4660 driver.
Replied by jonch919 on topic About unexpected realtime delay ...
if you are on softwarestepping 35000 is well good to go
what kind of interface and drivers are you using
Me or TS?
Using Mesa 7i92, so I guess my numbers are good enough.
Leadshine MX4660 driver.
Please Log in or Create an account to join the conversation.
Time to create page: 0.112 seconds