From: "Aneesh Kumar K.V" Subject: Re: [RFC][PATCH v2 10/21] mm: build separate zonelist for PMEM and DRAM node Date: Tue, 01 Jan 2019 14:44:41 +0530 Message-ID: <87sgyc7n9a.fsf@linux.ibm.com> References: <20181226131446.330864849@intel.com> <20181226133351.644607371@intel.com> Mime-Version: 1.0 Content-Type: text/plain Cc: Linux Memory Management List , Fan Du , Fengguang Wu , kvm@vger.kernel.org, LKML , Yao Yuan , Peng Dong , Huang Ying , Liu Jingqi , Dong Eddie , Dave Hansen , Zhang Yi , Dan Williams To: Fengguang Wu , Andrew Morton Return-path: In-Reply-To: <20181226133351.644607371@intel.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org Fengguang Wu writes: > From: Fan Du > > When allocate page, DRAM and PMEM node should better not fall back to > each other. This allows migration code to explicitly control which type > of node to allocate pages from. > > With this patch, PMEM NUMA node can only be used in 2 ways: > - migrate in and out > - numactl Can we achieve this using nodemask? That way we don't tag nodes with different properties such as DRAM/PMEM. We can then give the flexibilility to the device init code to add the new memory nodes to the right nodemask -aneesh