Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Repin all possible vCPUs, not just ones in use #280

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

lamaral
Copy link
Contributor

@lamaral lamaral commented Nov 22, 2024

When trying to increse the amount of vCPUs in a VM, we were greeted with a cgroup error:

 virCgroupSetValueRaw:502 : Unable to write to '/sys/fs/cgroup/machine.slice/.../vcpu6/cpuset.cpus': Numerical result out of range

It turns out that when live repinning the VM on the new hypervisor, we were iterating only over the amount of vCPUs assigned to the VM (for example, 0 to 5) instead of the max amount of vCPUs assignable (coming from props.max_cpus).

Now we iterate over the max amount of vCPUs assignable and pin them to the local hypervisor topology.

I tested it on machines with two NUMA nodes and machines with single NUMA nodes.

When trying to increse the amount of vCPUs in a VM, we were greeted with
a cgroup error:
```
 virCgroupSetValueRaw:502 : Unable to write to '/sys/fs/cgroup/machine.slice/.../vcpu6/cpuset.cpus': Numerical result out of range
```

It turns out that when live repinning the VM on the new hypervisor, we
were iterating only over the amount of vCPUs assigned to the VM (for
example, 0 to 5) instead of the max amount of vCPUs assignable (coming
from props.max_cpus).

Now we iterate over the max amount of vCPUs assignable and pin them to
the local hypervisor topology.
@lamaral lamaral requested a review from TuxPowered42 November 22, 2024 14:28
@lamaral lamaral self-assigned this Nov 22, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant