From: Ian Campbell Subject: Re: XEN 4.0 + 2.6.31.13 pvops kernel : system crashes on starting 155th domU Date: Wed, 28 Apr 2010 17:57:41 +0100 Message-ID: <1272473861.6417.84.camel@cthulhu.hellion.org.uk> References: <4BD7DA02.3030107@cs.ucsd.edu> <20100428140437.GA29653@phenom.dumpdata.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20100428140437.GA29653@phenom.dumpdata.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Konrad Rzeszutek Wilk Cc: "xen-devel@lists.xensource.com" , Yuvraj Agarwal , Keir Fraser , John McCullough List-Id: xen-devel@lists.xenproject.org On Wed, 2010-04-28 at 15:04 +0100, Konrad Rzeszutek Wilk wrote: > On Tue, Apr 27, 2010 at 11:47:30PM -0700, John McCullough wrote: > > I did a little testing. > > > > With no kernel option: > > # dmesg | grep -i nr_irqs > > [ 0.000000] nr_irqs_gsi: 88 > > [ 0.000000] NR_IRQS:4352 nr_irqs:256 > > > > w/nr_irqs=3D65536: > > # dmesg | grep -i nr_irqs > > [ 0.000000] Command line: root=3D/dev/sda1 ro quiet console=3Dhvc0= =20 > > nr_irqs=3D65536 > > [ 0.000000] nr_irqs_gsi: 88 > > [ 0.000000] Kernel command line: root=3D/dev/sda1 ro quiet console= =3Dhvc0 =20 > > nr_irqs=3D65536 > > [ 0.000000] NR_IRQS:4352 nr_irqs:256 > > > > tweaking the NR_IRQS macro in the kernel will change the NR_IRQS outp= ut, =20 > > but unfortunately that doesn't change nr_irqs and I run into the same= =20 > > limit (36 domus on a less-beefy dual core machine). >=20 > If you have CONFIG_SPARSE_IRQ defined in your .config, it gets > overwritten by some code that figures out how many IRQs you need based > on your CPU count. >=20 > So can you change NR_VECTORS in arch/x86/include/asm/irq_vectors.h to a > higher value and see what happens? Jeremy applied a patch of mine which added some extra space for dynamic IRQs at the start of march: commit 6d4a9168207ade237098a401270959ecc0bdd1e9 Author: Ian Campbell Date: Mon Mar 1 11:21:15 2010 +0000 =20 xen: allow some overhead in IRQ space for dynamic IRQs =20 If you have this patch then you can edit NR_DYNAMIC_IRQS in arch/x86/include/asm/irq_vectors.h to increase the number of extra IRQs. Ian. >=20 > > > > I did find this: > > http://blogs.sun.com/fvdl/entry/a_million_vms > > which references NR_DYNIRQS, which is in 2.6.18, but not in the pvops= =20 > > kernel. > > > > Watching /proc/interrupts, the domain irqs seem to be getting allocat= ed =20 > > from 248 downward until they hit some other limit: >=20 > Yeah. They hit the nr_irqs_gsi and don't go below that. >=20 > > ... > > 64: 59104 xen-pirq-ioapic-level ioc0 > > 89: 1 xen-dyn-event evtchn:xenconsoled > > 90: 1 xen-dyn-event evtchn:xenstored > > 91: 6 xen-dyn-event vif36.0 > > 92: 140 xen-dyn-event blkif-backend > > 93: 97 xen-dyn-event evtchn:xenconsoled > > 94: 139 xen-dyn-event evtchn:xenstored > > 95: 7 xen-dyn-event vif35.0 > > 96: 301 xen-dyn-event blkif-backend > > 97: 261 xen-dyn-event evtchn:xenconsoled > > 98: 145 xen-dyn-event evtchn:xenstored > > 99: 7 xen-dyn-event vif34.0 > > ... > > Perhaps the xen irqs are getting allocated out of the nr_irqs pool, =20 > > while they could be allocated from the NR_IRQS pool? > > > > -John > > > > > > > > > > On 04/27/2010 08:45 PM, Keir Fraser wrote: > >> I think nr_irqs is specifiable on the command line on newer kernels.= You may > >> be able to do nr_irqs=3D65536 as a kernel boot parameter, or somethi= ng like > >> that, without needing to rebuild the kernel. > >> > >> -- Keir > >> > >> On 28/04/2010 02:02, "Yuvraj Agarwal" wrote: > >> > >> =20 > >>> Actually, I did identify the problem (don=E2=80=99t know the fix) a= t least from > >>> the console logs. Its related to running out of nr_irq's (attached= JPG > >>> for the console log). > >>> > >>> > >>> -----Original Message----- > >>> From: xen-devel-bounces@lists.xensource.com > >>> [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Keir Fr= aser > >>> Sent: Tuesday, April 27, 2010 5:44 PM > >>> To: Yuvraj Agarwal; xen-devel@lists.xensource.com > >>> Subject: Re: [Xen-devel] XEN 4.0 + 2.6.31.13 pvops kernel : system = crashes > >>> on starting 155th domU > >>> > >>> On 27/04/2010 08:41, "Yuvraj Agarwal" wrote: > >>> > >>> =20 > >>>> Attached is the output of /var/log/daemon.log and /var/log/xen/xen= d.log, > >>>> =20 > >>> but > >>> =20 > >>>> as far as we can see we don=C2=B9t quite know what might be going = causing the > >>>> system to crash (no console access anymore and system becomes > >>>> =20 > >>> unresponsive and > >>> =20 > >>>> needs to be power-cycled). I have pasted only the relevant bits o= f > >>>> information (the last domU that did successfully start and the nex= t one > >>>> =20 > >>> that > >>> =20 > >>>> failed). It may be the case that all the log messages weren=C2=B9t= flushed > >>>> =20 > >>> before > >>> =20 > >>>> the system crashed=C5=A0 > >>>> > >>>> Does anyone know where this limit of 155 domU is coming from and h= ow we > >>>> =20 > >>> can > >>> =20 > >>>> fix/increase it? > >>>> =20 > >>> Get a serial line on a test box, and capture Xen logging output on = it. You > >>> can both see if any crash messages come from Xen when the 155th dom= ain is > >>> created, and also try the serial debug keys (e.g., try 'h' to get h= elp to > >>> start with) to see whether Xen itself is still alive. > >>> > >>> -- Keir > >>> > >>> > >>> > >>> _______________________________________________ > >>> Xen-devel mailing list > >>> Xen-devel@lists.xensource.com > >>> http://lists.xensource.com/xen-devel > >>> =20 > >> > >> > >> _______________________________________________ > >> Xen-devel mailing list > >> Xen-devel@lists.xensource.com > >> http://lists.xensource.com/xen-devel > >> =20 > > > > > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xensource.com > > http://lists.xensource.com/xen-devel >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel