qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 2/2] qapi: add block latency histogram interface


From: Vladimir Sementsov-Ogievskiy
Subject: Re: [Qemu-devel] [PATCH 2/2] qapi: add block latency histogram interface
Date: Wed, 7 Feb 2018 13:32:39 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

06.02.2018 22:02, Eric Blake wrote:
On 02/06/2018 12:06 PM, Vladimir Sementsov-Ogievskiy wrote:
06.02.2018 18:50, Eric Blake wrote:
On 02/06/2018 08:07 AM, Vladimir Sementsov-Ogievskiy wrote:
Set (and clear) histogram through new command
block-latency-histogram-set and show new statistics in
query-blockstats results.


The commit message mentioned that you can set and clear histogram tracking; how does this interface let you clear things?  By passing a 0-length latency array?  If you violate the constraint (pass non-ascending points, for example), does the previous latency map get wiped out or is it still preserved unchanged?

On error nothing is changed.

By "clear" I mean zeroing statistics, not removing the whole histogram. And to zero statistics you can call set with the same latency array. There is no way to remove histogram at all.. We can add block-latency-histogram-unset later if needed.

Maybe "set (or restart) histogram collection points" might read better? I also don't think we need a new command; if you make 'latency' optional, then omitting it can serve to stop collecting statistics altogether, without needing a new command (then again, if you do that, now the command is used to "set, restart, and clear histogram collection").


I like the idea, will do.

--
Best regards,
Vladimir




reply via email to

[Prev in Thread] Current Thread [Next in Thread]