Skip to contentSkip to conversation

chcpu documentation update

PATCH Applied Mete Durlu 2 participants 4 messages Sep 2, 2024 – Sep 3, 2024 Util-Linux package

lore
Share & tools
lore

Mete Durlu

author
#0 lore raw

cover chcpu documentation update

This patch series, fixes a typo and adds a CPU (de)configuration hint to the chcpu manual.

Mete Durlu (2):
chcpu(8): Fix typo
chcpu(8): Document CPU deconfiguring behavior

 sys-utils/chcpu.8.adoc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Signature · 1 line
2.46.0
author
#1 lore raw

PATCH 1/2 chcpu(8): Fix typo

---
 sys-utils/chcpu.8.adoc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sys-utils/chcpu.8.adoc +1 -1
index 80dfc5f20..0b0bcbc57 100644
@@ -38,7 +38,7 @@ Enable the specified CPUs. Enabling a CPU means that the kernel sets it online.
 *-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.
 +
-*chcpu -g* is not supported on IBM z/VM, CPUs are always in a configured.
+*chcpu -g* is not supported on IBM z/VM, CPUs are always in a configured state.
 
 *-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:
Signature · 1 line
2.46.0
author
#2 lore raw

PATCH 2/2 chcpu(8): Document CPU deconfiguring behavior

In reply to Mete Durlu

If architecture supports (de)configuring CPUs, the user should deconfigure disabled CPUs to prevent performance penalties.

---
 sys-utils/chcpu.8.adoc | 2 ++
 1 file changed, 2 insertions(+)
sys-utils/chcpu.8.adoc +2 -0
index 0b0bcbc57..f08b5a6ab 100644
@@ -39,6 +39,8 @@ Enable the specified CPUs. Enabling a CPU means that the kernel sets it online.
 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.
 +
 *chcpu -g* is not supported on IBM z/VM, CPUs are always in a configured state.
++
+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.
 
 *-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:
Signature · 1 line
2.46.0
maintainer Applied
#3 lore raw
In reply to Mete Durlu
Quoted 3 lines · Mete Durlu

Mete Durlu (2):
chcpu(8): Fix typo
chcpu(8): Document CPU deconfiguring behavior

Applied, thanks!

Karel

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com