Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752702Ab3CAIkV (ORCPT ); Fri, 1 Mar 2013 03:40:21 -0500 Received: from fgwmail5.fujitsu.co.jp ([192.51.44.35]:53057 "EHLO fgwmail5.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751346Ab3CAIkU (ORCPT ); Fri, 1 Mar 2013 03:40:20 -0500 X-SecurityPolicyCheck: OK by SHieldMailChecker v1.7.4 Message-ID: <5130694E.6020009@jp.fujitsu.com> Date: Fri, 1 Mar 2013 17:39:42 +0900 From: Yasuaki Ishimatsu User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: Yinghai Lu CC: Tang Chen , "H. Peter Anvin" , Linus Torvalds , Andrew Morton , Lai Jiangshan , Don Morris , Tim Gardner , Tejun Heo , Tony Luck , Thomas Renninger , Linux Kernel Mailing List , Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Jarkko Sakkinen , Benjamin Herrenschmidt , Wen Congyang , Lin Feng , "guz.fnst@cn.fujitsu.com" , Gui jianfeng Subject: Re: sched: CPU #1's llc-sibling CPU #0 is not on the same node! References: <512B7D10.4060304@tpi.com> <512D58C2.1090403@jp.fujitsu.com> <512D7FAD.1040003@jp.fujitsu.com> <512D8EDA.3010602@jp.fujitsu.com> <512DBD24.7090302@cn.fujitsu.com> <20130227132612.14664a3a.akpm@linux-foundation.org> <51302481.9070005@cn.fujitsu.com> <513030AF.70208@zytor.com> <5130484D.1020701@cn.fujitsu.com> In-Reply-To: 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: 2279 Lines: 75 2013/03/01 17:02, Yinghai Lu wrote: > On Thu, Feb 28, 2013 at 10:18 PM, Tang Chen wrote: >> On 03/01/2013 01:00 PM, Yinghai Lu wrote: >>> >>> On Thursday, February 28, 2013, H. Peter Anvin wrote: >>> >>>> On 02/28/2013 08:32 PM, Linus Torvalds wrote: >>>>> >>>>> Yingai, Andrew, >>>>> is this ok with you two? >>>>> >>>>> Linus >>>> >>>> >>>> FWIW, it makes sense to me iff it resolves the problems >>> >>> >>> >>> I prefer to reverting all 8 patches. >>> >>> Actually I have worked out one patch that could solve all problems, but it >>> is too intrusive that I do not want to split it to small pieces to >>> post it. >>> >>> Leaving the movablemem_map related changes in the upstream tree, >>> will prevent me from continuing to make memblock to be used to allocate >>> page table on local node ram for hot add. >> >> >> Hi Yinghai, >> >> Would you please give me a url to your code ? >> >> I don't think movablemem_map will block your work a lot. According to your >> description, you are modifying memblock to reserve some memory for local >> node pagetables, right ? > > My idea: > current for hotadd mem, page table will from other nodes from slub. > that is not right. that will prevent others nodes to be hot removed. If we use your idea, pglist_data and zone are also allocated from local node. In my understanding, pglist_data and zone cannot be deleted safely since there is no way to guarantee that nobody use them. So it means that all nodes cannot be hot removed. If you develop your idea, you should consider memory hot remove. Thanks, Yasuaki Ishimatsu > > To fix the problem > a. make memblock still alive after booting. > b. or have separated dynamical memblock. > > second way looks more clean. > so alloc_low_pages will get initial page for page table from low range > with slub. > and later will get page table from its own just mapped range. > > Now need to make memblock more clean and remove hardcoded reference in > those functions. > > Thanks > > Yinghai > -- 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/