Binding processes to processors

Guest Author

Sometimes it can be useful to bind a process to a processor. An example of the benefit of doing this is reducing thread migration, and reducing cache misses through keeping the caches warm. The trouble with doing this is that it's easy to make a mistake and end up binding multiple processors to the same core - which can result in lower performance because the processes keep one core fully utilised while other cores sit idle.

There are various ways of binding processes to processors:

  • Processor sets for constraining applications to a group of processors
  • pbind for binding a process to a particular processor
  • processor_bind for pro grammatically binding a process to a processor

Join the discussion

Comments ( 1 )
  • R Rajesh Thursday, June 7, 2007
    Curt, but very useful information.
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.