]> git.baikalelectronics.ru Git - kernel.git/commit
iocost: bump up default latency targets for hard disks
authorTejun Heo <tj@kernel.org>
Wed, 25 Sep 2019 23:03:35 +0000 (16:03 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 26 Sep 2019 07:12:01 +0000 (01:12 -0600)
commit8c7299426a5a9b4258a994b5d40a02de20fa25dd
tree90411b8d597331af31f552839cb11fb81f2cd7e7
parent85cfaadde8d495079d97cc3f23ae28e6e173b85a
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>
block/blk-iocost.c