Skip to content
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

Disable VM CPU auto pinning (stable-5.21) #13670

Merged
merged 2 commits into from
Jun 26, 2024

Conversation

tomponline
Copy link
Member

Restores the previously reverted SetAffinity implementation for qemu driver so we can easily cherry-pick fixes from main in the future for this.

And instead adds logic to prevent auto pinning for VMs in the deviceEventListener which also stops the logging of the level=debug msg="Scheduler: virtual-machine v1 changed: re-balancing" message.

We can take this out later once needed.

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
This reverts commit 9eb8308.

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
@tomponline tomponline self-assigned this Jun 26, 2024
@tomponline tomponline marked this pull request as ready for review June 26, 2024 15:56
Comment on lines +7489 to +7490
cpuCoreIndex, _ := strconv.Atoi(set[i])
affinitySet.Set(cpuCoreIndex)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A tiny nitpick, maybe?:

Suggested change
cpuCoreIndex, _ := strconv.Atoi(set[i])
affinitySet.Set(cpuCoreIndex)
cpuCoreIndex, _ := strconv.ParseUint(set[i], 10, 64)
affinitySet.Set(int(cpuCoreIndex))

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change that in main and then it can be back ported

Copy link
Member

@simondeziel simondeziel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CI tests (mostly build-ability/lint verdict) that we care about all passed.

@tomponline tomponline merged commit 69ae210 into canonical:stable-5.21 Jun 26, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants