aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/mm.h
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-06-08 16:51:39 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-06-08 16:51:39 +0100
commit48cc0bd192b300119bb86158c9f0daf0f0c49be1 (patch)
tree8edf766cf25c5f2739d37a99c87d72c30abdfd05 /xen/include/xen/mm.h
parent80c6044fb38ff95afbd0f02ca06b23ad80eb7512 (diff)
downloadxen-48cc0bd192b300119bb86158c9f0daf0f0c49be1.tar.gz
xen-48cc0bd192b300119bb86158c9f0daf0f0c49be1.tar.bz2
xen-48cc0bd192b300119bb86158c9f0daf0f0c49be1.zip
[XEN] Reduce default maximum allocation order from 2^20 pages to 2^11.
On x86 this corresponds to a maximum aligned contiguous allocation of 8MB. This can be overridden by architectures if need be. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/include/xen/mm.h')
-rw-r--r--xen/include/xen/mm.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/xen/include/xen/mm.h b/xen/include/xen/mm.h
index 327758f2c2..e33fbc2e52 100644
--- a/xen/include/xen/mm.h
+++ b/xen/include/xen/mm.h
@@ -68,8 +68,11 @@ unsigned long avail_domheap_pages(void);
#define ALLOC_DOM_DMA 1
-/* Up to 2^20 pages can be allocated at once. */
-#define MAX_ORDER 20
+#ifdef CONFIG_PAGEALLOC_MAX_ORDER
+#define MAX_ORDER CONFIG_PAGEALLOC_MAX_ORDER
+#else
+#define MAX_ORDER 11 /* 2^11 contiguous pages */
+#endif
/* Automatic page scrubbing for dead domains. */
extern struct list_head page_scrub_list;