On Linux, FairCom supports 2 methods for binding the FairCom Server to a given set of CPUs. The easiest method (supported staring with V12) is to use the CPU_AFFINITY keyword (the same format is supported for both Windows and Linux).
The second method is using the taskset command shown below.
Usage:
taskset [options] [mask | cpu-list] [pid | cmd [args...]]
Set or get the affinity of a process:
The default behavior is to run a new command:
taskset 03 sshd -b 1024
You can retrieve the mask of an existing task:
taskset -p 700
Or set it:
taskset -p 03 700
List format uses a comma-separated list of CPUs instead of a mask:
taskset -pc 0,3,7-11 700
Ranges in list format can take a stride argument, for example:
0-31:2
is equivalent to mask:
0x55555555