summaryrefslogtreecommitdiffstats
path: root/sys-utils/chcpu.8
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sys-utils/chcpu.8129
-rw-r--r--sys-utils/chcpu.8.adoc86
2 files changed, 215 insertions, 0 deletions
diff --git a/sys-utils/chcpu.8 b/sys-utils/chcpu.8
new file mode 100644
index 0000000..0a2c1dc
--- /dev/null
+++ b/sys-utils/chcpu.8
@@ -0,0 +1,129 @@
+'\" t
+.\" Title: chcpu
+.\" Author: [see the "AUTHOR(S)" section]
+.\" Generator: Asciidoctor 2.0.15
+.\" Date: 2022-05-11
+.\" Manual: System Administration
+.\" Source: util-linux 2.38.1
+.\" Language: English
+.\"
+.TH "CHCPU" "8" "2022-05-11" "util\-linux 2.38.1" "System Administration"
+.ie \n(.g .ds Aq \(aq
+.el .ds Aq '
+.ss \n[.ss] 0
+.nh
+.ad l
+.de URL
+\fI\\$2\fP <\\$1>\\$3
+..
+.als MTO URL
+.if \n[.g] \{\
+. mso www.tmac
+. am URL
+. ad l
+. .
+. am MTO
+. ad l
+. .
+. LINKSTYLE blue R < >
+.\}
+.SH "NAME"
+chcpu \- configure CPUs
+.SH "SYNOPSIS"
+.sp
+\fBchcpu\fP \fB\-c\fP|\fB\-d\fP|\fB\-e\fP|\fB\-g\fP \fIcpu\-list\fP
+.sp
+\fBchcpu\fP \fB\-p\fP \fImode\fP
+.sp
+\fBchcpu\fP \fB\-r\fP|\fB\-h\fP|\fB\-V\fP
+.SH "DESCRIPTION"
+.sp
+\fBchcpu\fP can modify the state of CPUs. It can enable or disable CPUs, scan for new CPUs, change the CPU dispatching \fImode\fP of the underlying hypervisor, and request CPUs from the hypervisor (configure) or return CPUs to the hypervisor (deconfigure).
+.sp
+Some options have a \fIcpu\-list\fP 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, \fB0,5,7,9\-11\fP makes the command applicable to the CPUs with the addresses 0, 5, 7, 9, 10, and 11.
+.SH "OPTIONS"
+.sp
+\fB\-c\fP, \fB\-\-configure\fP \fIcpu\-list\fP
+.RS 4
+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.
+.RE
+.sp
+\fB\-d\fP, \fB\-\-disable\fP \fIcpu\-list\fP
+.RS 4
+Disable the specified CPUs. Disabling a CPU means that the kernel sets it offline.
+.RE
+.sp
+\fB\-e\fP, \fB\-\-enable\fP \fIcpu\-list\fP
+.RS 4
+Enable the specified CPUs. Enabling a CPU means that the kernel sets it online. A CPU must be configured, see \fB\-c\fP, before it can be enabled.
+.RE
+.sp
+\fB\-g\fP, \fB\-\-deconfigure\fP \fIcpu\-list\fP
+.RS 4
+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 \fB\-d\fP, before it can be deconfigured.
+.RE
+.sp
+\fB\-p\fP, \fB\-\-dispatch\fP \fImode\fP
+.RS 4
+Set the CPU dispatching \fImode\fP (polarization). This option has an effect only if your hardware architecture and hypervisor support CPU polarization. Available \fImodes\fP are:
+.sp
+\fBhorizontal\fP
+.RS 4
+The workload is spread across all available CPUs.
+.RE
+.sp
+\fBvertical\fP
+.RS 4
+The workload is concentrated on few CPUs.
+.RE
+.RE
+.sp
+\fB\-r\fP, \fB\-\-rescan\fP
+.RS 4
+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.
+.RE
+.sp
+\fB\-h\fP, \fB\-\-help\fP
+.RS 4
+Display help text and exit.
+.RE
+.sp
+\fB\-V\fP, \fB\-\-version\fP
+.RS 4
+Print version and exit.
+.RE
+.SH "EXIT STATUS"
+.sp
+\fBchcpu\fP has the following exit status values:
+.sp
+\fB0\fP
+.RS 4
+success
+.RE
+.sp
+\fB1\fP
+.RS 4
+failure
+.RE
+.sp
+\fB64\fP
+.RS 4
+partial success
+.RE
+.SH "AUTHORS"
+.sp
+.MTO "heiko.carstens\(atde.ibm.com" "Heiko Carstens" ""
+.SH "COPYRIGHT"
+.sp
+Copyright IBM Corp. 2011
+.SH "SEE ALSO"
+.sp
+\fBlscpu\fP(1)
+.SH "REPORTING BUGS"
+.sp
+For bug reports, use the issue tracker at \c
+.URL "https://github.com/util\-linux/util\-linux/issues" "" "."
+.SH "AVAILABILITY"
+.sp
+The \fBchcpu\fP command is part of the util\-linux package which can be downloaded from \c
+.URL "https://www.kernel.org/pub/linux/utils/util\-linux/" "Linux Kernel Archive" "." \ No newline at end of file
diff --git a/sys-utils/chcpu.8.adoc b/sys-utils/chcpu.8.adoc
new file mode 100644
index 0000000..c5797df
--- /dev/null
+++ b/sys-utils/chcpu.8.adoc
@@ -0,0 +1,86 @@
+//po4a: entry man manual
+= chcpu(8)
+:doctype: manpage
+:man manual: System Administration
+:man source: util-linux {release-version}
+:page-layout: base
+:command: chcpu
+
+== NAME
+
+chcpu - configure CPUs
+
+== SYNOPSIS
+
+*chcpu* *-c*|*-d*|*-e*|*-g* _cpu-list_
+
+*chcpu* *-p* _mode_
+
+*chcpu* *-r*|*-h*|*-V*
+
+== DESCRIPTION
+
+*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).
+
+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.
+
+== 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.
+
+*-d*, *--disable* _cpu-list_::
+Disable the specified CPUs. Disabling a CPU means that the kernel sets it offline.
+
+*-e*, *--enable* _cpu-list_::
+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.
+
+*-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. A CPU must be offline, see *-d*, before it can be deconfigured.
+
+*-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.
+
+*vertical*;;
+The workload is concentrated on few CPUs.
+
+*-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.
+
+include::man-common/help-version.adoc[]
+
+== EXIT STATUS
+
+*chcpu* has the following exit status values:
+
+*0*::
+success
+
+*1*::
+failure
+
+*64*::
+partial success
+
+== AUTHORS
+
+mailto:heiko.carstens@de.ibm.com[Heiko Carstens]
+
+== COPYRIGHT
+
+Copyright IBM Corp. 2011
+
+== SEE ALSO
+
+*lscpu*(1)
+
+include::man-common/bugreports.adoc[]
+
+include::man-common/footer.adoc[]
+
+ifdef::translation[]
+include::man-common/translation.adoc[]
+endif::[]