From: "Benoît Canet" <benoit.canet@irqsave.net>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: Anshul Makkar <anshul.makkar@profitbricks.com>,
qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] block IO latency tracker without using QMP socket.
Date: Thu, 28 Aug 2014 17:00:44 +0200 [thread overview]
Message-ID: <20140828150044.GE28789@irqsave.net> (raw)
In-Reply-To: <20140828123635.GQ26741@stefanha-thinkpad.redhat.com>
The Thursday 28 Aug 2014 à 13:36:35 (+0100), Stefan Hajnoczi wrote :
> On Wed, Aug 27, 2014 at 04:58:12PM +0200, Anshul Makkar wrote:
> > I am writing a block IO latency tracker.
> >
> > As obvious, I am calculating the latency by tracking the interval between
> > start of IO and end of IO.
> > (firing my latency tracker from function BlockDriverAIOCB *raw_aio_submit()
> > raw-posix.c when job is submitted).
> >
> > The latency data per QEMU process will be written to shared memory and then
> > another app uses this shared memory to read the data. That's a simple
> > architecture.
> >
> > Can't use "info blockstats" QMP command as qmp socket is used and blocked
> > by some other process in our subsystem.
> >
> > Just want a suggestion whether my approach is correct given the constraint
> > that I can't use qmp socket or if any alternative is possible.
>
> Simplest option: use iostat(1) inside the guest.
>
> Or you can use tracing tools to measure block I/O request latency.
>
> An example from a few years ago:
> http://www.linux-kvm.org/page/Virtio/Block/Latency
>
> It depends what you are trying to achieve.
Stefan: ProfitBrick is a cloud provider.
This means they could prepare AMI (Virtual machine images) with stuff in it but
they never would access the shell of a running VM.
What happen in the guest after the AMI instanciation into a running VM is the
end user business and the cloud provider should not violate the end user territory.
I also agree that having QEMU collecting latencies statistics would be very useful.
Best regards
Benoît
>
> Stefan
next prev parent reply other threads:[~2014-08-28 15:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-27 14:58 [Qemu-devel] block IO latency tracker without using QMP socket Anshul Makkar
2014-08-27 15:13 ` Benoît Canet
2014-08-28 8:18 ` Markus Armbruster
2014-08-28 12:36 ` Stefan Hajnoczi
2014-08-28 15:00 ` Benoît Canet [this message]
2014-08-28 17:14 ` Markus Armbruster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140828150044.GE28789@irqsave.net \
--to=benoit.canet@irqsave.net \
--cc=anshul.makkar@profitbricks.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).