From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 16 May 2007 08:58:39 +0200 (CEST) From: Geert Uytterhoeven Subject: Re: Slab allocators: Define common size limitations In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: Christoph Lameter Cc: Andrew Morton , Linux Kernel Development , linux-mm@kvack.org, Linux/PPC Development List-ID: On Tue, 15 May 2007, Christoph Lameter wrote: > So define a common maximum size for kmalloc. For conveniences sake > we use the maximum size ever supported which is 32 MB. We limit the maximum > size to a lower limit if MAX_ORDER does not allow such large allocations. What are the changes a large allocation will actually succeed? Is there an alignment rule for large allocations? E.g. for one of the PS3 drivers I need a physically contiguous 256 KiB-aligned block of 256 KiB. Currently I'm using __alloc_bootmem() for that, but maybe kmalloc() becomes a suitable alternative now? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- Sony Network and Software Technology Center Europe (NSCE) Geert.Uytterhoeven@sonycom.com ------- The Corporate Village, Da Vincilaan 7-D1 Voice +32-2-7008453 Fax +32-2-7008622 ---------------- B-1935 Zaventem, Belgium -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org