Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1008127pxb; Tue, 8 Feb 2022 07:21:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJyF13cqyZUhZYJXVtXTyfdzxcSUyrISY3Vtjp9K+4hzCcyk6yGInfqQQ+iSWREM6brAWeFN X-Received: by 2002:a17:902:74c3:: with SMTP id f3mr4870665plt.17.1644333689333; Tue, 08 Feb 2022 07:21:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644333689; cv=none; d=google.com; s=arc-20160816; b=S+W0K++D5glJuOW+F7aj7J4+LNFvhunBHqry051l9ze0EQbYBRdUcOZOXxGKRPKZE4 tEjoJFp4lPeDiE85RsbCsWLje9zzg8qYU1EWHFqSATLdhCIukgjGgz766c31qA9m9tUt Cd3q+Y57a6N86ubqnW1eqw/J74BRbNk5JtC8ZuAsJMr24fivfa2mYXoQDzJpBiJ4ZnGJ FfXmOHZBcrkaCniGc9EcK5/uYAhf12aA4dnMxRRJBZ0MIXZ6HUrgWPSHfS9XedVvax3W HyLKCG0YQWUygcUkbozfvLSms968k4qmMhlx0Vf9uF4Lz6unUfxiEmVEHz20s5wXGTKp n8gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=kJucW2FhnAmOVXK6ttAIBgemWe7fm9oO1NBHaN+SpLo=; b=luFAEzzDSBBuUgvGhmED23WBlJi1pKtrNjZbVcyCipWk43BVNpEHDwXQniOVOdh13E no2MvGJk064r+UqBirEP1nccAe1fDHsS7+DAaH/u9j+uJ85UhkPCJIkN0kNVUcVQ36kj MAhtFV/+/aGj1M6R3yCiz4PWW0/fMLt4AI0RSgmnrdoLQIQN4DMmPB+9En/ZFwFqdvUc uFo5Hs6BS5g4uhu2LoRhk9xjXwVCEsym5MEKoQnS9H2wlEc8knZ1pbvVQg299Lw3wxQ9 ZVHnwDbaJq+rMvnSQMoC0oPXehpdz4lMgUiWfdpc5QJnx20dKxyyJzNXKNkJSz+wM+Z+ V0nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20210112.gappssmtp.com header.s=20210112 header.b=7t3DM3Vc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q2si1156966pgu.560.2022.02.08.07.21.16; Tue, 08 Feb 2022 07:21:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cmpxchg-org.20210112.gappssmtp.com header.s=20210112 header.b=7t3DM3Vc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245431AbiBGRyl (ORCPT + 99 others); Mon, 7 Feb 2022 12:54:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239410AbiBGRtR (ORCPT ); Mon, 7 Feb 2022 12:49:17 -0500 Received: from mail-qv1-xf35.google.com (mail-qv1-xf35.google.com [IPv6:2607:f8b0:4864:20::f35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFC8CC0401D9 for ; Mon, 7 Feb 2022 09:49:16 -0800 (PST) Received: by mail-qv1-xf35.google.com with SMTP id k4so11959757qvt.6 for ; Mon, 07 Feb 2022 09:49:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=kJucW2FhnAmOVXK6ttAIBgemWe7fm9oO1NBHaN+SpLo=; b=7t3DM3VcFauVZOBlngQ9606Z9gD+sKLDq4AgAEevZr3ZavsH+WJjWgzundrmQ8j/fH hCffawc1iSxT+eaqadAZ1tqlVNTDb+A8KjFDmVKplNkHqDhpdrPs8wFr6OC0CiykGHfz AAKSENzVQE2vrUQ/ZlKTDOUsfDlVmSnj8w3uUXoD6Bbh5yOayLCi6VyiOjsv2oE4naa5 MzMyXm98/uP0z8aA1/Qe3tZBOtjj8qSrjwkLFmZTgROZ7VSP+wkCsFASes3w87WNcxdo jYbbZnyI+uLZXYUYlcOT73zPchwbG85kEXuSM8Hr9RZ6VbhoEm2EuodTvRrGz/h2HdJ4 n6tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=kJucW2FhnAmOVXK6ttAIBgemWe7fm9oO1NBHaN+SpLo=; b=MHfvvAEjJEOq9PBEATNoqa7h69OAxHVIRPB3cup41g0kAQpGV+Q/5vRiVpsKPe7LK5 xuWj8IC0HRNx4P6UYwjoloLTZNPzGRc1DkjoZyEzBSIuC0+XZw4hczU2uPvxkrUyk7CD Wwy0PCp4Y8AcTeEnHn8ki+oNMLtNq6PvZx5iA41ByZjma/f1oMpcThuyz0NM/TWB9XOb E+7TVjxTVrK4PAx/qywTGlRUn6pGaT7MUACRai/9WUfvEaSX4x/G3oQG24YqgeOfQuCS /gU2/eyWaTJN2At3l/A93pgljDntgLz+Kf/NMQvhv5Ri4BzdqfqL2jWPjzgihhqvsJzT shuQ== X-Gm-Message-State: AOAM5327ob7YWEzuEgwGjJVl99DXjI4JxnmjBtxuFIAPI0xD4Bc5SA9A PyCIyFHDYfm2Z/XmZAKZ2GVTGA== X-Received: by 2002:a05:6214:29e2:: with SMTP id jv2mr600877qvb.4.1644256156176; Mon, 07 Feb 2022 09:49:16 -0800 (PST) Received: from localhost (cpe-98-15-154-102.hvc.res.rr.com. [98.15.154.102]) by smtp.gmail.com with ESMTPSA id s28sm5387928qkm.53.2022.02.07.09.49.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Feb 2022 09:49:15 -0800 (PST) Date: Mon, 7 Feb 2022 12:49:15 -0500 From: Johannes Weiner To: Huang Ying Cc: Peter Zijlstra , Mel Gorman , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Feng Tang , Dave Hansen , Baolin Wang , Andrew Morton , Michal Hocko , Rik van Riel , Mel Gorman , Yang Shi , Zi Yan , Wei Xu , osalvador , Shakeel Butt , zhongjiang-ali Subject: Re: [PATCH -V11 3/3] memory tiering: skip to scan fast memory Message-ID: References: <20220128082751.593478-1-ying.huang@intel.com> <20220128082751.593478-4-ying.huang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220128082751.593478-4-ying.huang@intel.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 28, 2022 at 04:27:51PM +0800, Huang Ying wrote: > If the NUMA balancing isn't used to optimize the page placement among > sockets but only among memory types, the hot pages in the fast memory > node couldn't be migrated (promoted) to anywhere. So it's unnecessary > to scan the pages in the fast memory node via changing their PTE/PMD > mapping to be PROT_NONE. So that the page faults could be avoided > too. > > In the test, if only the memory tiering NUMA balancing mode is enabled, the > number of the NUMA balancing hint faults for the DRAM node is reduced to > almost 0 with the patch. While the benchmark score doesn't change > visibly. > > Signed-off-by: "Huang, Ying" > Suggested-by: Dave Hansen > Tested-by: Baolin Wang > Reviewed-by: Baolin Wang > Cc: Andrew Morton > Cc: Michal Hocko > Cc: Rik van Riel > Cc: Mel Gorman > Cc: Peter Zijlstra > Cc: Yang Shi > Cc: Zi Yan > Cc: Wei Xu > Cc: osalvador > Cc: Shakeel Butt > Cc: zhongjiang-ali > Cc: linux-kernel@vger.kernel.org > Cc: linux-mm@kvack.org Looks good to me. Acked-by: Johannes Weiner