title: setting cpu affinity for linux kernel, not process
body: <p>I am having a hard time finding information about how to set cpu affinity for linux kernel (with all of its loaded modules), NOT for a specific process.</p>
  
  <p>This is because I want the kernel to run on CPU 0 all the time to handle I/O stuff, and not do any switches to run on other 3 CPUs because it may pollute L1 and L2 caches.</p>
  
  <p>Thanks in advance.</p>
  
  <p>Nulik</p>