Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8541441imu; Fri, 28 Dec 2018 21:37:37 -0800 (PST) X-Google-Smtp-Source: ALg8bN7nt/A4r/Pxj5HsC6xLj3m/jVvuRcGG9hu05IIKJfUPbecjco9XdFn4WMPxYxiOAGPRovWq X-Received: by 2002:a62:b15:: with SMTP id t21mr31827750pfi.136.1546061857365; Fri, 28 Dec 2018 21:37:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546061857; cv=none; d=google.com; s=arc-20160816; b=k6im5BdsnkQxaXRfocB8KjGyNPYR7ZlRNn2INGJhGxikXcRzeHnDO0ZF3ZttZLeOu4 M0J4rqyDUtXH7qe35AjPhHY35f2JWIcXimisChS12e/JX+fCoqc1Ib5OKfyLHAs+LJjh Pz4noFl2fgSxD2+N6CtFQBJYF9nyz6wE1GV3dzYlNzEkds+ibsooByCMyrcgYB91sW/U DbXQw/nGpMYrFk59HEgQTP0iFAnUzizW4Wr63/L1UoiDp+tI0lSjqWaZ7UqpKWoj247v mqobeGeswygxif83z4T1taL1PvDADrYjl0IqA3N5QhFrUJik2Ki3Zq7YmVk4Eb/dY9dn 8PoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=OTNffT1eaQTcLAFvhNIeVKJ7Ks4jO89gQtFc2V6+jxc=; b=QQwVoOnJA33pBDcZHj4zmWM9BAepBVirjmp1Avu61MJK5gahpopbLXrIxydyUP2U9b 58gR8ui4Qy1CZg8J0nD1U3Tf93C300G6oOonN1NJkiAbYJf6MdglV3tu8LSqzv0pgWIx pVuKUbmq5Z+g7NK3adTDqrkJGunconjOYWPiE/Q8VZ6FnBNldNPTK7kDQWonGNmLe6+I q9ZFA5bBah30IkQmOMQ3yRoyWJkTUq+9n3opwb+yz3hKLg37GaoreoDVKTKZoSFsHYLM 2WEZWnr98l3uWyXGhjTlcvxo8NNZIe91kF+d+WziS2XjkTVpv50tGGglpSBdtF2rpVw8 Jv6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jUG6U8gy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j10si4163369pgn.365.2018.12.28.21.37.22; Fri, 28 Dec 2018 21:37:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jUG6U8gy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387641AbeL1S2o (ORCPT + 99 others); Fri, 28 Dec 2018 13:28:44 -0500 Received: from mail-qt1-f195.google.com ([209.85.160.195]:37077 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729445AbeL1S2n (ORCPT ); Fri, 28 Dec 2018 13:28:43 -0500 Received: by mail-qt1-f195.google.com with SMTP id t33so24131006qtt.4; Fri, 28 Dec 2018 10:28:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OTNffT1eaQTcLAFvhNIeVKJ7Ks4jO89gQtFc2V6+jxc=; b=jUG6U8gyE0Alt4dCEEdEDk07uJSsv2AxyaUFQYbBJkEFYAu5vHDV/GiLr6INd9lez6 0UhHUrZgwErbcyXor/OQNXMHw2EShgs/2woci1E53qGKB1Ww6jWW8TxwaexcrRy3DdDs aADE9YRxF2BNelhszBtKIFNWemeRmXM/yRSYY2FyxAv0J764P4bFijA+wI7xjjyY4n2x grcohJbASFlIP1mGO223kt6hpP4aLxKr+ddyDWBqXLz/TP2GPEqq1aG3v96dLn2QjIFe 4W/4tQtMkMUnj8aAtkNOJCZXGmfrrlO318fs6Wh6bDPzSh31mJOdY8fNGAtTPTSgIXSo L2DQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OTNffT1eaQTcLAFvhNIeVKJ7Ks4jO89gQtFc2V6+jxc=; b=PT/LztCxUDkau14sGAVEIa2vRiLj2YpURRo0zgZMl0N3OLHIlcPBZgcFmlj+O3Y2Hq /OJ6WxA//uedZj2lXs4cXK6Se+ok0QiySaJuL7oTxKOsUDB0YKacbpLepKfbgebDPx5J od2+IEwasZDmMbABpPP4ESDJ8weKEs/c7O8uf/00LkgbqVpvNoEvWaTGCHOxityoXkfF hmo/vVVJX6cRxqjThOeJwmTPSo3FKfaTNwDTzRwzjeSy15TrWyoFCaHGFL8H96G3YmFj ndmCnelkxVwsJSDa7tRpkTSEqYYBOJ72WIwASHq3thKkzsw6we8dq7QbNKM1s0pamHyI MEwA== X-Gm-Message-State: AJcUukc7OYLplDGrrjqSGudHOA0rBvJzb/oPCuO/Aky0sk9O6BLqCbQd pcmAWIW3BPXmLMP9/UmwF42BwM+urnuqC6JxF6c= X-Received: by 2002:a0c:d29b:: with SMTP id q27mr27178531qvh.62.1546021722446; Fri, 28 Dec 2018 10:28:42 -0800 (PST) MIME-Version: 1.0 References: <20181226131446.330864849@intel.com> <20181227203158.GO16738@dhcp22.suse.cz> <20181228050806.ewpxtwo3fpw7h3lq@wfg-t540p.sh.intel.com> <20181228084105.GQ16738@dhcp22.suse.cz> <20181228094208.7lgxhha34zpqu4db@wfg-t540p.sh.intel.com> <20181228121515.GS16738@dhcp22.suse.cz> <20181228133111.zromvopkfcg3m5oy@wfg-t540p.sh.intel.com> In-Reply-To: <20181228133111.zromvopkfcg3m5oy@wfg-t540p.sh.intel.com> From: Yang Shi Date: Fri, 28 Dec 2018 10:28:31 -0800 Message-ID: Subject: Re: [RFC][PATCH v2 00/21] PMEM NUMA node and hotness accounting/migration To: Fengguang Wu Cc: Michal Hocko , Andrew Morton , Linux Memory Management List , KVM list , LKML , Fan Du , Yao Yuan , Peng Dong , Huang Ying , Liu Jingqi , Dong Eddie , Dave Hansen , Zhang Yi , Dan Williams Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 28, 2018 at 5:31 AM Fengguang Wu wrote: > > >> > I haven't looked at the implementation yet but if you are proposing a > >> > special cased zone lists then this is something CDM (Coherent Device > >> > Memory) was trying to do two years ago and there was quite some > >> > skepticism in the approach. > >> > >> It looks we are pretty different than CDM. :) > >> We creating new NUMA nodes rather than CDM's new ZONE. > >> The zonelists modification is just to make PMEM nodes more separated. > > > >Yes, this is exactly what CDM was after. Have a zone which is not > >reachable without explicit request AFAIR. So no, I do not think you are > >too different, you just use a different terminology ;) > > Got it. OK.. The fall back zonelists patch does need more thoughts. > > In long term POV, Linux should be prepared for multi-level memory. > Then there will arise the need to "allocate from this level memory". > So it looks good to have separated zonelists for each level of memory. I tend to agree with Fengguang. We do have needs for finer grained control to the usage of DRAM and PMEM, for example, controlling the percentage of DRAM and PMEM for a specific VMA. NUMA policy sounds not good enough for some usecases since it just can control what mempolicy is used by what memory range. Our usecase's memory access pattern is random in a VMA. So, we can't control the percentage by mempolicy. We have to put PMEM into a separate zonelist to make sure memory allocation happens on PMEM when certain criteria is met as what Fengguang does in this patch series. Thanks, Yang > > On the other hand, there will also be page allocations that don't care > about the exact memory level. So it looks reasonable to expect > different kind of fallback zonelists that can be selected by NUMA policy. > > Thanks, > Fengguang >