Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751667AbdFAQPP (ORCPT ); Thu, 1 Jun 2017 12:15:15 -0400 Received: from mx2.suse.de ([195.135.220.15]:52923 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751314AbdFAQPN (ORCPT ); Thu, 1 Jun 2017 12:15:13 -0400 Date: Thu, 1 Jun 2017 18:14:54 +0200 From: Michal Hocko To: Reza Arbab 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 Message-ID: <20170601161453.GA12764@dhcp22.suse.cz> References: <20170601122004.32732-1-mhocko@kernel.org> <20170601160227.uioluvgvjtplesjr@arbab-laptop.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170601160227.uioluvgvjtplesjr@arbab-laptop.localdomain> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 695 Lines: 17 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 ;) -- Michal Hocko SUSE Labs