Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760163Ab3HNSPa (ORCPT ); Wed, 14 Aug 2013 14:15:30 -0400 Received: from mail-vc0-f171.google.com ([209.85.220.171]:58046 "EHLO mail-vc0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758455Ab3HNSP2 (ORCPT ); Wed, 14 Aug 2013 14:15:28 -0400 Message-ID: <520BC950.1030806@gmail.com> Date: Wed, 14 Aug 2013 14:15:44 -0400 From: KOSAKI Motohiro User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: Tejun Heo CC: Tang Chen , 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, kosaki.motohiro@gmail.com Subject: Re: [PATCH part5 0/7] Arrange hotpluggable memory as ZONE_MOVABLE. 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> <20130812180758.GA8288@mtj.dyndns.org> In-Reply-To: <20130812180758.GA8288@mtj.dyndns.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1834 Lines: 41 (8/12/13 2:07 PM), Tejun Heo wrote: > 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. I don't follow this. We need to think why memory hotplug is necessary. Because system reboot is unacceptable on several critical services. Then, if someone set wrong boot option, systems SHOULD fail to boot. At that time, admin have a chance to fix their mistake. In the other hand, after running production service, they have no chance to fix the mistake. In general, default boot option should have a fallback and non-default option should not have a fallback. That's a fundamental rule. -- 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/