Here is how to bind a program to a CPU (process affinity):
Bind processes to a CPU core
An example would be:
taskset -pc 0,1,2 20509
to set processid #20509 to have affinity (bind) on Cpu0, Cpu1, and Cpu2. To bind it to a single core, use the command:
taskset -pc 0 20509
to bind it to Cpu0.
No comments:
Post a Comment