From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f70.google.com (mail-wm0-f70.google.com [74.125.82.70]) by kanga.kvack.org (Postfix) with ESMTP id 7CD066B0279 for ; Thu, 1 Jun 2017 12:04:45 -0400 (EDT) Received: by mail-wm0-f70.google.com with SMTP id i77so11243887wmh.10 for ; Thu, 01 Jun 2017 09:04:45 -0700 (PDT) Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com. [148.163.158.5]) by mx.google.com with ESMTPS id o60si18764256edb.283.2017.06.01.09.04.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Jun 2017 09:04:44 -0700 (PDT) Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v51G4ERR092929 for ; Thu, 1 Jun 2017 12:04:42 -0400 Received: from e33.co.us.ibm.com (e33.co.us.ibm.com [32.97.110.151]) by mx0a-001b2d01.pphosted.com with ESMTP id 2atm3qerdj-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Thu, 01 Jun 2017 12:04:42 -0400 Received: from localhost by e33.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 1 Jun 2017 10:04:40 -0600 Date: Thu, 1 Jun 2017 11:04:33 -0500 From: Reza Arbab Subject: Re: [RFC PATCH] mm, memory_hotplug: support movable_node for hotplugable nodes References: <20170601122004.32732-1-mhocko@kernel.org> <820164f3-8bef-7761-0695-88db9e0ce7a7@suse.cz> <20170601142227.GF9091@dhcp22.suse.cz> <20170601151935.m5jbfmugocc66qfq@arbab-laptop.localdomain> <20170601153838.GA8088@dhcp22.suse.cz> <20170601154746.wjc56eldgyzr2bpm@arbab-laptop.localdomain> <20170601155204.GB8088@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20170601155204.GB8088@dhcp22.suse.cz> Message-Id: <20170601160432.yzz7xtk26djki3rx@arbab-laptop.localdomain> Sender: owner-linux-mm@kvack.org List-ID: To: Michal Hocko 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 On Thu, Jun 01, 2017 at 05:52:31PM +0200, Michal Hocko wrote: >On Thu 01-06-17 10:47:46, Reza Arbab wrote: >> On Thu, Jun 01, 2017 at 05:38:38PM +0200, Michal Hocko wrote: >> >On Thu 01-06-17 10:19:36, Reza Arbab wrote: >> >>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? >> >> I'm not sure you'd have to. At boot time, those markings are used to >> determine the initial boundaries of ZONE_MOVABLE. So if you removed these >> memblocks, then readded them, they would still be in ZONE_MOVABLE. > >Yes but that already works like that. I am nore interested in the case >when the node goes away and it is added again. echo online > ... would >result in a non-movable memory and that is the inconsistency I tried to >call out in the changelog My bad. Should have read closer. -- Reza Arbab -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org