From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BCEFCC433EF for ; Fri, 17 Dec 2021 07:40:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233716AbhLQHk0 (ORCPT ); Fri, 17 Dec 2021 02:40:26 -0500 Received: from out4436.biz.mail.alibaba.com ([47.88.44.36]:5721 "EHLO out4436.biz.mail.alibaba.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230224AbhLQHkY (ORCPT ); Fri, 17 Dec 2021 02:40:24 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R191e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04394;MF=baolin.wang@linux.alibaba.com;NM=1;PH=DS;RN=17;SR=0;TI=SMTPD_---0V-t9ojA_1639726819; Received: from 30.21.164.42(mailfrom:baolin.wang@linux.alibaba.com fp:SMTPD_---0V-t9ojA_1639726819) by smtp.aliyun-inc.com(127.0.0.1); Fri, 17 Dec 2021 15:40:20 +0800 Message-ID: <907015a0-43f8-3ab4-524b-9c867d1f06d8@linux.alibaba.com> Date: Fri, 17 Dec 2021 15:41:05 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 Subject: Re: [PATCH -V10 RESEND 3/6] memory tiering: skip to scan fast memory To: Huang Ying , Peter Zijlstra , Mel Gorman Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Feng Tang , Dave Hansen , Andrew Morton , Michal Hocko , Rik van Riel , Mel Gorman , Yang Shi , Zi Yan , Wei Xu , osalvador , Shakeel Butt , Hasan Al Maruf References: <20211207022757.2523359-1-ying.huang@intel.com> <20211207022757.2523359-4-ying.huang@intel.com> From: Baolin Wang In-Reply-To: <20211207022757.2523359-4-ying.huang@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/7/2021 10:27 AM, 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 > 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: Hasan Al Maruf > Cc: linux-kernel@vger.kernel.org > Cc: linux-mm@kvack.org > --- LGTM. Please feel free to add: Tested-by: Baolin Wang Reviewed-by: Baolin Wang