CHCPU(8)
๐ CHCPU(8) โ configure CPUs
okay bestie, listen up โ this is the chcpu manual page, straight out of System Administration section 8. If you've ever wanted to boss your CPUs around like they owe you money, this is the tool. โจ
๐ธ NAME ๐ธ
chcpu โ configure CPUs
that's it. that's the name. she configures CPUs. iconic behavior.
โจ SYNOPSIS โจ
chcpu -c|-d|-e|-g cpu-list
chcpu -p mode
chcpu -r|-h|-V
three whole moods, pick one. The first form needs a cpu-list, the second needs a mode, and the third is just vibes (no arguments, we love a low-maintenance queen). ๐ซถ
๐ฆ DESCRIPTION ๐ฆ
So chcpu can modify the state of CPUs. That's the whole thing. 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 (that's configure) or return CPUs to the hypervisor (that's deconfigure). ๐ซ
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. see how 9-11 expands? she contains multitudes. ๐
๐ OPTIONS ๐
-c,--configurecpu-list โ 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. So like, the CPU gets adopted into the family. ๐-d,--disablecpu-list โ Disable the specified CPUs. Disabling a CPU means that the kernel sets it offline. she's off the clock, do not perceive her. ๐ด-e,--enablecpu-list โ Enable the specified CPUs. Enabling a CPU means that the kernel sets it online. IMPORTANT bestie: a CPU must be configured (see-c) before it can be enabled. no skipping steps, we do not cut corners in this house. โ-g,--deconfigurecpu-list โ 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. and here's the catch: a CPU must be offline (see-d) before it can be deconfigured. also โ
heads up bestie: chcpu -g is not supported on IBM z/VM โ CPUs are always in a configured state there. no deconfiguring, she's committed.
and if chcpu -g is supported: any disabled CPUs should be deconfigured to inform the hypervisor that these CPUs won't be used, avoiding potential performance penalties. so like, tell the hypervisor you're not using them or she WILL hold a grudge. ๐ญ
-p,--dispatchmode โ Set the CPU dispatching mode (polarization). This option has an effect only if your hardware architecture and hypervisor support CPU polarization. Available modes are:horizontalโ The workload is spread across all available CPUs. egalitarian queen. everyone eats. ๐ฝ๏ธverticalโ The workload is concentrated on few CPUs. focused. selective. main character energy. ๐
-r,--rescanโ 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. aka the ones that need a little nudge. ๐-h,--helpโ Display help text and exit. ๐-V,--versionโ Display version and exit. flex your version, bestie. ๐
๐ EXIT STATUS ๐
chcpu has the following exit status values:
0โ success. we ate. no crumbs. โจ1โ failure. she did NOT eat. ๐ญ64โ partial success. half-ate. confusing vibe but okay. ๐
๐ AUTHORS ๐
Heiko Carstens <heiko.carstens@de.ibm.com>
shoutout to the author, real one fr fr. ๐ซถ
โญ COPYRIGHT โญ
Copyright IBM Corp. 2011
2011?? vintage. retro. classic. still slaying after all these years. ๐
๐ฅ SEE ALSO ๐ฅ
the sibling page. the sister. go read her too, iykyk. ๐
๐ REPORTING BUGS ๐
For bug reports, use the issue tracker <https://github.com/util-linux/util-linux/issues>.
found a bug? do NOT suffer in silence, go tell the tracker. that's the group chat. ๐ฃ
๐ธ AVAILABILITY ๐ธ
The chcpu command is part of the util-linux package which can be downloaded from Linux Kernel Archive <https://www.kernel.org/pub/linux/utils/util-linux/>.
and that's the whole page bestie!! ๐
This lil masterpiece is from util-linux 2.42.4, dated 2026-09-21 โ so like, she's fresh, she's current, she's serving CHCPU(8) energy. go configure some CPUs and be iconic about it. ๐โจ๐ฆ๐
๐ฆ where this page comes from
- arch rolling: util-linux 2.42.4-1 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ISC AND LGPL-2.1-or-later AND LicenseRef-PublicDomain
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms