R0106-HP MSR Router Series High Availability Command Reference(V7)
74
Process placement commands
The following matrix shows the feature and hardware compatibility:
Hardware Process
p
lacement com
p
atibilit
y
MSR2000 No
MSR3000 No
MSR4000 Yes
affinity location-set
Use affinity location-set to set the affinity of a process to a set of CPUs.
Use undo affinity location-set to remove the configuration.
Syntax
affinity location-set { slot slot-number [ cpu cpu-number ] }&<1-5> { attract strength | default | none |
repulse strength }
undo affinity location-set { slot slot-number [ cpu cpu-number ] }&<1-5>
Default
No location affinity is configured for any process.
Views
Placement process view
Predefined user roles
network-admin
Parameters
{ slot slot-number [ cpu cpu-number ] }&<1-5>: Specifies the affinity.
• slot slot-number: Specifies an MPU by its slot number.
• cpu cpu-number: Specifies a CPU by its number. If no CPU is specified, the command sets the
affinity to the main CPU.
attract strength: Sets a positive affinity in the range of 1 to 100000. The higher the value, the stronger
the preference for the process to run in the specified CPU.
default: Sets the affinity to the default, a positive affinity of 200.
none: Sets the affinity to 0, which means the active process has no preference for any location and the
system determines its location.
repulse strength: Sets a negative affinity in the range of 1 to 100000. The higher the value, the weaker
the preference for the process to run in the specified CPU.
Usage guidelines
This command sets the preference for a process to run on a specific CPU. You can specify up to five CPUs
in this command.










