Howto schedule realtime tasks to CPU1 when isolcpus=1

More
9 years 8 months ago #88498 by DomCa
Hi again,

since nothing is run on the isolated CPUs at all, I suppose that LinuxCNC does not implement the instructions in section 2. of
github.com/ShabbyX/RTAI/blob/master/README.ISOLCPUS


2. IsolCpuMask in RTAI

Then what you have to do on the RTAI side is to load the core RTAI HAL module
using something like: "insmod rtai_hal.ko IsolCpusMask=<xxx>", where <xxx>
is the mask of isolated CPUs. Please notice that Linux uses a list if isolated
CPUs while RTAI requires the corresponding mask (I'm lazy and let you do it).


Is there any way to add the IsolCpusMark=XXX to the loading of the rtai_hal.ko?

Thanks
DomCa

Please Log in or Create an account to join the conversation.

More
9 years 8 months ago #88511 by Bari
Linuxcnc runs RTAI on an isolated cpu. It does so by default and
you don't have to use isolcpus=x for the past few years.

Use this tree and RTAI will work with Linuxcnc:
github.com/NTULINUX/RTAI

Please Log in or Create an account to join the conversation.

More
9 years 8 months ago #88534 by DomCa
Hi Bari,

thank you for pointing out the RTAI tree. I will test it as soon as possible.

With the standard install from the live CD all tasks (non-realtime and real-time) are scheduled on the non-isolated CPU, at least on my system.
Should the Live-CD be modified to include the NTULINUX tree?

Thanks
DomCa

Please Log in or Create an account to join the conversation.

More
9 years 8 months ago #88621 by Bari
That is up to the Linuxcnc developers to decide.

Please Log in or Create an account to join the conversation.

Time to create page: 0.303 seconds
Powered by Kunena Forum