ia64/xen-unstable

changeset 10340:4f1e39ec05d6

[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>
author kaf24@firebug.cl.cam.ac.uk
date Thu Jun 08 16:51:39 2006 +0100 (2006-06-08)
parents 2db7b3627da4
children 68c22a722e6f
files xen/include/xen/mm.h
line diff
     1.1 --- a/xen/include/xen/mm.h	Thu Jun 08 16:48:23 2006 +0100
     1.2 +++ b/xen/include/xen/mm.h	Thu Jun 08 16:51:39 2006 +0100
     1.3 @@ -68,8 +68,11 @@ unsigned long avail_domheap_pages(void);
     1.4  
     1.5  #define ALLOC_DOM_DMA 1
     1.6  
     1.7 -/* Up to 2^20 pages can be allocated at once. */
     1.8 -#define MAX_ORDER 20
     1.9 +#ifdef CONFIG_PAGEALLOC_MAX_ORDER
    1.10 +#define MAX_ORDER CONFIG_PAGEALLOC_MAX_ORDER
    1.11 +#else
    1.12 +#define MAX_ORDER 11 /* 2^11 contiguous pages */
    1.13 +#endif
    1.14  
    1.15  /* Automatic page scrubbing for dead domains. */
    1.16  extern struct list_head page_scrub_list;