]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: vircgroupv2: add support for BFQ files
authorPavel Hrdina <phrdina@redhat.com>
Tue, 18 Jun 2019 13:19:43 +0000 (15:19 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Fri, 21 Jun 2019 12:36:02 +0000 (14:36 +0200)
commit7e8a1a6e21cee67f6fa5bd2126ec17f96e5857d6
tree59d2e24b7a62b2afe61e1484f9b4226d62078bfd
parent035ebe9390a630964f391816f05c9cc7792212ad
util: vircgroupv2: add support for BFQ files

In kernel 4.12 there was introduced new BFQ scheduler and in kernel
5.0 the old CFQ scheduler was removed.  This has an implication on
the cgroups file names.

If the CFQ controller is enabled we use one file:

    io.weight

The new BFQ controller expose one file with different name:

    io.bfq.weight

Except for different name they have different syntax.

io.weight:

    default $val
    major:minor $val

io.bfq.weight:

    $val

The difference is that BFQ doesn't support per-device weight.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/vircgroupv2.c