http://rt.wiki.kernel.org/index.php/CPU_shielding_using_/proc_and_/dev/cpusetCPU shielding using /proc and /dev/cpusetFrom RTwikiInterrupt shieldingIn order to shield CPUs from individual interrupts being serviced on them you have to make sure that the following kernel configuration parameter is set:
Then make sure that the interrupts are not automatically balanced by the irqbalance daemon. This daemon is started from the irqbalance init script. To disable once do:
To disable after next reboot do:
After this you can change the CPU affinity mask of each interrupt by doing:
NOTE!
The mask is updated the next time an
interrupt is serviced. So you may not see the change immediately.
More information can be found in Process shieldingThe kernel has an cpuset feature that allows you to create cpusets
for real-time purposes. The kernel interface is proc filesystem based.
It is described in Here is a quick example of how to use cpuset to reserve one cpu for your real-time process on a 4 cpu machine:
|
