Skip to content

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants