Re: Questton about Zone Allocation 2.4.X

William Lee Irwin III (wli@holomorphy.com)
Thu, 2 Jan 2003 16:00:34 -0800


At some point in the past, I wrote:
>> __get_free_pages() allocates from lowmem (i.e. 0-4GB) only.
>> Allocate from highmem instead.

0-1GB. page_address() will give unpredictable results on highmem GFP masks.

On Thu, Jan 02, 2003 at 06:08:49PM -0700, Jeff V. Merkey wrote:
> 0-4GB is where I need to allocate, so allocating from highmem is not
> a solution. I found the Ingo/Andrea patch for RH 8.0, but this patch
> looks a little scary since it affects the memory allocations between
> user and kernel space and the ratios alloted to these areas (I may
> be missing something here -- as Dave M. puts it "Jeff you are such a pain
> in the ass sometimes" :-).

There is no GFP mask for it. Port Jens' ZONE_DMA32 or something, or roll
ZONE_4G on your own if need be.

Bill
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/