Guardian Programmer's Guide

Table Of Contents
Creating and Managing Processes
Guardian Programmer’s Guide 421922-014
16 - 66
Controlling the IPU Affinity of Processes
The IPUAFFINITY_GET_ procedure can be used to get the current IPU a process
associated with, as well as an indicator if the process can be the target of an
IPUAFFINITY_SET call.
The IPUAFFINITY_CONTROL_ procedure is used to control Process Scheduler
characteristics. It can cause the process scheduler to stop scheduling (that is
changing) all processes with soft affinity or all DP2 processes (group affinity
processes). It can also be used to disassociate all bindings that were created via
IPUAFFINITY_SET_.
It is very important to remember that using IPUAFFINITY_SET_ and
IPUAFFINITY_CONTROL_ restrict the function of the process scheduler to keep the
CPU (that is all its IPUs) in balance. Much care should be exercised when utilizing
these functions as an inappropriate choice can cause severe performance problems.