diff options
author | Konstantin Khlebnikov <khlebnikov@yandex-team.ru> | 2019-11-21 11:40:26 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-11-21 17:06:47 +0100 |
commit | b6866318657717c8914673a6394894d12bc9ff5e (patch) | |
tree | f4d534373b711f368f079d0cc54d3d71892e1feb /Documentation/ABI/testing/sysfs-block | |
parent | block,bfq: Skip tracing hooks if possible (diff) | |
download | linux-b6866318657717c8914673a6394894d12bc9ff5e.tar.xz linux-b6866318657717c8914673a6394894d12bc9ff5e.zip |
block: add iostat counters for flush requests
Requests that triggers flushing volatile writeback cache to disk (barriers)
have significant effect to overall performance.
Block layer has sophisticated engine for combining several flush requests
into one. But there is no statistics for actual flushes executed by disk.
Requests which trigger flushes usually are barriers - zero-size writes.
This patch adds two iostat counters into /sys/class/block/$dev/stat and
/proc/diskstats - count of completed flush requests and their total time.
Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'Documentation/ABI/testing/sysfs-block')
-rw-r--r-- | Documentation/ABI/testing/sysfs-block | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/ABI/testing/sysfs-block b/Documentation/ABI/testing/sysfs-block index f8c7c7126bb1..ed8c14f161ee 100644 --- a/Documentation/ABI/testing/sysfs-block +++ b/Documentation/ABI/testing/sysfs-block @@ -15,6 +15,12 @@ Description: 9 - I/Os currently in progress 10 - time spent doing I/Os (ms) 11 - weighted time spent doing I/Os (ms) + 12 - discards completed + 13 - discards merged + 14 - sectors discarded + 15 - time spent discarding (ms) + 16 - flush requests completed + 17 - time spent flushing (ms) For more details refer Documentation/admin-guide/iostats.rst |