From: Ben-Ami Yassour Subject: Re: virtio performance issue Date: Tue, 16 Sep 2008 22:24:40 +0300 Message-ID: <1221593080.26630.28.camel@cluwyn.haifa.ibm.com> References: <1221574441.26630.19.camel@cluwyn.haifa.ibm.com> <48CFBFC6.4040405@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, markmc@redhat.com, Muli Ben-Yehuda To: Anthony Liguori Return-path: Received: from mtagate3.uk.ibm.com ([195.212.29.136]:35652 "EHLO mtagate3.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754923AbYIPTYw (ORCPT ); Tue, 16 Sep 2008 15:24:52 -0400 Received: from d06nrmr1407.portsmouth.uk.ibm.com (d06nrmr1407.portsmouth.uk.ibm.com [9.149.38.185]) by mtagate3.uk.ibm.com (8.13.8/8.13.8) with ESMTP id m8GJOgSb105054 for ; Tue, 16 Sep 2008 19:24:42 GMT Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by d06nrmr1407.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id m8GJOgOf3313734 for ; Tue, 16 Sep 2008 20:24:42 +0100 Received: from d06av02.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m8GJOgvP006646 for ; Tue, 16 Sep 2008 20:24:42 +0100 In-Reply-To: <48CFBFC6.4040405@us.ibm.com> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, 2008-09-16 at 09:16 -0500, Anthony Liguori wrote: > Ben-Ami Yassour wrote: > > I am running virtio with the latest KVM code, and see a significant > > performance issue. > > > > Ping to the host (or any other close machine) reports a 4ms delay. > > > > What kvm version and what host kernel version? > > It's very easy to mistakenly compile qemu without GSO support too. You > have to make sure that the 2.6.27 if_tun.h is being included by QEMU. Is there an option to control GSO support? How? I am using the kernel and userspace that I pulled from the kvm tree today. Based on your comment, we checked and the build of the userspace does not take if_tun.h from the kernel tree, it takes it from the system include files. The reason was that the file was not copied as part of the userspace build. To fix this we made the following change: diff --git a/kernel/Makefile b/kernel/Makefile index 3f5f6da..b81b098 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -53,7 +53,7 @@ T = $(subst -sync,,$@)-tmp header-sync: rm -rf $T rsync -R \ - "$(LINUX)"/./include/linux/kvm*.h \ + "$(LINUX)"/./include/linux/*.h \ "$(LINUX)"/./include/asm-*/kvm*.h \ Even with this change and compiling the userspace with the correct if_tun.h the results are the same, ping takes 4ms. What could be the reason? Thanks, Ben