It turns out that the word "deprecated" is in kernel parameters doc for 4.19
www.kernel.org/doc/html/v4.19/admin-guid...rnel-parameters.html
Code:
isolcpus= [KNL,SMP,ISOL] Isolate a given set of CPUs from disturbance.
[Deprecated - use cpusets instead]
Format: [flag-list,]<cpu-list>
You are very probably right about cpuset not mentioned here, but I got it indirectly from this helpful andypugh's
answer
So, going to
SabbyX's github
, one gets info about both isolcpu's and cpuset
Yet some more clarity would be quite helpful, he talks about insmod:
Code:
Then what you have to do on the RTAI side is to load the core RTAI HAL moduleusing something like: "insmod rtai_hal.ko IsolCpusMask=<xxx>", where <xxx> is the mask of isolated CPUs[/code}
However that seems to just load the module into the kernel, but some more info about how to start axis GUI, etc, would be helpful. I.E, when testing latency, I do...
[code]taskset 1 latency-histogram{/code]
...or even...
[code]taskset 1 linuxcnc
...to see what the latency could really be using isolcpus/make sure linuxcnc isn't getting disturbed by other system tasks
In the cpuset initscript example, again the code seems quite clear to me, however having also the commands to start each part of linuxcnc in each cpuset would be also helpful
I'm going to test, among others, a 4-core computer and, since this is a more powerful machine, isolcpus is deprecated by kernel developers so probably missing in the future, and cpuset is said to be "better than isolcpus", I'm trying cpuset (at this moment in an Athlon X2 dual core machine). Yet I'm getting better results with isolcpus, so I guess I'm getting something wrong about launching linuxcnc via cpuset (and probably so even via isolcpus) .
So my questions are about:
1- How to launch linuxcnc to be sure it gets one or more CPUs exclusively for himself.
2- In the example, SabbyX seems to put the GUI (axis, whatever) in the second core, which wouldn't be a real-time one. ¿Am I getting it right? What command should I use to do that?
(edited twice, first for typos then for tag mess)
Cheers