Tom,

If you delve into the implementation details you will come to understand that RT-Preempt (RTP) will probably never have as good latency times as RTAI or RT-Linux (RTL) -- because RTAI/RTL run as dedicated TSR processes that sit above the OS if I remember correctly, whereas RTP is managed within the kernel itself. That said, RTP is getting latencies down to the point that are good enough for most applications. I guess what I am trying to say here is that if you focus on just the raw numbers it is easy to fall into the trap of perfection being the enemy of the good.

One other critical point for understanding why a lot of us want to see RTP support is that RTP is now incorporated within the Linux kernel source tree, and is supported/maintained by the kernel devs themselves. I doubt that RTAI or RTL ever will because they hijack a normal kernel. If you take a step back you will find that both RTAI and RTL support chooses a kernel version to hack, releases patches, and half the time they do not work with standard kernels. This ends up locking us into very specific versions of the kernel, and is extremely fragile. But by all means, run RTAI/RTL versions of the kernel for LCNC, but when you want to upgrade your kernel you are either going to have to wait around until someone with the skills and experience of kernel hacking dedicates their time on this, or you will have to do so yourself.

Hope this is helpful and does not start a flame-war. I would love to see RTAI integrated into the kernel, but given how Linus and other devs feel about hard RT, I can only wish you luck with that.

  EBo --

On Jul 21 2017 9:01 AM, [email protected] wrote:
So if I am reading your message correctly, preempt’s latencies are
not typically as good as RTAI?  Will there be an RTAI kernel for
Stretch at some point?
Thanks,
-Tom

On Jul 21, 2017, at 8:25 AM, Jeff Epler <[email protected]> wrote:

I've been working on a live+install image of Debian Stretch with
* The just-released LinuxCNC 2.7.10
* kernel 4.9.0-3-rt-amd64 or 4.9.0-3-rt-686-pae
* xfce desktop (same desktop we used on wheezy)
* goodies like hostmot2 firmwares, truetype-tracer, f-engrave

This image is based on the "PREEMPT RT" kernel, which typically
gives latencies good enough for FPGA-based systems, though often the
latency is too high for software encoder and stepgen systems.
Assuming you have a multi-core system, isolating the highest
numbered CPU with isolcpus=# on the kernel commandline may help
latency, just as with RTAI.

Unless you know your computer only supports 32-bit code, I recommend
using the -amd64 image, which works for both AMD and Intel 64-bit
CPUs.

Like the older images, you can either boot live to test your
hardware, or install to the hard disk, from the same iso image.

The Debian image is a "hybrid" iso, which means you can use the same
iso file for a USB stick or a DVD.  (The image is bigger than a
traditional CD, so you can't install from regular CD anymore.)
Instructions for writing the image to a USB stick from Windows and
Linux are here:

http://wiki.linuxcnc.org/cgi-bin/wiki.pl?Hybrid_Iso

**NOTE** the Ubuntu "startup disk creator" and unetbootin do NOT
handle hybrid images.  Use the above instructions instead, if you
want to install from USB.  To install from DVD you can use any
traditional method to write the iso image.

You can find it at the temporary URL
http://www.linuxcnc.org/testing-stretch-rtpreempt/

For more notes and for the scripts used to build these images,
see https://github.com/jepler/stretch-live-build

The github repository has an "issues" section.  Please use it only
to file bugs about the image itself, not about bugs in LinuxCNC,
even if the bug in LinuxCNC seems to be specific to Debian Stretch.
(but if you aren't sure, then file it in stretch-live-build and
we'll triage it)

Jeff


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to