From: Mike Nielsen Subject: Windows Guest to Windows Guest on Same host is impossibly slow Date: Wed, 17 Jul 2013 16:12:58 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE To: "kvm@vger.kernel.org" Return-path: Received: from mail.theitmachine.com ([74.94.87.129]:31030 "EHLO mail.theitmachine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754263Ab3GQQNn convert rfc822-to-8bit (ORCPT ); Wed, 17 Jul 2013 12:13:43 -0400 Content-Language: en-US Sender: kvm-owner@vger.kernel.org List-ID: I'm not sure if I'm submitting this to the proper place or not, if not,= please direct me accordingly. At this point I'm starting to get desperate, I'll take any options or s= uggestions that spring to mind: Anyway, the problem exists on multiple hosts of various quality.=A0=A0 = =46rom 4 core 8g mem machines to 12 core 64Gig mem machines with LVM an= d Raid-10.=A0=20 Using iperf as the testing utility: (windows guest can be either Window= s 7 or 2008R2) -Windows Guest -> Windows Guest averages 20Mbit/s (The problem) -Windows Guest -> Host averages 800Mbit/s -Host -> Windows Guest averages 1.1Gbit/s -Linux Guest -> Host averages 12GBit/s -Linux Guest -> Linux Guest averages 10.2Gbit/s =46or windows guests, switching between e1000 and virtio drivers doesn'= t make much of a difference.=A0=A0=20 I use openvswitch to handle the bridging (makes bonding nics much easie= r)=A0=20 Disabling TSO GRO on all the host nics, and virtual nics, as well as mo= dding the registry using: netsh int tcp set global (various params here)=A0 can slightly improve = Windows -> windows throughput.=A0=A0 up to maybe 100Mbit/s=A0=A0=A0 but= even that is spotty at best. The Particulars of the fastest host which benchmarks about the same as = the slowest host.=A0=20 Ubuntu 12.04 64bit (updated to lastest as of=A0 July 15th) Linux cckvm03 3.5.0-36-generic #57~precise1-Ubuntu SMP Thu Jun 20 18:21= :09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux libvirt:=A0=20 Source: libvirt Version: 0.9.8-2ubuntu17.10 qemu-kvm Package: qemu-kvm Version: 1.0+noroms-0ubuntu14.8 Replaces: kvm (<< 1:84+dfsg-0ubuntu16+0.11.0), kvm-data, qemu openvswitch Source: openvswitch Version: 1.4.0-1ubuntu1.5 /proc/cpuifo processor=A0=A0=A0=A0=A0=A0 : 0 vendor_id=A0=A0=A0=A0=A0=A0 : GenuineIntel cpu family=A0=A0=A0=A0=A0 : 6 model=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 : 45 model name=A0=A0=A0=A0=A0 : Intel(R) Xeon(R) CPU E5-2440 0 @ 2.40GHz stepping=A0=A0=A0=A0=A0=A0=A0 : 7 microcode=A0=A0=A0=A0=A0=A0 : 0x70d cpu MHz=A0=A0=A0=A0=A0=A0=A0=A0 : 2400.226 cache size=A0=A0=A0=A0=A0 : 15360 KB physical id=A0=A0=A0=A0 : 0 siblings=A0=A0=A0=A0=A0=A0=A0 : 12 core id=A0=A0=A0=A0=A0=A0=A0=A0 : 0 cpu cores=A0=A0=A0=A0=A0=A0 : 6 apicid=A0=A0=A0=A0=A0=A0=A0=A0=A0 : 0 initial apicid=A0 : 0 fpu=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 : yes fpu_exception=A0=A0 : yes cpuid level=A0=A0=A0=A0 : 13 wp=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 : yes flags=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 : fpu vme de pse tsc msr pae mce cx= 8 apic sep mtrr pge mca cmov=20 pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pd= pe1gb rdt scp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonst= op_tsc ap erfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16= xtpr pdc m pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx= lahf_lm=20 ida arat xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid bogomips=A0=A0=A0=A0=A0=A0=A0 : 4800.45 clflush size=A0=A0=A0 : 64 cache_alignment : 64 address sizes=A0=A0 : 46 bits physical, 48 bits virtual power management: -Sample KVM line=20 usr/bin/kvm -S -M pc-1.0 -enable-kvm -m 4096 -smp 2,sockets=3D2,cores=3D= 1,threads=3D1 -name gvexch01 -uuid d28ffb4b-d809-3b40-ae3d-2925e6995394= -nodefconfig -nodefaults -chardev socket,id=3Dcharmonitor,path=3D/var/= lib/libvirt/qemu/gvexch01.monitor,server,nowait -mon chardev=3Dcharmoni= tor,id=3Dmonitor,mode=3Dcontrol -rtc base=3Dlocaltime -no-shutdown -boo= t order=3Ddc,menu=3Don -drive file=3D/dev/vgroup/gvexch01,if=3Dnone,id=3D= drive-virtio-disk0,format=3Draw,cache=3Dnone,aio=3Dnative -device virti= o-blk-pci,bus=3Dpci.0,addr=3D0x4,drive=3Ddrive-virtio-disk0,id=3Dvirtio= -disk0 -drive file=3D/dev/vgroup/gvexch01-d,if=3Dnone,id=3Ddrive-virtio= -disk1,format=3Draw,cache=3Dnone -device virtio-blk-pci,bus=3Dpci.0,add= r=3D0x6,drive=3Ddrive-virtio-disk1,id=3Dvirtio-disk1 -drive if=3Dnone,m= edia=3Dcdrom,id=3Ddrive-ide0-0-0,readonly=3Don,format=3Draw -device ide= -drive,bus=3Dide.0,unit=3D0,drive=3Ddrive-ide0-0-0,id=3Dide0-0-0 -netde= v tap,fd=3D18,id=3Dhostnet0,vhost=3Don,vhostfd=3D21 -device virtio-net-= pci,netdev=3Dhostnet0,id=3Dnet0,mac=3D52:54:00:bf:4e:1c,bus=3Dpci.0,add= r=3D0x3 -chardev pty,id=3Dcharserial0 -device isa-serial,chardev=3Dchar= serial0,id=3Dserial0 -usb -device usb-tablet,id=3Dinput0 -vnc 127.0.0.1= :2 -vga std -device virtio-balloon-pci,id=3Dballoon0,bus=3Dpci.0,addr=3D= 0x5