![Cisco ASR 14000 Series Management Command Reference Download Page 498](http://html.mh-extra.com/html/cisco/asr-14000-series/asr-14000-series_management-command-reference_66667498.webp)
C i s c o C o n f i d e n t i a l - B e t a R e v i e w R 3 . 7. 1
Process and Memory Management Commands on Cisco IOS XR Software
affinity program
SMR-496
Cisco ASR 14000 Series Router System Management Command Reference
OL-17231-01
affinity program
To set the affinity of a placeable program (process) to or from another program, use the
affinity program
command in placement program configuration mode. To remove the affinity of a program, use the
no
form of this command.
affinity program
program
{
attract
strength
|
repulse
strength
|
default
|
none
}
no affinity program
program
{
attract
strength
|
repulse
strength
|
default
|
none
}
Syntax Description
Defaults
Specifying an affinity value of
default
is equivalent to specifying the
attract
strength
argument to be
200.
Command Modes
Placement program configuration
Command History
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes the proper
task IDs.
The
affinity program
command is used to collocate processes or keep them apart. You would want to
use this command because you have learned that certain processes perform better when they are running
together on the same node (
attract
)—or on different nodes, apart from each other (
repulse
).
Task ID
Examples
The following example shows how to keep IPv4 and IPv6 Routing Information Bases (RIBs) apart:
RP/0/RP0/CPU0:router(config)#
placement program ipv4_rib
RP/0/RP0/CPU0:router(config-place)#
affinity program ipv6_rib repulse 200
program
Name of specific a program or program group.
attract
Specifies a positive affinity.
repulse
Specifies a negative affinity.
strength
A positive or negative strength. The range is from 1 to 100000.
default
Sets the affinity value to the default.
none
Sets the affinity value to zero.
Release
Modification
Release 3.7.1
This command was introduced on the Cisco ASR 14000 Series Router.
Task ID
Operations
sysmgr
read, write