SCF Reference Manual for the Kernel Subsystem
Table 9 Using the PRIMARYCPU and STARTUPMSG Attributes
If Processor 0 Is Down...If Processor 0 Is Up...Configuration Attributes When...
Primary Processor Must Start:
Process does not start.RUN prog /CPU 0/1PRIMARYCPU 0
STARTUPMSG “1”
(Both processors run)
Either Processor Can Start:
RUN prog /CPU 1/0RUN prog /CPU 0/1PRIMARYCPU 0
BACKUPCPU 1
(Backup processor runs)(Both processors run)
STARTUPMSG “<BCKP-CPU>”
The assumptions for creating a generic process as a process pair are:
• The program is configured to get its backup processor from the startup message.
• The program’s primary process starts its own backup process when that processor becomes
available.
• Once started, $ZPM manages the persistence of the process or process pair.
Starting in a Designated Processor
Configuring a generic process to always start in the designated primary processor is also known
as fixed processor configuration. To create a fixed processor configuration, specify these attributes
in the SCF ADD command:
• The PRIMARYCPU attribute with the primary processor number
• The STARTUPMSG attribute with the backup processor number
You should specify a fixed processor configuration if the process must start with its primary process
in the primary processor; that is, you do not want the process to start in the backup processor.
Do not specify the BACKUPCPU attribute.
Example
This example illustrates configuring a generic process that must start with the primary process in
processor 0:
-> ADD PROCESS $ZZKRN.#PROC-A, &
NAME $PROCA, &
PROGRAM $SYSTEM.SYSTEM.TACL, &
HOMETERM $TERM.#T1, &
INFILE $TERM.#T1, &
OUTFILE $TERM.#T1, &
PRIMARYCPU 0, &
STARTUPMSG "1", &
STARTMODE MANUAL
-> START PROCESS $ZZKRN.#PROC-A
-> INFO PROCESS $ZZKRN.#PROC-A, DETAIL
NONSTOP KERNEL - Detailed Info PROCESS \EAST.$ZZKRN.#PROC-A
*AutoRestart...............0
*BackupCPU.................Not Specified
*CPU.......................Not Specified
*DefaultVolume.............$SYSTEM.NOSUBVOL
*ExtSwap...................Not Specified
*Highpin...................ON
*HomeTerminal..............$TERM.#T1
*InFile....................$TERM.#T1
*Library...................Not Specified
*MemPages..................Not Specified
Adding a Generic Process 51