Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932505Ab1FVQEs (ORCPT ); Wed, 22 Jun 2011 12:04:48 -0400 Received: from mail-yi0-f46.google.com ([209.85.218.46]:46384 "EHLO mail-yi0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932483Ab1FVQEq (ORCPT ); Wed, 22 Jun 2011 12:04:46 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:content-type:to:cc:subject:references:date:mime-version :content-transfer-encoding:from:message-id:in-reply-to:user-agent; b=eQPrYVo9mAM006RoJjxh+GGLSpk8me8bpedq/1HjO/DmHS2gqFLlUzQoFmjmvXb/bK yQISoENicXO7TxNs832RjERwPYBnrqZY1hDcxdv3zUHRDvUVT0EtrnBBmh8OcTMw8ZSh YnqPXWXhTr5fEAuy2CyBFrT83x1XkGcRLIFbg= Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: "Marek Szyprowski" , "Arnd Bergmann" Cc: "'Hans Verkuil'" , "'Daniel Walker'" , "'Jesse Barker'" , "'Mel Gorman'" , "'KAMEZAWA Hiroyuki'" , linux-kernel@vger.kernel.org, linaro-mm-sig@lists.linaro.org, linux-mm@kvack.org, "'Kyungmin Park'" , "'Ankita Garg'" , "'Andrew Morton'" , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org Subject: Re: [Linaro-mm-sig] [PATCH 08/10] mm: cma: Contiguous Memory Allocator added References: <1307699698-29369-1-git-send-email-m.szyprowski@samsung.com> <201106221442.20848.arnd@arndb.de> <003701cc30de$7a159710$6e40c530$%szyprowski@samsung.com> <201106221539.24044.arnd@arndb.de> Date: Wed, 22 Jun 2011 18:04:39 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Michal Nazarewicz" Message-ID: In-Reply-To: <201106221539.24044.arnd@arndb.de> User-Agent: Opera Mail/11.10 (Linux) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1020 Lines: 20 On Wed, 22 Jun 2011 15:39:23 +0200, Arnd Bergmann wrote: > Why that? I would expect you can do the same that hugepages (used to) do > and just attempt high-order allocations. If they succeed, you can add > them as a CMA region and free them again, into the movable set of pages, > otherwise you just fail the request from user space when the memory is > already fragmented. Problem with that is that CMA needs to have whole pageblocks allocated and buddy can allocate at most half a pageblock. -- Best regards, _ _ .o. | Liege of Serenely Enlightened Majesty of o' \,=./ `o ..o | Computer Science, Michal "mina86" Nazarewicz (o o) ooo +----------ooO--(_)--Ooo-- -- 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/