Skip to main content
  1. Home >
  2. Products >
  3. Computing Products >
  4. Servers >
  5. Fujitsu SPARC servers >
  6. Downloads >
  7. User Manuals >
  8. Fujitsu SPARC M12 and Fujitsu M10/SPARC M10 Domain Configuration Guide >
  9. 3.1.14 Assigning CPU Core Resources Used in a Physical Partition

3.1.14 Assigning CPU Core Resources Used in a Physical Partition


3.1.14 Assigning CPU Core Resources Used in a Physical Partition
Execute the setcod command interactively to assign CPU core resources to a physical partition based on the CPU Activations registered in the system.
Note - A user account that has the platadm privilege can execute the setcod command.
XSCF> setcod [-p ppar_id] -s cpu
PROC Permits installed: XX cores
PROC Permits assigned for PPAR 0 (X MAX)
[Permanent Xcores]
Permanent [X]: permits
PROC Permits assigned for PPAR 1 (X MAX)
[Permanent Xcores]
Permanent [X]: permits
:Omitted
If XSCF firmware of XCP 2260 or later has been applied, the following command can also be executed for this purpose.
XSCF> setcod [[-q] -{y|n}] -p ppar_id -s cpu -c {set|add|del} permits
  1. -p ppar_id option

    Specify the physical partition ID to which to assign the CPU core resources. If you do not specify the permits operand, an interactive session to assign CPU core resources will start.
  2. -s cpu

    Specify a CPU.
  3. permits
    Specify the number of CPU Activations. A CPU Activation can be assigned on a core-by-core basis. The set number cannot exceed the number of available CPU Activations. If you do not specify the permits operand, an interactive session to assign CPU core resources will start.
  4. -c {set|add|del}

    Specify -c set to assign a CPU Activation to a physical partition, -c add to increase the number of assigned CPU Activations, or -c del to delete an assigned CPU Activation.
Note - We do not recommend using the setcod command with the following specification:
XSCF> setcod -p ppar_id -s cpu permits
To execute the setcod command using XCP firmware of XCP 2260 or later, specify the -c option or use an interactive mode. Use an interactive mode for XCP 2250 or earlier.
The reasons for this are as follows:
- When the command is executed, the confirmation message that asks you whether to make a change using the set information ([y|n]) is not output.

- When you reduce the number of CPU Activations assigned to a physical partition in operation, a warning message is not output.

This may cause system shutdown if there are not enough CPU Activations because of an incorrect permits specification or some other mistake.
The upper limit is the number of CPU Activations registered with the addcodactivation command.
Note - To specify the number of CPU Activations by using -c set or without using the -c option, specify in the permits operand either the currently set number plus the number of added CPU Activations or the currently set number minus the number of deleted CPU Activations. Do not specify the number of CPU Activations to be added or deleted alone. If you inadvertently specify the number of CPU Activations to be added or deleted alone, the number of CPU Activations decreases, which may cause the system to stop.
The following example assigns four CPU core resources to physical partition 1.
XSCF> setcod -p 1 -s cpu -c set 4
PROC Permits assigned for PPAR 1 : 0 -> 4
PROC Permits assigned for PPAR will be changed.
Continue? [y|n] :y
Completed.
The following example interactively assigns CPU core resources to the physical partition.
XSCF> setcod -s cpu
PROC Permits installed: 5 cores
PROC Permits assigned for PPAR 0 (5 MAX) [Permanent 2cores]
Permanent [2]:1
PROC Permits assigned for PPAR 1 (4 MAX) [Permanent 0cores]
Permanent [0]:4
PROC Permits assigned for PPAR 2 (0 MAX) [Permanent 0cores]
Permanent [0]:
PROC Permits assigned for PPAR 3 (0 MAX) [Permanent 0cores]
Permanent [0]:
PROC Permits assigned for PPAR 4 (0 MAX) [Permanent 0cores]
Permanent [0]:
PROC Permits assigned for PPAR 5 (0 MAX) [Permanent 0cores]
Permanent [0]:
PROC Permits assigned for PPAR 6 (0 MAX) [Permanent 0cores]
Permanent [0]:
PROC Permits assigned for PPAR 7 (0 MAX) [Permanent 0cores]
Permanent [0]:
PROC Permits assigned for PPAR 8 (0 MAX) [Permanent 0cores]
Permanent [0]:
PROC Permits assigned for PPAR 9 (0 MAX) [Permanent 0cores]
Permanent [0]:
PROC Permits assigned for PPAR 10 (0 MAX) [Permanent 0cores]
Permanent [0]:
PROC Permits assigned for PPAR 11 (0 MAX) [Permanent 0cores]
Permanent [0]:
PROC Permits assigned for PPAR 12 (0 MAX) [Permanent 0cores]
Permanent [0]:
PROC Permits assigned for PPAR 13 (0 MAX) [Permanent 0cores]
Permanent [0]:
PROC Permits assigned for PPAR 14 (0 MAX) [Permanent 0cores]
Permanent [0]:
PROC Permits assigned for PPAR 15 (0 MAX) [Permanent 0cores]
Permanent [0]:
The following example adds two CPU core resources to physical partition 0.
XSCF> showcod -p 0
PROC Permits assigned for PPAR 0: 10
XSCF> setcod -p 0 -s cpu -c add 2
PROC Permits assigned for PPAR 0 : 10 -> 12
PROC Permits assigned for PPAR will be changed.
Continue? [y|n] :y
Completed.
XSCF> showcod -p 0
PROC Permits assigned for PPAR 0: 12
Note - With setcod -p 0 -s cpu -c set 12 specified, the command yields the same results.
Note - XSCF firmware of versions XCP 2250 and earlier do not support the -c add, -c delete, and -c set options. Specify the options of the setcod command as shown below to interactively add and delete CPU core resources.
XSCF> setcod -s cpu