Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iocost: bump up default latency targets for hard disks

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: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Tejun Heo and committed by
Jens Axboe
7afcccaf 7cd806a9

+2 -2
+2 -2
block/blk-iocost.c
··· 529 529 static const struct ioc_params autop[] = { 530 530 [AUTOP_HDD] = { 531 531 .qos = { 532 - [QOS_RLAT] = 50000, /* 50ms */ 533 - [QOS_WLAT] = 50000, 532 + [QOS_RLAT] = 250000, /* 250ms */ 533 + [QOS_WLAT] = 250000, 534 534 [QOS_MIN] = VRATE_MIN_PPM, 535 535 [QOS_MAX] = VRATE_MAX_PPM, 536 536 },