Re: [PATCH 12/15] drivers: add Contiguous Memory Allocator

From: Michal Nazarewicz
Date: Sun Feb 05 2012 - 09:33:24 EST

On Sun, 05 Feb 2012 05:25:40 +0100, Hillf Danton <dhillf@xxxxxxxxx> wrote:
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' \,=./ `o
..o | Computer Science, MichaÅ âmina86â Nazarewicz (o o)
ooo +----<email/xmpp: mpn@xxxxxxxxxx>--------------ooO--(_)--Ooo--
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