Skip to content

Commit e8970ca

Browse files
authored
Merge pull request #41282 from kquinn1204/BZ-2049053
BZ:2049053: fix crio annotation description and examples
2 parents 3fd7063 + b854968 commit e8970ca

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

modules/cnf-managing-device-interrupt-processing-for-guaranteed-pod-isolated-cpus.adoc

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,28 @@ In the performance profile, `globallyDisableIrqLoadBalancing` is used to manage
1414

1515
To achieve low latency for workloads, some (but not all) pods require the CPUs they are running on to not process device interrupts. A pod annotation, `irq-load-balancing.crio.io`, is used to define whether device interrupts are processed or not. When configured, CRI-O disables device interrupts only as long as the pod is running.
1616

17+
[id="disabling-cpu-cfs-quota_{context}"]
18+
== Disabling CPU CFS quota
19+
20+
To reduce CPU throttling for individual guaranteed pods, create a pod specification with the annotation `cpu-quota.crio.io: "disable"`. This annotation disables the CPU completely fair scheduler (CFS) quota at the pod run time. The following pod specification contains this annotation:
21+
22+
[source,yaml]
23+
----
24+
apiVersion: performance.openshift.io/v2
25+
kind: Pod
26+
metadata:
27+
annotations:
28+
cpu-quota.crio.io: "disable"
29+
spec:
30+
runtimeClassName: performance-<profile_name>
31+
...
32+
----
33+
34+
[NOTE]
35+
====
36+
Only disable CPU CFS quota when the CPU manager static policy is enabled and for pods with guaranteed QoS that use whole CPUs. Otherwise, disabling CPU CFS quota can affect the performance of other containers in the cluster.
37+
====
38+
1739
[id="configuring-global-device-interrupts-handling-for-isolated-cpus_{context}"]
1840
== Disabling global device interrupts handling in Performance Addon Operator
1941

@@ -35,7 +57,7 @@ spec:
3557
[id="disabling_interrupt_processing_for_individual_pods_{context}"]
3658
== Disabling interrupt processing for individual pods
3759

38-
To disable interrupt processing for individual pods, ensure that `globallyDisableIrqLoadBalancing` is set to `false` in the performance profile. Then, in the pod specification, set the `irq-load-balancing.crio.io` and `cpu-load-balancing.crio.io` pod annotations to `disable`. An example pod specification snippet that illustrates this is below:
60+
To disable interrupt processing for individual pods, ensure that `globallyDisableIrqLoadBalancing` is set to `false` in the performance profile. Then, in the pod specification, set the `irq-load-balancing.crio.io` pod annotation to `disable`. The following pod specification contains this annotation:
3961

4062
[source,yaml]
4163
----
@@ -44,7 +66,6 @@ kind: Pod
4466
metadata:
4567
annotations:
4668
irq-load-balancing.crio.io: "disable"
47-
cpu-load-balancing.crio.io: "disable"
4869
spec:
4970
runtimeClassName: performance-<profile_name>
5071
...

0 commit comments

Comments
 (0)