Script for automated testing of computer latency.

More
26 Jun 2023 20:17 #274279 by seuchato
Johnny
Thx for the flowers!
If you are not getting >significant< amelioration (say > 15%) altering the "GRUB_CMDLINE_..." , stick with what you've got. Tommy usually states, that long (long in the sense of definitely considerably more than 2 hours {Tommy, please correct me, if I am wrong}). But: I guess, you know: we are working with potentially dangerous machines, are experienced enough and do what all god cnc-boys do: apply a good grain of cautiousness!
Greez
chris
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
26 Jun 2023 20:29 #274280 by JohnnyCNC
Now that I have the best I've been able to get in a short run I will start a long run once the thunder storms stop

Thanks
John.
The following user(s) said Thank You: seuchato

Please Log in or Create an account to join the conversation.

More
26 Jun 2023 21:55 #274285 by tommylight

But: I guess, you know: we are working with potentially dangerous machines,

Most are very dangerous, not just potentially, just search youtube for lathe/cnc accident and hope you have a strong stomach.
And, seeing and more importantly feeling a 2.5 ton gantry move at 24m/m is terrifying, no matter how many times you watch it. If that thing hits a human at that speed, it will absolutely not notice anything, not even a spike in motor current draw!
The following user(s) said Thank You: seuchato

Please Log in or Create an account to join the conversation.

More
03 Dec 2023 08:46 #287073 by flyingbrick
It seems that the vimeo page doesn't exist.... Anyone else have this problem? (I could probably search back through the past 14 pages lol )

Please Log in or Create an account to join the conversation.

More
03 Dec 2023 12:11 #287088 by tommylight
Just play something else, youtube works also.
Do maximize/minimize several times the video as that does induce spikes on latency.
The following user(s) said Thank You: flyingbrick

Please Log in or Create an account to join the conversation.

More
08 Dec 2023 10:46 #287517 by seuchato

It seems that the vimeo page doesn't exist.... Anyone else have this problem? (I could probably search back through the past 14 pages lol )
 

It is listed on the todo list quite high, among with amd and raspberry temperatures.
I hope to get that done by end of this year
greez
chris
The following user(s) said Thank You: tommylight, flyingbrick

Please Log in or Create an account to join the conversation.

More
08 Dec 2023 17:46 - 08 Dec 2023 17:50 #287564 by seuchato
My current todo:
See attachment (can't see how to add a table in here, pointers welcome :-]), rename it to .ods instead of .gz and you should be able to read it.
Greez
chris
 
Attachments:
Last edit: 08 Dec 2023 17:50 by seuchato.

Please Log in or Create an account to join the conversation.

More
13 Mar 2024 20:22 #295852 by klopp
Hey, thanks for the effort to make this whole latency testing more reproducable.

The problem I face is that I can't interpret the results of this script, as I'm not very deep into this topic.
So a few questions:

1) As far as I understand the base thread is mostly used for software step generation. As most setups use mesa cards with their fpga step generation, do I have to worry about base thread latency at all? What about mesa cards connected to the parport?

2) Why is the standard deviation important? If I have a pretty narrow curve with a few large deviations, my standard deviation would be relatively small but because of the few large deviations, my system would still be unusable right?

3) The wiki states that the most important thing is the jitter. If I understand correctly, thats the maximum deviation of the period. So If I get a result of min=-30uS and max=20uS, my jitter would be 30uS. Is that correct? 

4) What jitter is considered okay for LinuxCNC when not using software stepping (e.g. using a mesa card)?

Thank you for putting so much work into this community project :)
The following user(s) said Thank You: seuchato

Please Log in or Create an account to join the conversation.

More
14 Mar 2024 00:47 #295863 by cornholio
If you are using a Mesa card, whether the interface is Ethernet, SPI or EPP (Parallel Port) only a servo thread is required. In a basic explanation the Mesa card is getting the info required to move the steppers and generating the timing. Same info just a different physical interface.
When soley using the Parallel Port linuxcnc is generating the step pulses, and this requires a base thread.
I just start with a base thread such as 25us and then adjust it up or down until it’s stable when running a config.
Essentially the Mesa route doesn’t require a lot of tuning, Parallel Port may require some or a lot depending on the machine.
The following user(s) said Thank You: seuchato

Please Log in or Create an account to join the conversation.

More
14 Mar 2024 07:03 - 14 Mar 2024 07:23 #295878 by seuchato

Hey, thanks for the effort to make this whole latency testing more reproducable.

The problem I face is that I can't interpret the results of this script, as I'm not very deep into this topic.
So a few questions:

1) As far as I understand the base thread is mostly used for software step generation. As most setups use mesa cards with their fpga step generation, do I have to worry about base thread latency at all? What about mesa cards connected to the parport?

2) Why is the standard deviation important? If I have a pretty narrow curve with a few large deviations, my standard deviation would be relatively small but because of the few large deviations, my system would still be unusable right?

3) The wiki states that the most important thing is the jitter. If I understand correctly, thats the maximum deviation of the period. So If I get a result of min=-30uS and max=20uS, my jitter would be 30uS. Is that correct? 

4) What jitter is considered okay for LinuxCNC when not using software stepping (e.g. using a mesa card)?

Thank you for putting so much work into this community project :)

Last edit: 14 Mar 2024 07:23 by seuchato. Reason: Time out

Please Log in or Create an account to join the conversation.

Time to create page: 0.210 seconds
Powered by Kunena Forum