Re: sparsemem usage

From: Alan Cox
Date: Wed Aug 02 2006 - 11:03:05 EST

Ar Mer, 2006-08-02 am 13:44 +0000, ysgrifennodd moreau francis:
> #error Allocator MAX_ORDER exceeds SECTION_SIZE
> #endif
> I'm not sure to understand why there's such check. To fix this
> I should change MAX_ORDER to 6.
> Is it the only way to fix that ?

The kernel allocates memory out using groups of blocks in a buddy
system. 128K is smaller than one of the blocks so the kernel cannot
handle this. You need 2MB (if I remember right) granularity for your
sections but nothing stops you marking most of the 2Mb section except
the 128K that exists as "in use"


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at