← Back to Pull requests

CNF-23471: Dedicate cpus for dpdk vswitch #1546

Closed
unknown closed this pull request without merging on Jul 15, 2026 15:09 UTC
View on GitHub
unknown unknown commented on Jun 14, 2026 11:28 UTC
Author

Add spec.cpu.ovsDpdk field to the PerformanceProfile v2 API, enabling users to designate CPUs for exclusive use by OVS-DPDK.

The OVS-DPDK CPUs receives full kernel-level scheduling isolation, are excluded from kubelet scheduling and IRQ balancing, and remain protected from interference across pod lifecycle events.

The controller validates that the cluster meets the prerequisites for the isolation and reports a Degraded status if they are not satisfied.
In addition "performance.openshift.io/cpu-load-balancing-ovs-dpdk" annotation was added to disable kernel load balancing on the ovsDpdk CPUs. This PR makes it optional since an extra step is needed from the OVS process side to make this feature fully functional, so we don't want to decouple this extra isolation capability from the general set of parameters we configure for the ovs dpdk set.

Includes unit and e2e test coverage.

This work inspired by: https://github.com/mcoquelin/cluster-node-tuning-operator/commits/release-4.20-ovs-dpdk/

Signed-off-by: Talor Itzhak <titzhak@redhat.com>

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

Summary by CodeRabbit

New Features
Added spec.cpu.ovsDpdk to reserve a fully isolated CPU set for OVS-DPDK, with prerequisite validation during reconciliation.
Added an annotation to disable OVS-DPDK CPU load balancing.
Generated OVS-DPDK CPU pinning (OVS slice/cgroup + ovs-dpdk-cpus-configure) and updated kubelet reserved CPUs and tuned CPU isolation.

Bug Fixes
Improved IRQ-balance banned CPU and default_smp_affinity masking so OVS-DPDK CPUs are reliably excluded, including consistent restore behavior.

Documentation
Updated performance profile documentation for the new CPU fields and related options.

Tests
Expanded unit, Ginkgo, and E2E coverage for OVS-DPDK validation, degradation reporting, and CPU/affinity behavior.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Diff: 253 lines (+189 / -64) across 3 files Reviewer: jmencak Review duration: 44860m
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 253 lines diff across 3 files
0.39
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.331
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1546"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 39.1% (MEDIUM) · Higher = larger blast radius
39.1%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 15.4% · Safe to merge
15.4%