UBM1 mill with LinuxCNC
02 Oct 2018 16:31 #118363
by mane
Replied by mane on topic UBM1 mill with LinuxCNC
Maybe i already have the Preempt-RT kernel? Checked with these commands:
and
uname -v
uname -a
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 or Create an account to join the conversation.
02 Oct 2018 17:05 #118365
by andypugh
Replied by andypugh on topic UBM1 mill with LinuxCNC
No, PREEMPT is normal, PREEMPT-RT is realtime.
The following user(s) said Thank You: mane
Please Log in or Create an account to join the conversation.
07 Oct 2018 21:17 #118519
by mane
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.,
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 or Create an account to join the conversation.
07 Oct 2018 23:38 #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 or Create an account to join the conversation.
11 Oct 2018 20:21 #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.
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.
Please Log in or Create an account to join the conversation.
11 Oct 2018 23:05 #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)
(You will typically get better Ethernet latency with all cores running)
Please Log in or Create an account to join the conversation.
16 Oct 2018 14:13 #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.
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 or Create an account to join the conversation.
16 Oct 2018 14:28 #118880
by andypugh
I am confused by this statement, as you seem to have already demonstrated good latency with the preempt-rt kernel.
Replied by andypugh on topic UBM1 mill with LinuxCNC
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 or Create an account to join the conversation.
16 Oct 2018 15:19 #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.
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 or Create an account to join the conversation.
16 Oct 2018 15:25 - 16 Oct 2018 15:29 #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)
100K latency is probably fine for an Ethernet stepgen card ( but not for a parallel port interface)
Last edit: 16 Oct 2018 15:29 by PCW.
Please Log in or Create an account to join the conversation.
Time to create page: 0.137 seconds