From mboxrd@z Thu Jan 1 00:00:00 1970 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 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-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail6.bemta12.messagelabs.com (mail6.bemta12.messagelabs.com [216.82.250.247]) by kanga.kvack.org (Postfix) with ESMTP id 91249900194 for ; Wed, 22 Jun 2011 12:04:48 -0400 (EDT) Received: by yxn22 with SMTP id 22so498133yxn.14 for ; Wed, 22 Jun 2011 09:04:45 -0700 (PDT) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes 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> Sender: owner-linux-mm@kvack.org List-ID: 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 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, 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: mina86@mina86.com (Michal Nazarewicz) Date: Wed, 22 Jun 2011 18:04:39 +0200 Subject: [Linaro-mm-sig] [PATCH 08/10] mm: cma: Contiguous Memory Allocator added In-Reply-To: <201106221539.24044.arnd@arndb.de> 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> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 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--