Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752371AbdFAQCj (ORCPT ); Thu, 1 Jun 2017 12:02:39 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:56615 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751590AbdFAQCh (ORCPT ); Thu, 1 Jun 2017 12:02:37 -0400 Date: Thu, 1 Jun 2017 11:02:28 -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 , Michal Hocko Subject: Re: [RFC PATCH] mm, memory_hotplug: support movable_node for hotplugable nodes References: <20170601122004.32732-1-mhocko@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20170601122004.32732-1-mhocko@kernel.org> Organization: IBM Linux Technology Center User-Agent: NeoMutt/20170428 (1.8.2) X-TM-AS-GCONF: 00 x-cbid: 17060116-0052-0000-0000-000002122282 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.00868737; UDB=6.00431761; IPR=6.00648611; 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:02:35 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17060116-0053-0000-0000-000050CB1919 Message-Id: <20170601160227.uioluvgvjtplesjr@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-1706010298 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 571 Lines: 14 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. -- Reza Arbab