From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx129.postini.com [74.125.245.129]) by kanga.kvack.org (Postfix) with SMTP id AD7976B002C for ; Sun, 5 Feb 2012 09:33:15 -0500 (EST) Received: by eekc13 with SMTP id c13so2094143eek.14 for ; Sun, 05 Feb 2012 06:33:14 -0800 (PST) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Subject: Re: [PATCH 12/15] drivers: add Contiguous Memory Allocator References: <1328271538-14502-1-git-send-email-m.szyprowski@samsung.com> <1328271538-14502-13-git-send-email-m.szyprowski@samsung.com> Date: Sun, 05 Feb 2012 15:33:08 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: Quoted-Printable From: "Michal Nazarewicz" Message-ID: In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Marek Szyprowski , Hillf Danton Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-mm@kvack.org, linaro-mm-sig@lists.linaro.org, Kyungmin Park , Russell King , Andrew Morton , KAMEZAWA Hiroyuki On Sun, 05 Feb 2012 05:25:40 +0100, Hillf Danton wrot= e: > Without boot mem reservation, what is the successful rate of CMA to > serve requests of 1MiB, 2MiB, 4MiB and 8MiB chunks? CMA will work as long as you manage to get some pageblocks marked as MIGRATE_CMA and move all non-movable pages away. You might try and get = it done after system has booted but we have not tried nor tested it. Reservation at boot time lets us make sure that the portion of memory we= are grabbing has no unmovable pages. You might still and use alloc_contig_pages() on its own (even without MIGRATE_CMA) but that would require additional code which would look for= a region of memory that could be used (ie. that does not have unmovable pages in it). That in fact was what Kamezawa's code was doing. -- = Best regards, _ _ .o. | Liege of Serenely Enlightened Majesty of o' \,=3D./ `o ..o | Computer Science, Micha=C5=82 =E2=80=9Cmina86=E2=80=9D Nazarewicz= (o o) ooo +------------------ooO--(_)--Ooo-- -- 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/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org