Deploying in Linux¶
The MARTe real-time performance is as good as the operating system real-time performance.
In Linux, the best strategy is to isolate the CPUs from the Linux scheduler (using the isolcpus
parameter) and to assign the MARTe real-time threads to these CPUs.
Best practices from existent projects¶
Switch off all the services which are not required for the project and in particular any services that might interfere with the CPU performance and interrupt allocation (e.g.
cpuspeed
andirqbalance
).Boot with isolated CPUs
isolcpus=1,2,3 intel_idle.max_cstate=0 processor.max_cstate=0 idle=poll selinux=0 maxcpus=4