UBM1 mill with LinuxCNC

More
8 years 4 weeks ago #118363 by mane
Replied by mane on topic UBM1 mill with LinuxCNC
Maybe i already have the Preempt-RT kernel? Checked with these commands:
Code:
uname -v
and
Code:
uname -a
Code:
manfred@CNC:~$ uname -v #1 SMP PREEMPT Debian 3.4.55-4linuxcnc manfred@CNC:~$ uname -a Linux CNC 3.4-9-rtai-686-pae #1 SMP PREEMPT Debian 3.4.55-4linuxcnc i686 GNU/Linux

Please Log in to join the conversation.

More
8 years 4 weeks ago #118365 by andypugh
Replied by andypugh on topic UBM1 mill with LinuxCNC
No, PREEMPT is normal, PREEMPT-RT is realtime.

Please Log in to join the conversation.

More
8 years 3 weeks ago #118519 by mane
Replied by mane on topic UBM1 mill with LinuxCNC

Just install LinuxCNC + Debian Linux using this image:
www.linuxcnc.org/testing-stretch-rtpreempt/


After installing, i had very bad latency values > 100000.
After re-insallation Debian jessy 64bit and switching to preempt-rt kernel i had latency values between 50000 and 100000.
Maybe the debian 32bit has better latency performance than debian 64bit. And maybe the rtai kernel has also better latency performance than preempt-rt. With my first installation with rtai kernel, system latency was below 10000 with isolcpus option.
I will try out in the next days.,

Please Log in to join the conversation.

More
8 years 3 weeks ago #118522 by andypugh
Replied by andypugh on topic UBM1 mill with LinuxCNC
It might be that your system will only give adequate performance with RTAI. In that case you would need to use a PCI Mesa card (Or EPP Parallel Pico or Mesa card) as Ethernet and RTAI don't work together.

Please Log in to join the conversation.

More
8 years 2 weeks ago #118687 by mane
Replied by mane on topic UBM1 mill with LinuxCNC
After playing around with isolcpus command i have acceptable values with preempt-rt kernel.
In my case i have 4 cpu cores and put this into /etc/default/grub:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash isolcpus=0,1,2"

Now, only one core is present at the system which makes it a bit slower but still acceptable.

Attachment not found

Please Log in to join the conversation.

More
8 years 2 weeks ago #118689 by PCW
Replied by PCW on topic UBM1 mill with LinuxCNC
Note that getting this good latency is important with parallel ports but if you use external Ethernet hardware you are likely better off leaving ISOLCPUs alone
(You will typically get better Ethernet latency with all cores running)

Please Log in to join the conversation.

More
8 years 2 weeks ago #118879 by mane
Replied by mane on topic UBM1 mill with LinuxCNC
I tried several installations during the weekend. Good latency seems to be impossible with my board and Preempt-RT kernel.
Switched back to the regular linuxcnc with Debian 7 and rtai kernel.Thats even better.
Think i will go with a 7i43 and parallel port.
Thanks so far for all your Input.

Please Log in to join the conversation.

More
8 years 2 weeks ago #118880 by andypugh
Replied by andypugh on topic UBM1 mill with LinuxCNC

mane wrote: Good latency seems to be impossible with my board and Preempt-RT kernel..


I am confused by this statement, as you seem to have already demonstrated good latency with the preempt-rt kernel.

Please Log in to join the conversation.

More
8 years 2 weeks ago #118885 by mane
Replied by mane on topic UBM1 mill with LinuxCNC
I had only good results with preempt-rt kernel by using
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash isolcpus=0,1,2"

But as PCW said i should not use isolcpus together with ethernet.

Thats why i go back to parallel port.

Please Log in to join the conversation.

More
8 years 2 weeks ago #118886 by PCW
Replied by PCW on topic UBM1 mill with LinuxCNC
"good latency" depends on whether you have external step generation hardware
100K latency is probably fine for an Ethernet stepgen card ( but not for a parallel port interface)

Please Log in to join the conversation.

Time to create page: 0.058 seconds
Powered by Kunena Forum