Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5758725yba; Tue, 30 Apr 2019 22:21:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqxyi/aG3pgj23F4eh4/P9V1lu5QRTJ3vCETS1DWAPVwjp/WUSc8TmWevgNyMm/2m0C3UIXY X-Received: by 2002:aa7:82cb:: with SMTP id f11mr29712333pfn.0.1556688117507; Tue, 30 Apr 2019 22:21:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556688117; cv=none; d=google.com; s=arc-20160816; b=hpsR3e3kaTEXfrIjVBbpfAaEC1jqYOMkFqADavjMfrQGSLGrZUe1LZUCJ7ZMKSPywl atqxi6kgnjjNKy1gBzTnBazv0UR5hlRjlUPntb/d9mB37Cz7ltSCzavOh+ppXl3XuuxW c4hXxacCUYrKxj5lK4A4McQYuK9PzW5p9FOfZSMxPcll9KfiVSvaGpR4EBFtwx9bOMeP Fv8LuSHuk+4arLq20UKGJHxED2zCmH4m5Eie6AdM/2TiEiJDUCm0xGP4FIEJnVrB6B4l wFrk5+9pO08Ei69X5b+jEt7dfZeMe0Sja0/OgPP7fgIslnjQgPQjgvSgQDfgjNZC9MiX KVMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=uTdrxOi+GUa7zPdGGvZw/0jeRxd+WIdkYwK6Kndz/Uc=; b=SNhvvThuHHi7s4KDsi8soskPhR2m2n8IqXhj+LMGsQzJyesef1hXneVTtfN4Zt/wZ+ FeaT8dsE/Splr3vdYHO447Sx0KoZ8TqE38QOFc6iTxbo9UzowushNV/n26mGaJWhS4Ge 5VCIQHt2kyh5KdU+E/ISwhop7qSoxbvz3ci44uQtL8vwiKmAoYXT0HLeRsC9rFPQQbiJ G3oXCG1ZrUoc+IRmCn6Gchd9LrDFqiua2ySAqVWe98RwcXZ5tI5iH5Ul8AFekoLb0Vuo syQbqW6nIeGgEBoVsIC+qqP4YjaPiOKTWbF6YZxMF+dEk2GX/I62PzH96I4cpsrnR/Qf 0ClQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x10si39110239plo.422.2019.04.30.22.21.42; Tue, 30 Apr 2019 22:21:57 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726120AbfEAFUr (ORCPT + 99 others); Wed, 1 May 2019 01:20:47 -0400 Received: from mga14.intel.com ([192.55.52.115]:31684 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725298AbfEAFUq (ORCPT ); Wed, 1 May 2019 01:20:46 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Apr 2019 22:20:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,416,1549958400"; d="scan'208";a="153757165" Received: from wul-mobl.ccr.corp.intel.com (HELO wfg-t570.sh.intel.com) ([10.254.212.158]) by FMSMGA003.fm.intel.com with ESMTP; 30 Apr 2019 22:20:34 -0700 Received: from wfg by wfg-t570.sh.intel.com with local (Exim 4.89) (envelope-from ) id 1hLhfT-0005Vd-6o; Wed, 01 May 2019 13:20:31 +0800 Date: Wed, 1 May 2019 13:20:31 +0800 From: Fengguang Wu To: Michal Hocko Cc: Yang Shi , mgorman@techsingularity.net, riel@surriel.com, hannes@cmpxchg.org, akpm@linux-foundation.org, dave.hansen@intel.com, keith.busch@intel.com, dan.j.williams@intel.com, fan.du@intel.com, ying.huang@intel.com, ziy@nvidia.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [v2 RFC PATCH 0/9] Another Approach to Use PMEM as NUMA Node Message-ID: <20190501052031.dt7zbkw5n5gzf2eg@wfg-t540p.sh.intel.com> References: <1554955019-29472-1-git-send-email-yang.shi@linux.alibaba.com> <20190412084702.GD13373@dhcp22.suse.cz> <20190416074714.GD11561@dhcp22.suse.cz> <876768ad-a63a-99c3-59de-458403f008c4@linux.alibaba.com> <20190418090227.GG6567@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20190418090227.GG6567@dhcp22.suse.cz> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 18, 2019 at 11:02:27AM +0200, Michal Hocko wrote: >On Wed 17-04-19 13:43:44, Yang Shi wrote: >[...] >> And, I'm wondering whether this optimization is also suitable to general >> NUMA balancing or not. > >If there are convincing numbers then this should be a preferable way to >deal with it. Please note that the number of promotions is not the only >metric to watch. The overal performance/access latency would be another one. Good question. Shi and me aligned today. Also talked with Mel (but sorry I must missed some points due to poor English listening). It becomes clear that 1) PMEM/DRAM page promotion/demotion is a hard problem to attack. There will and should be multiple approaches for open discussion before settling down. The criteria might be balanced complexity, overheads, performance, etc. 2) We need a lot more data to lay solid foundation for effective discussions. Testing will be a rather time consuming part for contributor. We'll need to work together to create a number of benchmarks that can well exercise the kernel promotion/demotion paths and gather the necessary numbers. By collaborating on a common set of tests, we can not only amortize efforts, but also compare different approaches or compare v1/v2/... of the same approach conveniently. Ying has already created several LKP test cases for that purpose. Shi and me plan to join the efforts, too. Thanks, Fengguang