From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: Slab allocators: Define common size limitations Date: Wed, 16 May 2007 23:42:07 +0200 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200705162342.08601.arnd@arndb.de> Sender: owner-linux-mm@kvack.org Return-Path: To: linuxppc-dev@ozlabs.org Cc: Geert Uytterhoeven , Christoph Lameter , linux-mm@kvack.org, Andrew Morton , Linux Kernel Development List-ID: On Wednesday 16 May 2007, Geert Uytterhoeven wrote: > 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? kmalloc is limited to 128KiB on most architectures. Normally there is no need to use it anyway, just use __get_free_pages(). It will generally succeed at early boot time, but not after the system has been running for some time. Arnd <>< -- 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