Thursday, August 20, 2009

CPU affinity

Soft CPU affinity
Processes do not frequently migrate between processors.
Hard CPU affinity
Processes run on processors you specify.

The Linux kernel API:
  • To alter the bitmask
       sched_set_affinity()
  • To view the current bitmask
       sched_get_affinity()
  • No comments: