Currently, the cgroup paths used are always /lxc/<vmid>. For privileged
containers there is the ns subgroup created by lxc. For CPU and mem stats
this doesn't matter, but for blkio stats the proper values are only available
in the subgroup. In order to handle things correctly, a subroutine has been
extracted to provide the cgroups path depending on the presence of the ns
subgroup.

Also, if multiple devices are present the stats were only set to the stats of
the last device appearing t´in the file. The second commit changes that values
are accumulated for all devices.

Tobias Böhm (2):
  Add support for cgroups ns subgroup
  Fix block stats bytes counter

 src/PVE/LXC.pm | 21 +++++++++++++++++----
 1 file changed, 17 insertions(+), 4 deletions(-)

-- 
2.11.0

_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to