You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CP-50934: fix qemu cgroups to be compatible with cgroupv2 (xapi-project#6330)
cgroup-v2 doesn't have a 'tasks' file anymore (which refers to threads,
not processes). Use cgroup.procs instead which exists on both cgroupv1
and cgroupv2, and would be actually the correct one to use, because we
want to move the entire process (even if it has, or will have multiple
threads).
Tested on cgroup-v1 (XS8):
```
systemd-cgls /sys/fs/cgroup/cpu/vm.slice|grep qemu-dm
└─2421656 qemu-dm-22 -machine pc-i440fx-2.10,accel=xen,max-ram-below-4g=40265...
```
And on cgroup-v2 (XS9):
```
systemd-cgls /sys/fs/cgroup/vm.slice|grep qemu-dm
└─777450 qemu-dm-511 -machine pc-i440fx-2.10,accel=xen,max-ram-below-4g=4026531…
```
Previously in cgroup-v2 qemu has ended up underneath forkexecd, which is
part of control.slice, reducing the amount of CPU available to
oxenstored and XAPI, leading to timeouts on busy machines.
0 commit comments