qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Tracking the VM making an IO request


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] Tracking the VM making an IO request
Date: Wed, 10 Feb 2016 10:23:37 +0000
User-agent: Mutt/1.5.24 (2015-08-30)

On Wed, Feb 10, 2016 at 12:35:54PM +0330, Aarian P. Aleahmad wrote:
> I'm a student, engaged in a project in which QEMU is a candidate to be used
> to make some studies about IO usage etc.
> I need to track the IO requests made to the block devices (e.g. HDD, SSD,
> etc.). I check the source code but I was confused. What I want to know is
> that when an IO request is made, find out that which on of the VMs has made
> that request. I'll thank you if you help me on this issue.

There are trace events that you can use.  See docs/tracing.txt and
trace-events.

virtio_blk_handle_write and virtio_blk_handle_read can be used if your
guest has virtio-blk.

The QEMU block layer also has trace events named bdrv_aio_*.

Or you could use blktrace(8) in the guest or on the host, depending on
how you've set up storage.

Finally, if you prefer you could set up an iSCSI or NBD target and
simply use Wireshark to record and analyze the I/O request patterns.

Stefan

Attachment: signature.asc
Description: PGP signature


reply via email to

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