Changing the configuration state of CPUs
![]()
A CPU on an LPAR can be in a configured, standby, or
reserved state. You can change the state of standby CPUs to
configured state and vice versa.
Before you begin
- You can change the configuration state of CPUs for Linux® in LPAR mode only.
- Daemon processes like cpuplugd can change the state of any CPU at any time. Such changes can interfere with manual changes.
About this task
configured state are brought online and used. The kernel does not detect CPUs in
reserved state.Procedure
Issue a command of this form to change the configuration state of a CPU:
# chcpu -c|-g <N>where
- <N>
- is the number of the logical CPU.
- -c
- changes the configuration state of a CPU from
standbytoconfigured. - -g
- changes the configuration state of a CPU from
configuredtostandby. Only offline CPUs can be changed to thestandbystate.
Alternatively, you can write
1 to the configure sysfs
attribute of a CPU to set its configuration state to configured, or
0 to change its configuration state to standby.Examples:
- The following chcpu command changes the state of the logical CPU with number
2fromstandbytoconfigured:# chcpu -c 2
The following command achieves the same results by writing1to the configure sysfs attribute of the CPU.# echo 1 > /sys/devices/system/cpu/cpu2/configure
- The following chcpu command changes the state of the logical CPU with number
2fromconfiguredtostandby:# chcpu -g 2
The following command achieves the same results by writing0to the configure sysfs attribute of the CPU.# echo 0 > /sys/devices/system/cpu/cpu2/configure