HP MSR2000/3000/4000 Router Series High Availability Command Reference

65
Process placement commands
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: This option does not take effect in the current release. The slot-number argument always
takes the value of 0. (MSR2000/MSR3000)
slot slot-number: Specifies an MPU. The slot-number argument specifies the slot that holds the MPU.
(MSR4000)
cpu cpu-number: Specifies a CPU by its number. The value range of the cpu-number argument depends
on the device model. If the card has multiple CPUs (such as main and auxiliary CPUs), use this option to
specify a CPU. 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.
Examples
# (MSR4000) Configure a positive affinity of 500 to slot 3 for BGP.
<Sysname> system-view
[Sysname] placement program bgp