Skip to content

Commit afe14ac

Browse files
committed
OCPBUGS-1507 making updates for --offlined-cpu-count
1 parent 8018ec1 commit afe14ac

3 files changed

+42
-30
lines changed

modules/cnf-performance-profile-creator-arguments.adoc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,22 @@ Default: `log`.
4747

4848
When the user runs the tool with the wrapper script `must-gather` is supplied by the script itself and the user must not specify it.
4949

50+
| `offlined-cpu-count`
51+
a| Number of offlined CPUs.
52+
53+
[NOTE]
54+
====
55+
This must be a natural number greater than 0. If not enough logical processors are offlined then error messages are logged. The messages are:
56+
[source,terminal]
57+
----
58+
Error: failed to compute the reserved and isolated CPUs: please ensure that reserved-cpu-count plus offlined-cpu-count should be in the range [0,1]
59+
----
60+
[source,terminal]
61+
----
62+
Error: failed to compute the reserved and isolated CPUs: please specify the offlined CPU count in the range [0,1]
63+
----
64+
====
65+
5066
| `power-consumption-mode`
5167
a|The power consumption mode.
5268

modules/cnf-running-the-performance-creator-profile-offline.adoc

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -134,25 +134,25 @@ Options:
134134
-h help for run-perf-profile-creator.sh
135135
-p Node Tuning Operator image <1>
136136
-t path to a must-gather tarball <2>
137-
138137
A tool that automates creation of Performance Profiles
139138

140-
Usage:
141-
performance-profile-creator [flags]
142-
143-
Flags:
144-
--disable-ht Disable Hyperthreading
145-
-h, --help help for performance-profile-creator
146-
--info string Show cluster information; requires --must-gather-dir-path, ignore the other arguments. [Valid values: log, json] (default "log")
147-
--mcp-name string MCP name corresponding to the target machines (required)
148-
--must-gather-dir-path string Must gather directory path (default "must-gather")
149-
--power-consumption-mode string The power consumption mode. [Valid values: default, low-latency, ultra-low-latency] (default "default")
150-
--profile-name string Name of the performance profile to be created (default "performance")
151-
--reserved-cpu-count int Number of reserved CPUs (required)
152-
--rt-kernel Enable Real Time Kernel (required)
153-
--split-reserved-cpus-across-numa Split the Reserved CPUs across NUMA nodes
154-
--topology-manager-policy string Kubelet Topology Manager Policy of the performance profile to be created. [Valid values: single-numa-node, best-effort, restricted] (default "restricted")
155-
--user-level-networking Run with User level Networking(DPDK) enabled
139+
Usage:
140+
performance-profile-creator [flags]
141+
142+
Flags:
143+
--disable-ht Disable Hyperthreading
144+
-h, --help help for performance-profile-creator
145+
--info string Show cluster information; requires --must-gather-dir-path, ignore the other arguments. [Valid values: log, json] (default "log")
146+
--mcp-name string MCP name corresponding to the target machines (required)
147+
--must-gather-dir-path string Must gather directory path (default "must-gather")
148+
--offlined-cpu-count int Number of offlined CPUs
149+
--power-consumption-mode string The power consumption mode. [Valid values: default, low-latency, ultra-low-latency] (default "default")
150+
--profile-name string Name of the performance profile to be created (default "performance")
151+
--reserved-cpu-count int Number of reserved CPUs (required)
152+
--rt-kernel Enable Real Time Kernel (required)
153+
--split-reserved-cpus-across-numa Split the Reserved CPUs across NUMA nodes
154+
--topology-manager-policy string Kubelet Topology Manager Policy of the performance profile to be created. [Valid values: single-numa-node, best-effort, restricted] (default "restricted")
155+
--user-level-networking Run with User level Networking(DPDK) enabled
156156
----
157157
+
158158
[NOTE]

modules/cnf-running-the-performance-creator-profile.adoc

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ Flags:
6767
--info string Show cluster information; requires --must-gather-dir-path, ignore the other arguments. [Valid values: log, json] (default "log")
6868
--mcp-name string MCP name corresponding to the target machines (required)
6969
--must-gather-dir-path string Must gather directory path (default "must-gather")
70+
--offlined-cpu-count int Number of offlined CPUs
7071
--power-consumption-mode string The power consumption mode. [Valid values: default, low-latency, ultra-low-latency] (default "default")
7172
--profile-name string Name of the performance profile to be created (default "performance")
7273
--reserved-cpu-count int Number of reserved CPUs (required)
@@ -109,7 +110,7 @@ The `info` option requires a value which specifies the output format. Possible v
109110
+
110111
[source,terminal,subs="attributes+"]
111112
----
112-
$ podman run --entrypoint performance-profile-creator -v /must-gather:/must-gather:z registry.redhat.io/openshift4/ose-cluster-node-tuning-operator:v{product-version} --mcp-name=worker-cnf --reserved-cpu-count=20 --rt-kernel=true --split-reserved-cpus-across-numa=false --topology-manager-policy=single-numa-node --must-gather-dir-path /must-gather --power-consumption-mode=ultra-low-latency > my-performance-profile.yaml
113+
$ podman run --entrypoint performance-profile-creator -v /must-gather:/must-gather:z registry.redhat.io/openshift4/ose-cluster-node-tuning-operator:vBranch Build --mcp-name=worker-cnf --reserved-cpu-count=4 --rt-kernel=true --split-reserved-cpus-across-numa=false --must-gather-dir-path /must-gather --power-consumption-mode=ultra-low-latency --offlined-cpu-count=6 > my-performance-profile.yaml
113114
----
114115
+
115116
[NOTE]
@@ -138,26 +139,21 @@ kind: PerformanceProfile
138139
metadata:
139140
name: performance
140141
spec:
141-
additionalKernelArgs:
142-
- nmi_watchdog=0
143-
- audit=0
144-
- mce=off
145-
- processor.max_cstate=1
146-
- intel_idle.max_cstate=0
147-
- idle=poll
148142
cpu:
149-
isolated: "1,3,5,7,9,11,13,15,17,19-39,41,43,45,47,49,51,53,55,57"
150-
reserved: "0,2,4,6,8,10,12,14,16,18,40,42,44,46,48,50,52,54,56,58"
151-
offlined: "59-79"
143+
isolated: 2-39,48-79
144+
offlined: 42-47
145+
reserved: 0-1,40-41
146+
machineConfigPoolSelector:
147+
machineconfiguration.openshift.io/role: worker-cnf
152148
nodeSelector:
153149
node-role.kubernetes.io/worker-cnf: ""
154150
numa:
155-
topologyPolicy: single-numa-node
151+
topologyPolicy: restricted
156152
realTimeKernel:
157153
enabled: true
158154
workloadHints:
159155
highPowerConsumption: true
160-
realtime: true
156+
realTime: true
161157
----
162158

163159
. Apply the generated profile:

0 commit comments

Comments
 (0)