-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[1.32][4.19] OCPBUGS-59415: HighPerformanceHooks: Fix IRQ SMP affinity race conditions #9350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: release-1.32
Are you sure you want to change the base?
Conversation
@andreaskaris: This pull request references Jira Issue OCPBUGS-59415, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: andreaskaris The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @andreaskaris. Thanks for your PR. I'm waiting for a cri-o member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
077863b
to
5c39a2e
Compare
The failing "prettier" verification is complaining about install.md ; can we ignore "prettier"? |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## release-1.32 #9350 +/- ##
================================================
+ Coverage 46.99% 47.68% +0.69%
================================================
Files 155 155
Lines 22298 22360 +62
================================================
+ Hits 10479 10663 +184
+ Misses 10744 10601 -143
- Partials 1075 1096 +21 🚀 New features to boost your workflow:
|
/jira refresh |
@andreaskaris: This pull request references Jira Issue OCPBUGS-59415, which is invalid:
Comment In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
/ok-to-test |
/hold I found another issue with race conditions and other pieces must be fixed upstream before merging this |
A friendly reminder that this PR had no activity for 30 days. |
Cherry-pick of: - Merge pull request cri-o#9228 from andreaskaris/issue9227 The original 6 commits merged but were not squashed together, therefore doing this here on the downstream cherry-pick. (cherry picked from commit 3dce7d8) Conflicts: i) internal/runtimehandlerhooks/high_performance_hooks_linux.go internal/runtimehandlerhooks/runtime_handler_hooks_linux.go server/container_create.go server/container_start.go server/sandbox_run_linux.go ii) internal/runtimehandlerhooks/high_performance_hooks_test.go i) Conflict due to missing 3c7337f in container_create.go / container_create_linux.go ii) Missing import of hostport Other conflicts flagged by git but code was exactly the same. Signed-off-by: Andreas Karis <ak.karis@gmail.com> Reported-at: https://issues.redhat.com/browse/OCPBUGS-59321 (cherry picked from commit 7cddfd4)
A prior patch addressing race conditions in this code section was incomplete as it used 2 different locks for irqbalance and irq SMP affinity files. This still allowed for a race condition wrt irqbalance configuration. This fix addresses this issue by using a single lock and by making the entire change atomic. Signed-off-by: Andreas Karis <ak.karis@gmail.com> (cherry picked from commit 1283afc) Conflicts: internal/runtimehandlerhooks/high_performance_hooks_linux.go Not applying cleanly to setIRQLoadBalancing, accepting all of new change
Add unit tests for irq smp affinity settings. In order to do so, add service and command manager structures that can be mocked. Signed-off-by: Andreas Karis <ak.karis@gmail.com> (cherry picked from commit 06c8437) Conflicts: internal/runtimehandlerhooks/high_performance_hooks_linux.go applying to RestoreIrqBalanceConfig, accepting incoming changes
Having IRQ balancing logic inside the PreStop hook can cause issues with ordering (possibility to hit sequence container add, replacement container add, container stop). Moving the same logic into PostStop will guarantee correct ordering. Signed-off-by: Andreas Karis <ak.karis@gmail.com> (cherry picked from commit 03ec73d) Conflicts: internal/runtimehandlerhooks/high_performance_hooks_linux.go applying to PostStop, accepted all incoming changes (cleanly)
Signed-off-by: Andreas Karis <ak.karis@gmail.com> (cherry picked from commit 78c966c)
5c39a2e
to
53ea4f4
Compare
@andreaskaris: This pull request references Jira Issue OCPBUGS-59415, which is invalid:
Comment In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
cherry-pick of #9349 and of #9405
What type of PR is this?
What this PR does / why we need it:
Which issue(s) this PR fixes:
Special notes for your reviewer:
The same as for the change to
main
, I ran a smoke test for sanity checking:I ran my smoke test on a VM with 14 CPUs where I first installed the entire stack with kubeadm.
Dependencies:
/etc/crio/crio.conf.d/99-runtimes.conf
I then stopped the crio service, started the compiled crio in foreground
make binaries && bin/crio
, and ran this smoke test:smoke.sh
pod.yaml
Does this PR introduce a user-facing change?