Saturday, June 6, 2009

Force processes to a specific processor (processor affinity)

In OpenSUSE 11.1, you can use the taskset command to force a process to a single processor or set of processors. Some race condition bugs in Wine may be helped by fixing Wine to a single processor. To do so, use:

taskset -c 0 PROGRAM

The "0" is the processor to use (starting from zero). Another possibility includes "-c 0,2-3" which would run the program on the first, third, and fourth processors.

No comments:

Post a Comment