• Shaohua Li's avatar
    blk-throttle: add .low interface · cd5ab1b0
    Shaohua Li authored
    Add low limit for cgroup and corresponding cgroup interface. To be
    consistent with memcg, we allow users configure .low limit higher than
    .max limit. But the internal logic always assumes .low limit is lower
    than .max limit. So we add extra bps/iops_conf fields in throtl_grp for
    userspace configuration. Old bps/iops fields in throtl_grp will be the
    actual limit we use for throttling.
    Signed-off-by: default avatarShaohua Li <shli@fb.com>
    Signed-off-by: default avatarJens Axboe <axboe@fb.com>
    cd5ab1b0
blk-throttle.c 46.1 KB