Skip to content

Commit 3f40465

Browse files
committed
OCPBUGS-38340 Configuring node power consumption and realtime processing with workload hints
1 parent 57989b4 commit 3f40465

File tree

2 files changed

+28
-25
lines changed

2 files changed

+28
-25
lines changed

modules/cnf-configuring-workload-hints.adoc

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,7 @@
99

1010
.Procedure
1111

12-
. Create a `PerformanceProfile` appropriate for the environment's hardware and topology as described in the table in "Understanding workload hints". Adjust the profile to match the expected workload. In this example, we tune for the lowest possible latency.
13-
14-
. Add the `highPowerConsumption` and `realTime` workload hints. Both are set to `true` here.
15-
+
16-
[source,yaml]
17-
----
18-
apiVersion: performance.openshift.io/v2
19-
kind: PerformanceProfile
20-
metadata:
21-
name: workload-hints
22-
spec:
23-
...
24-
workloadHints:
25-
highPowerConsumption: true <1>
26-
realTime: true <2>
27-
----
28-
<1> If `highPowerConsumption` is `true`, the node is tuned for very low latency at the cost of increased power consumption.
29-
<2> Disables some debugging and monitoring features that can affect system latency.
30-
31-
[NOTE]
32-
====
33-
When the `realTime` workload hint flag is set to `true` in a performance profile, add the `cpu-quota.crio.io: disable` annotation to every guaranteed pod with pinned CPUs. This annotation is necessary to prevent the degradation of the process performance within the pod. If the `realTime` workload hint is not explicitly set then it defaults to `true`.
34-
====
35-
36-
The following table describes how combinations of power consumption and real-time settings impact latency.
12+
* Create a `PerformanceProfile` appropriate for the environment's hardware and topology by using the Performance Profile Creator (PPC) tool. The following table describes the possible values set for the `power-consumption-mode` flag associated with the PPC tool and the workload hint that is applied.
3713
3814
.Impact of combinations of power consumption and real-time settings on latency
3915
[cols="1,1,1,1",options="header"]
@@ -81,3 +57,28 @@ perPodPowerManagement: true
8157
|Critical and non-critical workloads
8258
|Allows for power management per pod.
8359
|===
60+
61+
.Example
62+
63+
The following configuration is commonly used in a telco RAN DU deployment.
64+
65+
[source,yaml]
66+
----
67+
apiVersion: performance.openshift.io/v2
68+
kind: PerformanceProfile
69+
metadata:
70+
name: workload-hints
71+
spec:
72+
...
73+
workloadHints:
74+
realTime: true
75+
highPowerConsumption: false
76+
perPodPowerManagement: false <1>
77+
----
78+
<1> Disables some debugging and monitoring features that can affect system latency.
79+
80+
[NOTE]
81+
====
82+
When the `realTime` workload hint flag is set to `true` in a performance profile, add the `cpu-quota.crio.io: disable` annotation to every guaranteed pod with pinned CPUs. This annotation is necessary to prevent the degradation of the process performance within the pod. If the `realTime` workload hint is not explicitly set, it defaults to `true`.
83+
====
84+

scalability_and_performance/low_latency_tuning/cnf-tuning-low-latency-nodes-with-perf-profile.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ include::modules/cnf-configuring-power-saving-for-nodes.adoc[leveloffset=+1]
5757
[role="_additional-resources"]
5858
.Additional resources
5959

60+
* xref:../../scalability_and_performance/low_latency_tuning/cnf-tuning-low-latency-nodes-with-perf-profile.adoc#cnf-about-the-profile-creator-tool_cnf-low-latency-perf-profile[About the Performance Profile Creator]
61+
6062
* xref:../../scalability_and_performance/low_latency_tuning/cnf-provisioning-low-latency-workloads.adoc#cnf-configuring-high-priority-workload-pods_cnf-provisioning-low-latency[Disabling power saving mode for high priority pods]
6163

6264
* xref:../../scalability_and_performance/low_latency_tuning/cnf-tuning-low-latency-nodes-with-perf-profile.adoc#managing-device-interrupt-processing-for-guaranteed-pod-isolated-cpus_cnf-low-latency-perf-profile[Managing device interrupt processing for guaranteed pod isolated CPUs]

0 commit comments

Comments
 (0)