- Posts: 75
- Thank you received: 0
rtapi -- uspace -- "Using POSIX non-realtime"
I compiled the newest linux kernel configured as preemptable, but linuxcnc uspace disagrees.
Also, I would like to work my way though the rtapi examples in the ./src/rtapi/examples directory, but am not quite understanding the ./src/rtapi/README file.
Starting from:
I can't find a load_rtapi script anywhere in the source distribution.
Are there pre-existing test-cases for the rtapi and uspace?
If so, how does one get started using them?
Thanks,
jCandlish
.
Please Log in to join the conversation.
_jC wrote: I can't find a load_rtapi script anywhere in the source distribution
Yes, it appears that that README file contains a hangover from long ago. Looking back to v2.0 11 years ago it wasn't there then....
Are there pre-existing test-cases for the rtapi and uspace?
There are many tests that are run by the buildbot, and you can try those:
github.com/LinuxCNC/linuxcnc/blob/master/tests/README
Please Log in to join the conversation.
I compiled the newest linux kernel configured as preemptable, but linuxcnc uspace disagrees.
Did you configure uspace properly?
am not quite understanding the ./src/rtapi/README file.
That file seems to be out-of-date. It was last modified:
2cc3ad7 2014-08-30
Please Log in to join the conversation.
That is, I downloaded the package source and built local NMU debs.
This package is working with the current 'stretch' preempt kernel.
My 4.8.9 preempt kernel says:
I would like to better understand the uspace rtapi wrapper. I'm only finding out of date documentation.
.
Please Log in to join the conversation.
andypugh wrote: There are many tests that are run by the buildbot, and you can try those:
I was thinking more specifically about the examples in ./src/rtapi/examples, and how they apply to the uspace wrapper.
Please Log in to join the conversation.
I compliled linuxcnc via the 'apt-get source' method.
You must still use .configure with --realtime=uspace for a preempt-rt kernel
Once configured for uspace realtime, you should see a correct report
(to stdout) for commands like
Configuration is not correct if report is:
Please Log in to join the conversation.
your custom debian stretch kernel:
does not comply with a test in src/rtapi/uspace_common.h
Your kernel is reporting "SMP PREEMPT without the specific
substring expected, namely: "PREEMPT RT".
So it appears no preempt-rt patch has been applied to the kernel you are using.
On a system i use (jessie,uspace), the report is:
ref (2.7 tree):
git.linuxcnc.org/gitweb?p=linuxcnc.git;a...d8;hb=refs/heads/2.7
Please Log in to join the conversation.
AFAIK 4.8.6-rt5 is the latest as of Nov 21,2016
Please Log in to join the conversation.
Somehow I thought PREEMPT RT was in mainline. I checked, and no patch is yet available for 4.8.9
...
Anyway, the servo thread jitter I am seeing with a celereon skylake system is quite disappointing. >= 100μs.
I question if it is sufficient?
This is with
GRUB_CMDLINE_LINUX="ipv6.disable=1 intel_idle.max_cstate=1 processor.max_cstate=1"
I've looked also to 'powertop' and 'i7z' for insight on this jitter, but no joy.
.
Please Log in to join the conversation.
Please Log in to join the conversation.
