Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751263AbdFAPiq (ORCPT ); Thu, 1 Jun 2017 11:38:46 -0400 Received: from mx2.suse.de ([195.135.220.15]:48718 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751078AbdFAPip (ORCPT ); Thu, 1 Jun 2017 11:38:45 -0400 Date: Thu, 1 Jun 2017 17:38:38 +0200 From: Michal Hocko To: Reza Arbab Cc: Vlastimil Babka , linux-mm@kvack.org, Andrew Morton , Mel Gorman , 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: <20170601153838.GA8088@dhcp22.suse.cz> References: <20170601122004.32732-1-mhocko@kernel.org> <820164f3-8bef-7761-0695-88db9e0ce7a7@suse.cz> <20170601142227.GF9091@dhcp22.suse.cz> <20170601151935.m5jbfmugocc66qfq@arbab-laptop.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170601151935.m5jbfmugocc66qfq@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: 1012 Lines: 25 On Thu 01-06-17 10:19:36, Reza Arbab wrote: > On Thu, Jun 01, 2017 at 04:22:28PM +0200, Michal Hocko wrote: > >On Thu 01-06-17 16:11:55, Vlastimil Babka wrote: > >>Simple should work, hopefully. > >>- if memory is hotplugged, it's obviously hotplugable, so we don't have > >>to rely on BIOS description. > > > >Not sure I understand. We do not have any information about the hotplug > >status at the time we do online. > > The x86 SRAT (or the dt, on other platforms) can describe memory as > hotpluggable. See memblock_mark_hotplug(). That's only for memory present at > boot, though. Yes but lose that information after the memblock is gone and numa fully initialized. Or can we reconstruct that somehow? > He's saying that since the memory was added after boot, it is by definition > hotpluggable. There's no need to check for that marking/description. Yes, but we do not know whether we are onlining memblocks from a boot time numa node or a fresh one which has been hotadded. -- Michal Hocko SUSE Labs