Skip to contentSkip to conversation

blk-iocost: don't ignore vrate_min on QD contention

PATCH Applied Tejun Heo 2 participants 2 messages Apr 23, 2021

Subsystems (2)
lore
Share & tools
lore

Tejun Heo

author maintainer
#0 lore raw

PATCH 1/1 blk-iocost: don't ignore vrate_min on QD contention

ioc_adjust_base_vrate() ignored vrate_min when rq_wait_pct indicates that there is QD contention. The reasoning was that QD depletion always reliably indicates device saturation and thus it's safe to override user specified vrate_min. However, this sometimes leads to unnecessary throttling, especially on really fast devices, because vrate adjustments have delays and inertia. It also confuses users because the behavior violates the explicitly specified configuration.

This patch drops the special case handling so that vrate_min is always applied.

---
 block/blk-iocost.c | 4 ----
 1 file changed, 4 deletions(-)
block/blk-iocost.c +0 -4
index 98d656bdb42b7..e0c4baa018578 100644
@@ -987,10 +987,6 @@ static void ioc_adjust_base_vrate(struct ioc *ioc, u32 rq_wait_pct,
 		return;
 	}
 
-	/* rq_wait signal is always reliable, ignore user vrate_min */
-	if (rq_wait_pct > RQ_WAIT_BUSY_PCT)
-		vrate_min = VRATE_MIN;
-
 	/*
 	 * If vrate is out of bounds, apply clamp gradually as the
 	 * bounds can change abruptly.  Otherwise, apply busy_level
Signature · 1 line
2.31.1
maintainer Applied
#1 lore raw
Quoted 10 lines · Tejun Heo

ioc_adjust_base_vrate() ignored vrate_min when rq_wait_pct indicates that there is QD contention. The reasoning was that QD depletion always reliably indicates device saturation and thus it's safe to override user specified vrate_min. However, this sometimes leads to unnecessary throttling, especially on really fast devices, because vrate adjustments have delays and inertia. It also confuses users because the behavior violates the explicitly specified configuration.

This patch drops the special case handling so that vrate_min is always applied.

Applied, thanks.

Signature · 1 line
Jens Axboe