« Nagle | Main | Volatile »

Binding processes to processors

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
« Nagle | Main | Volatile »
Comments:

Curt, but very useful information.

Posted by R Rajesh on June 07, 2007 at 04:23 PM PDT #

Post a Comment:
Comments are closed for this entry.
About

Darryl Gove is a senior engineer in the Solaris Studio team, working on optimising applications and benchmarks for current and future processors. He is also the author of the books:
Multicore Application Programming
Solaris Application Programming
The Developer's Edge
Free Download

Search

Categories
Archives
« May 2015
SunMonTueWedThuFriSat
     
1
2
3
4
6
7
8
9
10
11
12
14
15
16
17
18
19
20
21
22
23
24
25
27
29
30
31
      
Today
Bookmarks
The Developer's Edge
Solaris Application Programming
Publications
Webcasts
Presentations
OpenSPARC Book
Multicore Application Programming
Docs