]> git.ipfire.org Git - thirdparty/qemu.git/commit
block/accounting: introduce latency histogram
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Fri, 9 Mar 2018 16:52:11 +0000 (19:52 +0300)
committerEric Blake <eblake@redhat.com>
Mon, 19 Mar 2018 19:58:37 +0000 (14:58 -0500)
commitb741ae74170643de0fec3005c717e3a397c3e034
treed16b50a589fb7f94c48970612b84f1bac84903d6
parentd003f7a8f9cafe50119975844fa01afc2baf41fb
block/accounting: introduce latency histogram

Introduce latency histogram statics for block devices.
For each accounted operation type, the latency region [0, +inf) is
divided into subregions by several points. Then, calculate
hits for each subregion.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20180309165212.97144-2-vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
block/accounting.c
include/block/accounting.h