]> git.proxmox.com Git - mirror_qemu.git/commit - util/timed-average.c
block: Add average I/O queue depth to BlockDeviceTimedStats
authorAlberto Garcia <berto@igalia.com>
Wed, 28 Oct 2015 15:33:06 +0000 (17:33 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 12 Nov 2015 15:22:46 +0000 (16:22 +0100)
commit96e4dedaff9922f87e4ec351d51d3f093198382a
tree4f13bd41dbde11ddedeb6ce30d0ae0ca11e8ea6e
parent979e9b03fc8c85d3b78a14410c64cbb16d348095
block: Add average I/O queue depth to BlockDeviceTimedStats

This patch adds two new fields to BlockDeviceTimedStats that track the
average number of pending read and write requests for a block device.

The values are calculated for the period of time defined for that
interval.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Message-id: fd31fef53e2714f2f30d59ed58ca2f67ec9ab926.1446044837.git.berto@igalia.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/accounting.c
block/qapi.c
include/block/accounting.h
include/qemu/timed-average.h
qapi/block-core.json
qmp-commands.hx
util/timed-average.c