Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • io.bfq.weight has no effect

    Posted on

    I want to control bandwidth ratio of 2 fio processes by io.bfq.weight,but the result was not what I wanted.
    (kernel-4.18.0-372.9.1.el8.x86_64, and use cgroup v2)

    1 fio simultaneously got :1.5GB/s
    1 fio simultaneously got:767MB/s + 773MB/s
    Wanted: 500MB/s + 1000MB/s
    Why?Wrong understanding or wrong use?

    ####my test shell is:

    mount /dev/sda1 /test/data2/
    echo bfq > /sys/block/sda/queue/scheduler
    echo 0 > /sys/block/sda/queue/iosched/low_latency

    cd /sys/fs/cgroup/
    mkdir fio1 fio2
    echo "+io +memory" > cgroup.subtree_control

    echo 50 > fio1/io.bfq.weight
    echo 100 > fio2/io.bfq.weight

    echo $$ > fio1/cgroup.procs
    fio -rw=write -ioengine=libaio -bs=4k -size=3G -numjobs=8 -iodepth 8 -thread -name=/test/data2/fio_test1.log

    do follow at another terminal

    echo $$ > /sys/fs/cgroup/fio2/cgroup.procs
    fio -rw=write -ioengine=libaio -bs=4k -size=3G -numjobs=8 -iodepth 8 -thread -name=/test/data2/fio_test2.log

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat