- Posts: 381
- Thank you received: 0
Results of latency test, list of computers tested for use with LinuxCNC
The values of latency you have, should be fine for servo, ie. Mesa based stuff. I'd set the value in LinuxCNC to 120 -130% of the obtained latency data (courtesy Tommylight).
I have seen some Radeon GPU's doing bad stuff to latency too (see here for example). I would assume, you can get latency down, but first and since you do not have a parallel port, I'd test your PC as it is set up now.
Hints for bringing latency further down:
- Bios: disable everything that smells like hyper threading, power saving. Also disable every option / device, that you do not need. You could try disabling multicore too, but see below
- Play wit GRUB_CMDLINE_LINUX_DEFAULT="quiet", add "isolcpus=x,y" (where x,y can be anything like 0,1/2,3/0/1/2/3, the parameter hides the denominated cores from the os, wheras disabling multicore does not give an option to choose which one(s) you want and which one(s) you don't), "idle=poll" and many more possibilities.
Just change one thing at a time, note down the resulls in a spreadsheat and sort them versus latencies obtained (I do it this way). There are chances, that a combination of the parameters to play with will give optimal results. You may or may not see a correlation in improvement. And finally: as BeagleBrainz pointed out earlier: it is not worth to go for the last uS of improvement. If you repeat the tests, you will see some variation. What really counts is that your system returns consistent reliable values at a >reasonable< low level, not the very lowest level. Tommylight would probably add: "do some real world testing by running the PC on real data, just disconnected from the motors for hours. If there are no " real time delay" messages, you should be fine". I second that.
hth
chris
Please Log in to join the conversation.
Please Log in to join the conversation.
Project_Hopeless wrote: Dell OptiPlex 9010 i5-3570 CPU 3.40GHz
Linux Buster:
Code:LinuxCNC pc tests, version 20200930, started 28.12.2020 16:43:54 ******************************************************************************** General info: Dell Inc., OptiPlex 9010 Bios version A13, dated 03/27/2013 Chipset: Intel Corporation 7 Series/C216 Harddisk is rotational The amount of swap currently used is 0 ... ================================================================================ Os and desktop related data: PRETTY_NAME="Debian GNU/Linux 10 (buster)" ... Desktop environment : xfce4 Windowmanager : Xfwm4 Displaymanager : lightdm ================================================================================ Kernel related data: Kernel 4.19.0-11-rt-amd64 GRUB_CMDLINE_LINUX_DEFAULT="quiet" Cpu idle driver: intel_idle ================================================================================ Kernel modules data: Check if pcspkr is loaded: Yes, may cause bigger latency. can be eliminated using: sudo echo "install pcspkr /bin/true" >/etc/modprobe.d/pcspkr.conf Check if snd modules are loaded: No, which is good! ... ================================================================================ last latency data is as follows:. 7199 secs servo min: -75.700 uS max: 74.300 uS sdev: 2.900 uS 7199 secs servo min: -75.700 uS max: 74.300 uS sdev: 2.900 uS
Linux Mint:
Code:LinuxCNC pc tests, version 20200930, started 28.12.2020 13:48:40 ******************************************************************************** ... ================================================================================ Os and desktop related data: PRETTY_NAME="Linux Mint 19.2" ... Desktop environment : gnome Windowmanager : Metacity (Marco) Displaymanager : lightdm ================================================================================ Kernel related data: Kernel 4.16.12-rt5-kona-rt GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" Cpu idle driver: intel_idle ================================================================================ Kernel modules data: Check if pcspkr is loaded: No, which is good! Check if snd modules are loaded: No, which is good! ... ================================================================================ last latency data is as follows:. 7202 secs servo min: -96.200 uS max: 108.000 uS sdev: 6.100 uS 7203 secs servo min: -96.200 uS max: 108.000 uS sdev: 6.100 uS
You play with two different os's: buster and mint. That is OK, however, try to be consistent regarding kernels and desktops if you want a comparison that may lead to a conclusion. (Remark: I think, Mint is also available in version 19.3.) Kernels do play a major role for latency, desktops too. Further play with bios and "GRUB_CMDLINE_LINUX_DEFAULT" (see post above for hints).
I'd say you got it already, as long as there are no real time delay messages. You might be able to bring these values down, again, see post above.What is a good range?
Even with Buster my numbers seem quite a bit higher relatively speaking than other posts here. I am using the onboard GPU, how much of an impact would that be?
We want low latency, yes. But this is not a race to be won. It is all about finding a reasonable good value to run / control your CNC machine with. Again see my post above.
If you play, play one option, test, note the values, then go to next option.
hth
chris
Please Log in to join the conversation.
- tommylight
-
Topic Author
- Away
- Administrator
-
- Posts: 22010
- Thank you received: 3
That is valid for base period when using parallel port. Mesa boards do not use base period at all, and the servo period should be left at default 1000000 ( 1 mill ).seuchato wrote: I'd set the value in LinuxCNC to 120 -130% of the obtained latency data ..
Usually AMD/ATI GPU's are OK as they do not care much about compliance to power requirements, but i had a Radeon 7thausandsomething that i literally threw in the trash as it would mess up latency to extreme heights.seuchato wrote: I have seen some Radeon GPU's doing bad stuff to latency too
That is always the best and the only safe way of making sure everything is OK, there is no simple way of reproducing everything that goes on inside a PC with a test.seuchato wrote: "do some real world testing by running the PC on real data, just disconnected from the motors for hours. If there are no " real time delay" messages, you should be fine". I second that.
Regards,
Tom.
Please Log in to join the conversation.
First time poster here. I wanted my first post to resemble a contribution because I know I'll be asking for help from y'all in the near future. Here's the results of a 2 hour test on my recently acquired Dell Optiplex 7010 SFF (SSD, 8GB RAM, onboard graphics) using Debian Buster 10.7 with RTAI kernel. BIOS modifications are:
- Using only one core
- Disabled SpeedStep
- Disabled C States Control
- Blocked sleep
- Disabled all virtualization support options
Thanks to my1987toyota for describing their similar experience in this thread, as I may have given up on the 7010 without reading about his switch to Debian.
Since I'm trying to keep costs down, I'm hoping to try parallel port software stepping on a basic 3-axis small vertical mill closed loop stepper setup (still deciding on which mill). I'm hoping someone here can tell me if this latency should be sufficient or if I should consider a FPGA board setup instead. Ultra fast feedrates aren't a requirement for my uses, mainly prototyping small parts with softer materials.
Thanks to everyone on this forum for all the useful info and I can't wait till I'm finally making chips!
- Mark
Please Log in to join the conversation.
Thanks a ton. I'll give RTAI another try. The values you obtained, indicate it is a good candidate for soft stepping. My dell 980s do well with similar values.
greez
chris
Please Log in to join the conversation.
- TobiWanCNC
- Offline
- New Member
-
- Posts: 1
- Thank you received: 0
just got a Lenovo M93p and gave it a try. I've disabled some power management stuff in the BIOS, before the latency results were quite bad on buster.
Best regards,
Tobi
Please Log in to join the conversation.
- tommylight
-
Topic Author
- Away
- Administrator
-
- Posts: 22010
- Thank you received: 3
Please Log in to join the conversation.
Planing to test my Thinkpad T420s with a MESA ethernet card is it worth it?
Attachment not found
Please Log in to join the conversation.
- tommylight
-
Topic Author
- Away
- Administrator
-
- Posts: 22010
- Thank you received: 3
T420S is unusable for machine control, i still have one. It will drop the link to Mesa board in 1 to 30 seconds always on batteries, much longer on AC power, but never reliable.
At any rate the latency is much better than what you posted, but probably using the wrong kernel.
What does
uname -a
in a terminal say?
Please Log in to join the conversation.
