Pages

▼

October 11, 2007

Binding process to specific CPU

Hi, there is easy way to bind process for specific CPU under Linux and Solaris.

Under Linux to bind process to CPU 0:
 taskset -c 0 process

To bind existing process with PID 22560 to processor 1:
taskset -pc 1 22560

For NUMA systems look at numactl utility.

Under Solaris to bind process with PID 208 to CPU 2:
pbind -b 2 208

No comments:

Post a Comment