qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] a suggestion to extend the query block stats commands f


From: Dou Liyang
Subject: Re: [Qemu-devel] a suggestion to extend the query block stats commands for multi-disk case
Date: Tue, 6 Dec 2016 16:05:06 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0

Hi Paolo,Stefan,

At 12/05/2016 07:57 PM, Paolo Bonzini wrote:


On 05/12/2016 12:53, Stefan Hajnoczi wrote:
Adding the BlockBackend *query_blk parameter is a reasonable short-term
workaround.  I wonder if the polling stats APIs need to be rethought in
the longer term.

Regarding the low-level details of block statistics inside QEMU, we can
probably collect statistics without requiring the AioContext lock.  This
means guest I/O processing does not need to be interrupted.  There
should be some RCU-style scheme that can be used to extract the stats.

The question is also what level of consistency you want.  Perhaps as
long as you can access it atomically (so no tearing of values) you don't
need a lock at all, blk_ref/unref is enough.

Yes, that is what I want to express. When I use the command frequently,
I may want to sacrifice consistency, in exchange for performance.


Thanks,

  Liyang.





reply via email to

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