1CHCPU(8)                     System Administration                    CHCPU(8)
2
3
4

NAME

6       chcpu - configure CPUs
7

SYNOPSIS

9       chcpu -c|-d|-e|-g cpu-list
10       chcpu -p mode
11       chcpu -r|-h|-V
12

DESCRIPTION

14       chcpu  can  modify  the  state of CPUs.  It can enable or disable CPUs,
15       scan for new CPUs, change the CPU dispatching mode  of  the  underlying
16       hypervisor,  and request CPUs from the hypervisor (configure) or return
17       CPUs to the hypervisor (deconfigure).
18
19       Some options have a cpu-list argument.  Use this argument to specify  a
20       comma-separated  list  of  CPUs.   The  list can contain individual CPU
21       addresses or ranges of addresses.  For example,  0,5,7,9-11  makes  the
22       command  applicable  to the CPUs with the addresses 0, 5, 7, 9, 10, and
23       11.
24

OPTIONS

26       -c, --configure cpu-list
27              Configure the specified CPUs.  Configuring a CPU means that  the
28              hypervisor  takes  a CPU from the CPU pool and assigns it to the
29              virtual hardware on which your kernel runs.
30
31       -d, --disable cpu-list
32              Disable the specified CPUs.  Disabling a CPU means that the ker‐
33              nel sets it offline.
34
35       -e, --enable cpu-list
36              Enable the specified CPUs.  Enabling a CPU means that the kernel
37              sets it online.  A CPU must be configured, see -c, before it can
38              be enabled.
39
40       -g, --deconfigure cpu-list
41              Deconfigure  the specified CPUs.  Deconfiguring a CPU means that
42              the hypervisor removes the CPU  from  the  virtual  hardware  on
43              which the Linux instance runs and returns it to the CPU pool.  A
44              CPU must be offline, see -d, before it can be deconfigured.
45
46       -p, --dispatch mode
47              Set the CPU dispatching mode (polarization).  This option has an
48              effect only if your hardware architecture and hypervisor support
49              CPU polarization.  Available modes are:
50
51                     horizontal  The workload is spread across  all  available
52                                 CPUs.
53                     vertical    The workload is concentrated on few CPUs.
54
55       -r, --rescan
56              Trigger a rescan of CPUs.  After a rescan, the Linux kernel rec‐
57              ognizes the new CPUs.  Use this option on systems  that  do  not
58              automatically detect newly attached CPUs.
59
60       -V, --version
61              Display version information and exit.
62
63       -h, --help
64              Display help text and exit.
65
66

RETURN CODES

68       chcpu has the following return codes:
69
70       0      success
71
72       1      failure
73
74       64     partial success
75

AUTHOR

77       Heiko Carstens ⟨heiko.carstens@de.ibm.com⟩
78
80       Copyright IBM Corp. 2011
81

SEE ALSO

83       lscpu(1)
84

AVAILABILITY

86       The  chcpu  command  is part of the util-linux package and is available
87       from Linux Kernel Archive ⟨https://www.kernel.org/pub/linux/utils/util-
88       linux/⟩.
89
90
91
92util-linux                         July 2014                          CHCPU(8)
Impressum