You can set affinity by range with other like a specify CPU

$ taskset -cp 1-3,12 14846

Or

$ taskset -cp 1-6:2 14846

The suffix ":N" specifies stride in the range, for example 0-10:3 is interpreted as 0,3,6,9 list.

Comments