Home
last modified time | relevance | path

Searched refs:cost (Results 1 – 2 of 2) sorted by relevance

/block/
Dblk-iocost.c718 static u64 cost_to_abs_cost(u64 cost, u32 hw_inuse) in cost_to_abs_cost() argument
720 return DIV64_U64_ROUND_UP(cost * hw_inuse, WEIGHT_ONE); in cost_to_abs_cost()
724 u64 abs_cost, u64 cost) in iocg_commit_bio() argument
728 bio->bi_iocost_cost = cost; in iocg_commit_bio()
729 atomic64_add(cost, &iocg->vtime); in iocg_commit_bio()
1451 u64 cost = abs_cost_to_cost(wait->abs_cost, ctx->hw_inuse); in iocg_wake_fn() local
1453 ctx->vbudget -= cost; in iocg_wake_fn()
1458 iocg_commit_bio(ctx->iocg, wait->bio, wait->abs_cost, cost); in iocg_wake_fn()
2457 u64 cost, new_inuse; in adjust_inuse_and_calc_cost() local
2462 cost = abs_cost_to_cost(abs_cost, hwi); in adjust_inuse_and_calc_cost()
[all …]
DKconfig134 bool "Enable support for cost model based cgroup IO controller"
139 Enabling this option enables the .weight interface for cost
159 is mostly useful for kernel developers, but it doesn't incur any cost