Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752685Ab3HLSIK (ORCPT ); Mon, 12 Aug 2013 14:08:10 -0400 Received: from mail-qe0-f44.google.com ([209.85.128.44]:45375 "EHLO mail-qe0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751676Ab3HLSIF (ORCPT ); Mon, 12 Aug 2013 14:08:05 -0400 Date: Mon, 12 Aug 2013 14:07:58 -0400 From: Tejun Heo To: Tang Chen Cc: Tang Chen , robert.moore@intel.com, lv.zheng@intel.com, rjw@sisk.pl, lenb@kernel.org, tglx@linutronix.de, mingo@elte.hu, hpa@zytor.com, akpm@linux-foundation.org, trenn@suse.de, yinghai@kernel.org, jiang.liu@huawei.com, wency@cn.fujitsu.com, laijs@cn.fujitsu.com, isimatu.yasuaki@jp.fujitsu.com, izumi.taku@jp.fujitsu.com, mgorman@suse.de, minchan@kernel.org, mina86@mina86.com, gong.chen@linux.intel.com, vasilis.liaskovitis@profitbricks.com, lwoodman@redhat.com, riel@redhat.com, jweiner@redhat.com, prarit@redhat.com, zhangyanfei@cn.fujitsu.com, yanghy@cn.fujitsu.com, x86@kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-acpi@vger.kernel.org Subject: Re: [PATCH part5 0/7] Arrange hotpluggable memory as ZONE_MOVABLE. Message-ID: <20130812180758.GA8288@mtj.dyndns.org> References: <1375956979-31877-1-git-send-email-tangchen@cn.fujitsu.com> <20130812145016.GI15892@htj.dyndns.org> <52090225.6070208@gmail.com> <20130812154623.GL15892@htj.dyndns.org> <52090AF6.6020206@gmail.com> <20130812162247.GM15892@htj.dyndns.org> <520914D5.7080501@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <520914D5.7080501@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2022 Lines: 49 Hey, On Tue, Aug 13, 2013 at 01:01:09AM +0800, Tang Chen wrote: > Sorry for the misunderstanding. > > I was trying to answer your question: "Why can't the kenrel allocate > hotpluggable memory opportunistic ?". I've used the wrong word, I was meaning best-effort, which is the only thing we can do anyway given that we have no control over where the kernel image is linked in relation to NUMA nodes. > If the kernel has any opportunity to allocate hotpluggable memory in > SRAT, then the kernel should tell users which memory is hotpluggable. > > But in what way ? I think node is the best for now. But a node could > have a lot of memory. If the kernel uses only a little memory, we will > lose the whole movable node, which I don't want to do. > > So, I don't want to allow the kenrel allocating hotpluggable memory > opportunistic. What I was saying was that the kernel should try !hotpluggable memory first then fall back to hotpluggable memory instead of failing boot as nothing really is worse than failing to boot. > >Short of being able to remap memory under the kernel, I don't think > >this can be very generic and as a compromise trying to keep as many > >hotpluggable nodes as possible doesn't sound too bad. > > I think making one of the node hotpluggable is better. But OK, it is > no big deal. There won't be such machine in reality, I think. :) Hmmm... but allocating close to kernel image will keep the number of nodes which are made un-removeable via permanent allocation to minimum. In most configurations that I can recall, I don't think we'd lose anything really and the code will be much simpler and generic. It seems like a good trade-off to me given that we need to report which nodes are hot unpluggable no matter what. Thanks. -- tejun -- 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/