-
Notifications
You must be signed in to change notification settings - Fork 929
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
VM: Wait until hotplugged vCPUs are visible #13299
Conversation
Fixes: canonical#13295 Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Do we know why :
just above works OK, but |
|
Do you know why its not aligned? I tend to be wary of sleep loops for an arbitrary amount of time. |
Because |
I'm trying to understand in what situation this occurs. Am I right in thinking that this doesn't occur when |
No, no, this issue happens when we are doing a CPU hotplug in You can reproduce this effect if you do:
you will see that without this fix |
@mihalicyn as discussed in our call this morning lets:
|
Fixed. At the same time fixed core scheduling setup on a |
From what I see it is to some extent. I would say that we need to introduce per-instance config option like "limits.cpu.allow_autopin" (false by default) and do autopinning only for those instances which has this enabled. |
8c7c5bc
to
883d07c
Compare
Let's set core scheduling domain cookie in setCPUs() on a limits.cpu live-update codepath. At the same time, we need to move core scheduling setup after setCPUs() call on a VM start codepath. This is a bug fix for canonical#11075 Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
883d07c
to
c33593f
Compare
Fixes: #13295