From: Håvard Bjerke Subject: Re: Xen & I/O in clusters - problems! New Information Date: Wed, 27 Oct 2004 19:11:49 +0200 Sender: xen-devel-admin@lists.sourceforge.net Message-ID: <20041027171148.GK23334@idi.ntnu.no> References: <95384844-2448-11D9-8725-000A95B44940@idi.ntnu.no> Mime-Version: 1.0 Content-Type: text/plain; charset=unknown-8bit Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Ian Pratt Cc: Rune Johan Andresen , Xen Virtual Machine Monitor , =?unknown-8bit?Q?H=E5vard?= Bjerke List-Id: xen-devel@lists.xenproject.org On Fri, Oct 22, 2004 at 06:47:35PM +0100, Ian Pratt wrote: > >=20 > > We tried to compile xen0 with CONFIG_E1000_NAPI =3D y and got the sam= re=20 > > results between > > two xen dom0 nodes. I am not sure if these interrupts tells anything: >=20 > It's the different rate at which the eth0 interrupt counts go up > during your bandwidth tests that is interesting. e.g. poll it > once a second during the test. >=20 We tried sending 1 MB and measured: non-SMP native Linux: ~ 130k interrupts 114 kB/s native Linux with compiled-in SMP support, single CPU: ~ 140k interrupts 114 kB/s Xen0: ~ 180k interrupts 80 kB/s > It looks like your native Linux is not using legacy PIC mode > rather than using the ioapic. Have you tried an SMP native > kernel to see if it gets the same interrupt layout as Xen? > =20 Layout in native linux w/o SMP: CPU0 =20 0: 130710161 XT-PIC timer 1: 2 XT-PIC keyboard 2: 0 XT-PIC cascade 3: 12872557 XT-PIC eth0 7: 0 XT-PIC ehci-hcd 8: 1 XT-PIC rtc 10: 3 XT-PIC usb-uhci 11: 445263 XT-PIC aic7xxx, aic7xxx, usb-uhci 14: 1 XT-PIC ide0 15: 0 XT-PIC libata NMI: 0=20 ERR: 0 Layout in native linux compiled with SMP: CPU0 =20 0: 121362 IO-APIC-edge timer 1: 2 IO-APIC-edge keyboard 2: 0 XT-PIC cascade 14: 5 IO-APIC-edge ide0 16: 0 IO-APIC-level usb-uhci 18: 177583 IO-APIC-level eth0 19: 0 IO-APIC-level usb-uhci 24: 7587 IO-APIC-level aic7xxx 25: 30 IO-APIC-level aic7xxx NMI: 0=20 LOC: 121307=20 ERR: 0 MIS: 0 Layout in Xen0: CPU0 =20 1: 2 Phys-irq keyboard 14: 3 Phys-irq ide0 18: 267274 Phys-irq eth0 24: 15910 Phys-irq aic7xxx 25: 30 Phys-irq aic7xxx 128: 1 Dynamic-irq misdirect 129: 0 Dynamic-irq ctrl-if 130: 771917 Dynamic-irq timer 131: 0 Dynamic-irq timer_dbg, net-be-dbg 132: 0 Dynamic-irq console NMI: 0=20 ERR: 0 Questions: Do you think interrupt sharing is the problem? Or the use of IO-APIC? Is this an inherent problem with Xen? Is it possible to change the interrupt scheme in Xen in order to achieve = the same performance as in native linux? Cheers, H=E5vard ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click