WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: many guests on Xen 4 NR_DYNAMIC_IRQS success report...

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Re: many guests on Xen 4 NR_DYNAMIC_IRQS success report...
From: Luke S Crawford <lsc@xxxxxxxxx>
Date: 03 Sep 2010 02:49:08 -0400
Cc: nick@xxxxxxxxx
Delivery-date: Thu, 02 Sep 2010 23:49:49 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <m3eidb4amw.fsf@xxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <m339tr5siq.fsf@xxxxxxxxxxxxxxxxxx> <m3eidb4amw.fsf@xxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4
so I am tenitively moving towards the xen 4/pv_ops kernel (2.6.32.18, 
xen/stable-2.6.32.x as of yesterday).  

I need a lot of guests, as our smallest hardware has 32GiB ram, and our median
guest has 256MiB ram.
 
we followed
http://lists.xensource.com/archives/html/xen-devel/2010-04/msg01537.html

and changed

NR_DYNAMIC_IRQS in arch/x86/include/asm/irq_vectors.h to 2048. 
  
we changed the .config like so:
  
 CONFIG_SPARSE_IRQ=n 
 
then we applied the following patch to arch/x86/include/asm/irq_vectors.h:


  --- ./linux-2.6-pvops.git/arch/x86/include/asm/irq_vectors.h.old        
2010-08-11 15:40:53.000000000 +0000
  +++ ./linux-2.6-pvops.git/arch/x86/include/asm/irq_vectors.h    2010-08-11 
15:41:39.000000000 +0000
  @@ -167,7 +167,7 @@
   # if defined(CONFIG_X86_IO_APIC) && defined(CONFIG_SPARSE_IRQ)
   extern int nr_dynamic_irqs;
   # else
  -#  define NR_DYNAMIC_IRQS                       256
  +#  define NR_DYNAMIC_IRQS                       2048
   # endif
   #endif
  
and we now can get to 338 guests (with three disks each) on our
64GiB 16 core test server.   the 339th guest appears to start, but 
instead sits there on a blank console.   
 
338 guests is enough for me, as my 64GiB boxes are reserved for 1GiB 
guests and up, and even on the 512MiB and smaller guests, the 32GiB 
servers rarely exceed 100 guests.  

Now, if you start more guests, (we started 479) while xl works, xm hangs 
forever.  the domains we start after 338 are unpingable.  Xend can not 
restart.   xenconsoled keeps dying.   We kill guests down to 300, restart 
xend and xenconsoled, and everything appears to be happy once again.  

Anyhow, uh, like I said, it appears to work just fine for 300 guests
and below, which is enough for me.  I'm guessing that much above 300 
guests (338, I believe, is the tipping point when you use my setup)
we just run out of interupts.

[root@chessboard ~]# xl list |wc -l
300
[root@chessboard ~]# wc -l /proc/interrupts 
1830 /proc/interrupts

so that all looks right to me.  Now, it'd be a nice safety feature if
xendomains didn't hoark when it went over the limit, as I need that
to keep the existing domains running, but it looks like I've got enough
headroom here that it's not a big deal.

-- 
Luke S. Crawford
http://prgmr.com/xen/         -   Hosting for the technically adept
http://nostarch.com/xen.htm   -   We don't assume you are stupid.  

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Re: many guests on Xen 4 NR_DYNAMIC_IRQS success report..., Luke S Crawford <=