提交 2a3e5884 编写于 作者: T Tejun Heo 提交者: Jiufei Xue

iocost: bump up default latency targets for hard disks

commit 7afcccafa59fb63b58f863a6c5e603a34625955b upstream.

The default hard disk param sets latency targets at 50ms.  As the
default target percentiles are zero, these don't directly regulate
vrate; however, they're still used to calculate the period length -
100ms in this case.

This is excessively low.  A SATA drive with QD32 saturated with random
IOs can easily reach avg completion latency of several hundred msecs.
A period duration which is substantially lower than avg completion
latency can lead to wildly fluctuating vrate.

Let's bump up the default latency targets to 250ms so that the period
duration is sufficiently long.
Signed-off-by: NTejun Heo <tj@kernel.org>
Signed-off-by: NJens Axboe <axboe@kernel.dk>
Signed-off-by: NJiufei Xue <jiufei.xue@linux.alibaba.com>
Reviewed-by: NJoseph Qi <joseph.qi@linux.alibaba.com>
上级 51789009
...@@ -529,8 +529,8 @@ struct iocg_wake_ctx { ...@@ -529,8 +529,8 @@ struct iocg_wake_ctx {
static const struct ioc_params autop[] = { static const struct ioc_params autop[] = {
[AUTOP_HDD] = { [AUTOP_HDD] = {
.qos = { .qos = {
[QOS_RLAT] = 50000, /* 50ms */ [QOS_RLAT] = 250000, /* 250ms */
[QOS_WLAT] = 50000, [QOS_WLAT] = 250000,
[QOS_MIN] = VRATE_MIN_PPM, [QOS_MIN] = VRATE_MIN_PPM,
[QOS_MAX] = VRATE_MAX_PPM, [QOS_MAX] = VRATE_MAX_PPM,
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册