]> git.ipfire.org Git - thirdparty/util-linux.git/blame - sys-utils/chcpu.8
su: change error message
[thirdparty/util-linux.git] / sys-utils / chcpu.8
CommitLineData
c372860d 1.TH CHCPU 8 "July 2014" "util-linux" "System Administration"
0b57c6c2 2.SH NAME
5f2ce404 3chcpu \- configure CPUs
0b57c6c2 4.SH SYNOPSIS
c372860d
BS
5.B chcpu
6.BR \-c | \-d | \-e | \-g
7.I cpu-list
0b57c6c2 8.br
c372860d
BS
9.B chcpu \-p
10.I mode
0b57c6c2 11.br
c372860d
BS
12.B chcpu
13.BR \-r | \-h | \-V
0b57c6c2
HC
14.SH DESCRIPTION
15.B chcpu
a6210872
SK
16can modify the state of CPUs. It can enable or disable CPUs, scan for new
17CPUs, change the CPU dispatching
18.I mode
19of the underlying hypervisor, and request CPUs from the hypervisor
20(configure) or return CPUs to the hypervisor (deconfigure).
21.PP
22Some options have a
23.I cpu-list
24argument. Use this argument to specify a comma-separated list of CPUs. The
25list can contain individual CPU addresses or ranges of addresses. For
26example,
27.B 0,5,7,9-11
28makes the command applicable to the CPUs with the addresses 0, 5, 7, 9, 10,
29and 11.
0b57c6c2 30.SH OPTIONS
0b57c6c2 31.TP
5f2ce404 32.BR \-c , " \-\-configure " \fIcpu-list\fP
c372860d 33Configure the specified CPUs. Configuring a CPU means that the hypervisor
a6210872
SK
34takes a CPU from the CPU pool and assigns it to the virtual hardware on which
35your kernel runs.
0b57c6c2 36.TP
c372860d
BS
37.BR \-d , " \-\-disable " \fIcpu-list\fP
38Disable the specified CPUs. Disabling a CPU means that the kernel sets it
39offline.
40.TP
5f2ce404 41.BR \-e , " \-\-enable " \fIcpu-list\fP
c372860d
BS
42Enable the specified CPUs. Enabling a CPU means that the kernel sets it
43online. A CPU must be configured, see \fB\-c\fR, before it can be enabled.
44.TP
45.BR \-g , " \-\-deconfigure " \fIcpu-list\fP
46Deconfigure the specified CPUs. Deconfiguring a CPU means that the
47hypervisor removes the CPU from the virtual hardware on which the Linux
48instance runs and returns it to the CPU pool. A CPU must be offline, see
49\fB\-d\fR, before it can be deconfigured.
0b57c6c2 50.TP
5f2ce404 51.BR \-p , " \-\-dispatch " \fImode\fP
a6210872
SK
52Set the CPU dispatching
53.I mode
54(polarization). This option has an effect only if your hardware architecture
55and hypervisor support CPU polarization. Available
56.I modes
57are:
58.RS 14
5f2ce404 59.TP 12
a6210872 60.PD 0
5f2ce404
HC
61.B horizontal
62The workload is spread across all available CPUs.
63.TP 12
64.B vertical
65The workload is concentrated on few CPUs.
66.RE
a6210872 67.PD 1
0b57c6c2 68.TP
c372860d
BS
69.BR \-r , " \-\-rescan"
70Trigger a rescan of CPUs. After a rescan, the Linux kernel recognizes
71the new CPUs. Use this option on systems that do not
72automatically detect newly attached CPUs.
0b57c6c2 73.TP
c372860d
BS
74.BR \-V , " \-\-version"
75Display version information and exit.
0b57c6c2 76.TP
5f2ce404 77.BR \-h , " \-\-help"
b4362b6f 78Display help text and exit.
48fc00c1
KZ
79
80.SH RETURN CODES
81.B chcpu
82has the following return codes:
83.TP
0bb7e904 84.B 0
48fc00c1
KZ
85success
86.TP
0bb7e904 87.B 1
48fc00c1
KZ
88failure
89.TP
0bb7e904 90.B 64
48fc00c1
KZ
91partial success
92.RE
0b57c6c2 93.SH AUTHOR
a6210872
SK
94.MT heiko.carstens@de.ibm.com
95Heiko Carstens
96.ME
0b57c6c2
HC
97.SH COPYRIGHT
98Copyright IBM Corp. 2011
99.br
100.SH "SEE ALSO"
101.BR lscpu (1)
102.SH AVAILABILITY
103The chcpu command is part of the util-linux package and is available from
d673b74e 104.UR https://\:www.kernel.org\:/pub\:/linux\:/utils\:/util-linux/
a6210872
SK
105Linux Kernel Archive
106.UE .