1 //po4a: entry man manual
4 :man manual: System Administration
5 :man source: util-linux {release-version}
11 chcpu - configure CPUs
15 *chcpu* *-c*|*-d*|*-e*|*-g* _cpu-list_
19 *chcpu* *-r*|*-h*|*-V*
23 *chcpu* can modify the state of CPUs. It can enable or disable CPUs, scan for new CPUs, change the CPU dispatching _mode_ of the underlying hypervisor, and request CPUs from the hypervisor (configure) or return CPUs to the hypervisor (deconfigure).
25 Some options have a _cpu-list_ argument. Use this argument to specify a comma-separated list of CPUs. The list can contain individual CPU addresses or ranges of addresses. For example, *0,5,7,9-11* makes the command applicable to the CPUs with the addresses 0, 5, 7, 9, 10, and 11.
29 *-c*, *--configure* _cpu-list_::
30 Configure the specified CPUs. Configuring a CPU means that the hypervisor takes a CPU from the CPU pool and assigns it to the virtual hardware on which your kernel runs.
32 *-d*, *--disable* _cpu-list_::
33 Disable the specified CPUs. Disabling a CPU means that the kernel sets it offline.
35 *-e*, *--enable* _cpu-list_::
36 Enable the specified CPUs. Enabling a CPU means that the kernel sets it online. A CPU must be configured, see *-c*, before it can be enabled.
38 *-g*, *--deconfigure* _cpu-list_::
39 Deconfigure the specified CPUs. Deconfiguring a CPU means that the hypervisor removes the CPU from the virtual hardware on which the Linux instance runs and returns it to the CPU pool. A CPU must be offline, see *-d*, before it can be deconfigured.
41 *-p*, *--dispatch* _mode_::
42 Set the CPU dispatching _mode_ (polarization). This option has an effect only if your hardware architecture and hypervisor support CPU polarization. Available _modes_ are:
45 The workload is spread across all available CPUs.
48 The workload is concentrated on few CPUs.
51 Trigger a rescan of CPUs. After a rescan, the Linux kernel recognizes the new CPUs. Use this option on systems that do not automatically detect newly attached CPUs.
53 include::man-common/help-version.adoc[]
57 *chcpu* has the following exit status values:
70 mailto:heiko.carstens@de.ibm.com[Heiko Carstens]
74 Copyright IBM Corp. 2011
80 include::man-common/bugreports.adoc[]
82 include::man-common/footer.adoc[]
85 include::man-common/translation.adoc[]