2017-05-14 14:52:53 -03:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-05-14 14:52:53 -03:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2025-02-15 10:01:13 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2025-02-15 10:01:13 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2025-02-15 10:01:13 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2025-02-15 10:01:13 -08:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2025-02-15 10:01:13 -08:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2025-02-15 10:01:13 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2025-02-15 10:01:13 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-07-18 04:47:40 -07:00
|
|
|
|
2025-02-15 10:01:13 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-10-16 22:13:37 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-05-14 14:52:53 -03:00
|
|
|
|
2019-10-16 22:13:37 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-05-14 14:52:53 -03:00
|
|
|
|
2019-10-16 22:13:37 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-05-14 14:52:53 -03:00
|
|
|
|
2019-10-16 22:13:37 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2022-02-22 10:27:51 +09:00
|
|
|
|
2017-05-14 14:52:53 -03:00
|
|
|
|
2019-10-16 22:13:37 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-05-14 14:52:53 -03:00
|
|
|
|
2019-10-16 22:13:37 +02:00
|
|
|
|
2013-02-20 16:44:28 -07:00
|
|
|
|
2017-05-14 14:52:53 -03:00
|
|
|
|
2019-10-16 22:13:37 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-05-14 14:52:53 -03:00
|
|
|
|
2019-10-16 22:13:37 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2022-02-22 10:27:51 +09:00
|
|
|
|
2017-05-14 14:52:53 -03:00
|
|
|
|
2019-10-16 22:13:37 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-07-24 09:28:11 +02:00
|
|
|
|
2017-05-14 14:52:53 -03:00
|
|
|
|
2019-10-16 22:13:37 +02:00
|
|
|
|
2010-07-03 23:18:11 -06:00
|
|
|
|
2017-05-14 14:52:53 -03:00
|
|
|
|
2019-06-09 14:14:36 +03:00
|
|
|
|
|
|
|
|
|
block/diskstats: more accurate approximation of io_ticks for slow disks
Currently io_ticks is approximated by adding one at each start and end of
requests if jiffies counter has changed. This works perfectly for requests
shorter than a jiffy or if one of requests starts/ends at each jiffy.
If disk executes just one request at a time and they are longer than two
jiffies then only first and last jiffies will be accounted.
Fix is simple: at the end of request add up into io_ticks jiffies passed
since last update rather than just one jiffy.
Example: common HDD executes random read 4k requests around 12ms.
fio --name=test --filename=/dev/sdb --rw=randread --direct=1 --runtime=30 &
iostat -x 10 sdb
Note changes of iostat's "%util" 8,43% -> 99,99% before/after patch:
Before:
Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
sdb 0,00 0,00 82,60 0,00 330,40 0,00 8,00 0,96 12,09 12,09 0,00 1,02 8,43
After:
Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
sdb 0,00 0,00 82,50 0,00 330,00 0,00 8,00 1,00 12,10 12,10 0,00 12,12 99,99
Now io_ticks does not loose time between start and end of requests, but
for queue-depth > 1 some I/O time between adjacent starts might be lost.
For load estimation "%util" is not as useful as average queue length,
but it clearly shows how often disk queue is completely empty.
Fixes: 5b18b5a73760 ("block: delete part_round_stats and switch to less precise counting")
Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-03-25 16:07:04 +03:00
|
|
|
|
2019-06-09 14:14:36 +03:00
|
|
|
|
2019-10-16 22:13:37 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-10-16 22:13:37 +02:00
|
|
|
|
2018-07-18 04:47:40 -07:00
|
|
|
|
|
|
|
|
|
2019-10-16 22:13:37 +02:00
|
|
|
|
2018-07-18 04:47:40 -07:00
|
|
|
|
|
|
|
|
|
2019-10-16 22:13:37 +02:00
|
|
|
|
2018-07-18 04:47:40 -07:00
|
|
|
|
|
|
|
|
|
2019-10-16 22:13:37 +02:00
|
|
|
|
2018-07-18 04:47:40 -07:00
|
|
|
|
2022-02-22 10:27:51 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2019-11-21 13:40:26 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-05-14 15:08:22 -03:00
|
|
|
|
2011-03-23 20:44:18 +01:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2011-03-23 20:44:18 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
block/diskstats: more accurate approximation of io_ticks for slow disks
Currently io_ticks is approximated by adding one at each start and end of
requests if jiffies counter has changed. This works perfectly for requests
shorter than a jiffy or if one of requests starts/ends at each jiffy.
If disk executes just one request at a time and they are longer than two
jiffies then only first and last jiffies will be accounted.
Fix is simple: at the end of request add up into io_ticks jiffies passed
since last update rather than just one jiffy.
Example: common HDD executes random read 4k requests around 12ms.
fio --name=test --filename=/dev/sdb --rw=randread --direct=1 --runtime=30 &
iostat -x 10 sdb
Note changes of iostat's "%util" 8,43% -> 99,99% before/after patch:
Before:
Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
sdb 0,00 0,00 82,60 0,00 330,40 0,00 8,00 0,96 12,09 12,09 0,00 1,02 8,43
After:
Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
sdb 0,00 0,00 82,50 0,00 330,00 0,00 8,00 1,00 12,10 12,10 0,00 12,12 99,99
Now io_ticks does not loose time between start and end of requests, but
for queue-depth > 1 some I/O time between adjacent starts might be lost.
For load estimation "%util" is not as useful as average queue length,
but it clearly shows how often disk queue is completely empty.
Fixes: 5b18b5a73760 ("block: delete part_round_stats and switch to less precise counting")
Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-03-25 16:07:04 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-05-14 15:08:22 -03:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-05-14 15:08:22 -03:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-05-14 15:08:22 -03:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-05-14 14:52:53 -03:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-05-14 14:52:53 -03:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2017-05-14 14:52:53 -03:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 11:10:56 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-07-25 19:45:33 -07:00
|
|
|
|
2008-02-08 11:10:56 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-05-14 15:08:22 -03:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-05-14 15:08:22 -03:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-05-14 14:52:53 -03:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2017-05-14 15:08:22 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|