• D
    Don't create dirs in cgroup controllers we don't want to use · 56f27b3b
    Daniel P. Berrange 提交于
    Currently when getting an instance of virCgroupPtr we will
    create the path in all cgroup controllers. Only at the virt
    driver layer are we attempting to filter controllers. This
    is bad because the mere act of creating the dirs in the
    controllers can have a functional impact on the kernel,
    particularly for performance.
    
    Update the virCgroupForDriver() method to accept a bitmask
    of controllers to use. Only create dirs in the controllers
    that are requested. When creating cgroups for domains,
    respect the active controller list from the parent cgroup
    Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
    56f27b3b
lxc_cgroup.c 17.2 KB