RFE: add an event to report block devices watermark
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Add an event to report if a block device usage exceeds a threshold. The threshold should be configurable with a monitor command. The event should report the affected block device. Additional useful information could be the offset of the highest sector , like in the query-blockstats output.
Rationale for the RFE
Managing applications, like oVirt (http://
In order to let the guest run flawlessly and be not unnecessarily paused, oVirt sets a watermark and automatically resized the image once the watermark is reached or exceeded.
In order to detect the mark crossing, the managing application has no choice than aggressively polling the QEMU monitor
using the query-blockstats command. This lead to unnecessary system load, and is made even worse under scale: scenarios
with hunderds of VM are becoming not unusual.
patch posted on qemu-devel, reviewd, acked and merged into maintainer's branch: /github. com/stefanha/ qemu/commit/ f050ea639522e9d d7e501ef285a2a1 2709b8726a
https:/