[PATCH v2 0/2] Fix problems on using lxc with cgroup ns subsystem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch set fixes two problems of lxc that happen when ns
subsystem is enabled with memory subsystem at the same time.
The fist problem is that cgroup subdirectories that are
automatically created by ns subsystem remain after domain
shutdown. The second problem is that memory usage is not
properly accounted.

v2 fixes a bunch of defects pointed out by Eric Blake.

Changes from v1:
- correct readdir error handling
- avoid stack-allocating PATH_MAX, use virAsprintf() instead
- add missing closedir()
- ensure _() in the string of VIR_ERROR
- change the flag of virCgroupMakeGroup from int to bool
- fix typo in commit log
- change some 'child' to 'descendant' in commit log to make
  representation proper

Ryota Ozaki (2):
  cgroup: Change virCgroupRemove to remove all descendant groups at first
  cgroup: Enable memory.use_hierarchy of cgroup for domain

 src/util/cgroup.c |  122 +++++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 114 insertions(+), 8 deletions(-)

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]