From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:55452) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXa54-0008Jy-Mi for qemu-devel@nongnu.org; Fri, 17 Jun 2011 10:31:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QXa52-0007jz-DE for qemu-devel@nongnu.org; Fri, 17 Jun 2011 10:31:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49361) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXa51-0007jT-VH for qemu-devel@nongnu.org; Fri, 17 Jun 2011 10:31:28 -0400 Message-ID: <4DFB3734.8080307@redhat.com> Date: Fri, 17 Jun 2011 13:15:00 +0200 From: Kevin Wolf MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] how to verify virtio is being used? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: al pat Cc: qemu-devel@nongnu.org Am 16.06.2011 20:57, schrieb al pat: > I have posted this on kvm alias, but have not heard back. seeing some inputs. > > seeking some pointers/guidance as to how to determine virtio is being used... > > I configured a VM to use block device with if=virtio (create a 1GB > disk using dd I exported this disk to the VM and am now doing scp from > host to the > guest after creating partition/mkfs. > > I created another 1GB disk and export it as a IDE disk. I use the same > scp command from host to guest after creating partition/mkfs. > > I am trying to determine if my block IO is indeed using virtio in the > first case. > > Empirically, I observe that with if=virtio, the throughput is about > 30% more (in terms of mbps) and time taken is about 40% less than > for the case where I passed the disk as a IDE disk. > > My scp happens over virbr0 interface (and currently I am not concerned > if networking is using virtio) > > How do I confirm that virtio is being used? Are there any debugs that > I can enable to do that. Have a look at the guest kernel logs, lspci output or just at the device name: IDE disks are called /dev/sda etc. whereas virtio-blk disks are called /dev/vda etc. Kevin