[pve-devel] [PATCH container 0/2] Fix blkio bytes stats

Tobias Böhm tb at robhost.de
Wed Jul 26 16:40:40 CEST 2017


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




More information about the pve-devel mailing list