Configuring a process affinity

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter placement process view.

  • Enter default placement process view:placement program default

  • Enter placement process view:placement program { program-name [ instance instance-name ]

Settings in default placement process view take effect for all processes. Settings in placement process view take effect only for the specified process.

3. Configure the affinity for the process to run on the same location as another process.

affinity program program-name { attract strength | default | none | repulse strength }

By default, no process affinity is set.