CPU0 is the primary for instance 0. CPU1 is the primary for
instance 1.
The following example is for an AlphaServer ES40 with three
CPUs and 512 MB of memory divided into 256 MB + 192 MB + 64 MB:
P00>>> set lp_count 2
P00>>> set lp_cpu_mask0 1
P00>>> set lp_cpu_mask1 6
P00>>> set lp_io_mask0 1
P00>>> set lp_io_mask1 2
P00>>> set lp_mem_size0 10000000
P00>>> set lp_mem_size1 c000000
P00>>> set lp_shared_mem_size 4000000
P00>>> set console_memory_allocation new
P00>>> set auto_action halt
If you have four CPUs and you want to assign all secondary
CPUs to instance 1, the LP_CPU_MASK1 variable will be E. If you
split the CPUs between both instances, CPU 0 must be the primary
for instance 0, and CPU 1 must be the primary CPU for instance 1.
The following example shows LP_CPU_MASK values for secondary
CPU assignments with primary CPUs:
Assign secondary CPU 2 with primary CPU 0 and secondary CPU
3 with primary CPU 1.
>>>set lp_cpu_mask0 5
>>>set lp_cpu_mask1 A
CPU Selection LP_CPU_MASK
0(primary partition 0) 2^0 = 1
1(primary partition 1) 2^1 = 2
2(secondary) 2^2 = 4
3(secondary) 2^3 = 8
The MEM_SIZE variables depend on your configuration and how
you want to split it up.
lp_io_mask0 must be set to 1.
lp_io_mask1 must be set to 2.
You must set the console environment variable AUTO_ACTION
to HALT. This ensures that the system does not boot and that you
are able to enter the LPINIT command.