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-ia64-devel

[Xen-ia64-devel] [patch] increase xen-heap-size based on nodes-shift

To: Alex Williamson <alex.williamson@xxxxxx>, xen-ia64-devel <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-ia64-devel] [patch] increase xen-heap-size based on nodes-shift
From: Jes Sorensen <jes@xxxxxxx>
Date: Wed, 13 Jun 2007 15:43:57 +0200
Delivery-date: Wed, 13 Jun 2007 06:41:50 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.4 (X11/20060527)
Hi,

For the bigger systems we need a slightly bigger heap or the heap
will overflow. Unfortunately there is no easy way to determine the
size dynamically this early in the boot process before the nodes have
been discovered.

Cheers,
Jes

# HG changeset patch
# User jes@xxxxxxxxxxxxxxxx
# Date 1181742127 -7200
# Node ID 21714d18a7583866b23ba4f5e1f8f95f51b460c8
# Parent  96617c4f19aaefa5ae5f1ceef6b5734f3c76c2ce
For bigger system the default size of XENHEAP is far from
sufficient. This bases the size of XENHEAP on the NODES_SHIFT, leaving
the old default for a NODES_SHIFT <= 5 for those who prefer to compile
a smaller Xen.

Signed-off-by: Jes Sorensen <jes@xxxxxxx>

diff -r 96617c4f19aa -r 21714d18a758 xen/include/asm-ia64/config.h
--- a/xen/include/asm-ia64/config.h     Tue Jun 12 20:41:08 2007 -0600
+++ b/xen/include/asm-ia64/config.h     Wed Jun 13 15:42:07 2007 +0200
@@ -111,8 +111,12 @@ extern char _end[]; /* standard ELF symb
 ///////////////////////////////////////////////////////////////
 // xen/include/asm/config.h
 // Natural boundary upon TR size to define xenheap space
-#define XENHEAP_DEFAULT_MB (1 << (KERNEL_TR_PAGE_SHIFT - 20))
+#if (NODES_SHIFT > 5)
+#define XENHEAP_DEFAULT_SIZE   (1 << (KERNEL_TR_PAGE_SHIFT + NODES_SHIFT - 6))
+#else
 #define XENHEAP_DEFAULT_SIZE   (1 << KERNEL_TR_PAGE_SHIFT)
+#endif
+#define XENHEAP_DEFAULT_MB     XENHEAP_DEFAULT_SIZE >> 20
 #define        ELFSIZE 64
 
 ///////////////////////////////////////////////////////////////
_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel