Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752406Ab0HZCNP (ORCPT ); Wed, 25 Aug 2010 22:13:15 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:41219 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751833Ab0HZCNM convert rfc822-to-8bit (ORCPT ); Wed, 25 Aug 2010 22:13:12 -0400 MIME-version: 1.0 Content-type: text/plain; charset=utf-8; format=flowed; delsp=yes Date: Thu, 26 Aug 2010 04:12:10 +0200 From: =?utf-8?B?TWljaGHFgiBOYXphcmV3aWN6?= Subject: Re: [PATCH/RFCv4 0/6] The Contiguous Memory Allocator framework In-reply-to: <20100826095857.5b821d7f.kamezawa.hiroyu@jp.fujitsu.com> To: Andrew Morton , KAMEZAWA Hiroyuki Cc: Hans Verkuil , Daniel Walker , Russell King , Jonathan Corbet , Peter Zijlstra , Pawel Osciak , Konrad Rzeszutek Wilk , linux-kernel@vger.kernel.org, FUJITA Tomonori , linux-mm@kvack.org, Kyungmin Park , Zach Pfeffer , Mark Brown , Mel Gorman , linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Marek Szyprowski Message-id: Organization: Samsung Electronics Content-transfer-encoding: 8BIT User-Agent: Opera Mail/10.61 (Linux) References: <1282310110.2605.976.camel@laptop> <20100825155814.25c783c7.akpm@linux-foundation.org> <20100826095857.5b821d7f.kamezawa.hiroyu@jp.fujitsu.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1456 Lines: 34 On Thu, 26 Aug 2010 02:58:57 +0200, KAMEZAWA Hiroyuki wrote: > Hmm, you may not like this..but how about following kind of interface ? > > Now, memoyr hotplug supports following operation to free and _isolate_ > memory region. > # echo offline > /sys/devices/system/memory/memoryX/state > > Then, a region of memory will be isolated. (This succeeds if there are free > memory.) > > Add a new interface. > > % echo offline > /sys/devices/system/memory/memoryX/state > # extract memory from System RAM and make them invisible from buddy allocator. > > % echo cma > /sys/devices/system/memory/memoryX/state > # move invisible memory to cma. At this point I need to say that I have no experience with hotplug memory but I think that for this to make sense the regions of memory would have to be smaller. Unless I'm misunderstanding something, the above would convert a region of sizes in order of GiBs to use for CMA. -- Best regards, _ _ | Humble Liege of Serenely Enlightened Majesty of o' \,=./ `o | Computer Science, MichaƂ "mina86" Nazarewicz (o o) +----[mina86*mina86.com]---[mina86*jabber.org]----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/