|
9 | 9 |
|
10 | 10 | .Procedure
|
11 | 11 |
|
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. |
37 | 13 |
|
38 | 14 | .Impact of combinations of power consumption and real-time settings on latency
|
39 | 15 | [cols="1,1,1,1",options="header"]
|
@@ -81,3 +57,28 @@ perPodPowerManagement: true
|
81 | 57 | |Critical and non-critical workloads
|
82 | 58 | |Allows for power management per pod.
|
83 | 59 | |===
|
| 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 | + |
0 commit comments