Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752051AbdFAQtx (ORCPT ); Thu, 1 Jun 2017 12:49:53 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:54403 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751138AbdFAQtv (ORCPT ); Thu, 1 Jun 2017 12:49:51 -0400 Date: Thu, 1 Jun 2017 11:49:42 -0500 From: Reza Arbab To: Michal Hocko Cc: linux-mm@kvack.org, Andrew Morton , Mel Gorman , Vlastimil Babka , Andrea Arcangeli , Jerome Glisse , Yasuaki Ishimatsu , qiuxishi@huawei.com, Kani Toshimitsu , slaoub@gmail.com, Joonsoo Kim , Andi Kleen , David Rientjes , Daniel Kiper , Igor Mammedov , Vitaly Kuznetsov , LKML Subject: Re: [RFC PATCH] mm, memory_hotplug: support movable_node for hotplugable nodes References: <20170601122004.32732-1-mhocko@kernel.org> <20170601160227.uioluvgvjtplesjr@arbab-laptop.localdomain> <20170601161453.GA12764@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20170601161453.GA12764@dhcp22.suse.cz> Organization: IBM Linux Technology Center User-Agent: NeoMutt/20170428 (1.8.2) X-TM-AS-GCONF: 00 x-cbid: 17060116-2213-0000-0000-000001CC784D X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00007153; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000212; SDB=6.00868753; UDB=6.00431771; IPR=6.00648627; BA=6.00005393; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00015670; XFM=3.00000015; UTC=2017-06-01 16:49:49 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17060116-2214-0000-0000-00005655CF58 Message-Id: <20170601164942.fknio3im3num5pd4@arbab-laptop.localdomain> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-06-01_03:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1703280000 definitions=main-1706010314 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 945 Lines: 23 On Thu, Jun 01, 2017 at 06:14:54PM +0200, Michal Hocko wrote: >On Thu 01-06-17 11:02:28, Reza Arbab wrote: >> On Thu, Jun 01, 2017 at 02:20:04PM +0200, Michal Hocko wrote: >> >Teach move_pfn_range that MMOP_ONLINE_KEEP can use the movable zone if >> >movable_node is enabled and the range doesn't overlap with the existing >> >normal zone. This should provide a reasonable default onlining strategy. >> >> I like it. If your distro has some auto-onlining udev rule like >> >> SUBSYSTEM=="memory", ACTION=="add", ATTR{state}=="offline", ATTR{state}="online" >> >> You could get things onlined as movable just by putting movable_node in >> the boot params, without changing/modifying the rule. > >yes this is the primary point of the patch ;) Ha. What can I say, I like restating the obvious! At some point after all these cleanups/improvements, it would be worth making sure Documentation/memory-hotplug.txt is still accurate. -- Reza Arbab