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, --configure cpu-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, --disable cpu-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, --enable cpu-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, --deconfigure cpu-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, --dispatch mode โ€” 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 IBM Corp. 2011

2011?? vintage. retro. classic. still slaying after all these years. ๐ŸŽ€


๐Ÿ”ฅ SEE ALSO ๐Ÿ”ฅ

lscpu(1)

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