Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3515898pxm; Mon, 28 Feb 2022 23:04:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJwh9Kv+/GkECrvbJHdL33JTmQFoLvfZvM1tyFjdCWxODGm+viV+4cSviK1yyCN7Q/D3ftaz X-Received: by 2002:a05:6402:11ce:b0:412:f162:28e8 with SMTP id j14-20020a05640211ce00b00412f16228e8mr23010116edw.341.1646118255960; Mon, 28 Feb 2022 23:04:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646118255; cv=none; d=google.com; s=arc-20160816; b=tzMsXBL1DmyPBcWZ48+sUftZez6ZeKGsm8I/WMAqbBZR6MoXxhL8/HJEt95mlYI8S4 b3CAm8uscUB1CYn0n3JxETPl/solUyZDQPkgWwC3fl+S2n8r9ySRMObWz1qATHsVKNKV HTxVgvNVnJO2hV1VjsdKp+rHkuwgMnRba9fSMbcNahjeyJftb7OndnLK6HBru6+DRM3O Fs8irDZgUzxzbNtiP4vUBu+jkUhqy7xlx/Cg8Qj6M9MKCRWhZgAuC/hETWLieO6cTbR3 AopvUq7whlUPWSsSVIypdoFyBM0YWVCUSa3+IfzbxU+QKNdtemwg3Fa9/wMpefc1r3Y+ g4wA== 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 :dkim-signature; bh=wMtsDk3b0hX8joqj3KjxPGJRR7Yf0hzE7vshS8yyLBI=; b=uZTRJFF2S76Fylw4zOew/BF6mdQi8jw0ogXcSlNuhK44zlBPqTf4f0PObTx8POtrZ0 3DsVR99AOQNJ418w3zxn9wq43VxpGvoR0clNePEqNJ6vtaH45FauskAB5fMo/nWfSSJ0 C3jo/pnimvlU6HXtg4r2h9KRlAQqbYHVSdZOl4udwiQEFnrWYb+HeoTZCtNxwLGJkLYt 5ExHkPXN/0egUna5qwS+DQ7W4mUlibBsoLSp3UfaG2rf+10/Lt8PXLbOrc8msXSA6L1n dnMFvDfjjsVyJn207hmsrBLN42rXQJtyEQ0NJ4ZeGrxkCtyJgrYrbixHmmEHcSZOo+cP rHJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=EuQ+dNUm; dkim=neutral (no key) header.i=@suse.de; 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=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i27-20020a170906091b00b006b659e9fdd9si7204982ejd.452.2022.02.28.23.03.52; Mon, 28 Feb 2022 23:04:15 -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=@suse.de header.s=susede2_rsa header.b=EuQ+dNUm; dkim=neutral (no key) header.i=@suse.de; 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=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230331AbiCAGep (ORCPT + 99 others); Tue, 1 Mar 2022 01:34:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232692AbiCAGei (ORCPT ); Tue, 1 Mar 2022 01:34:38 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1989B70F4C for ; Mon, 28 Feb 2022 22:33:56 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id D1ACC219A1; Tue, 1 Mar 2022 06:33:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1646116434; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=wMtsDk3b0hX8joqj3KjxPGJRR7Yf0hzE7vshS8yyLBI=; b=EuQ+dNUmzLWLQ2+RoKuacyeTxk2x3l6+1b1bu6dikA3T1PN3x8RsqQWB6BittnB3bfiJEI v4WZzzEz0KpxToE0u0SnVTlSAlA+vtxgKhAmjUH4ERaSZnStXflBL3N3gTT0oxCXvRySLU XaHYpbCw8WbpCGRYIyTL9SP3jm5d5tc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1646116434; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=wMtsDk3b0hX8joqj3KjxPGJRR7Yf0hzE7vshS8yyLBI=; b=TwpNU8F9Btq6zmvCfvsQyXENKFfUzvpq8xt418IIijwb9S0HPu89otXrXnEU/u8dp5FY+J 2pEzgU1r9JTSdTCA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id E3D14139EF; Tue, 1 Mar 2022 06:33:53 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 8uWmMlG+HWJ6GAAAMHmgww (envelope-from ); Tue, 01 Mar 2022 06:33:53 +0000 Date: Tue, 1 Mar 2022 07:33:52 +0100 From: Oscar Salvador To: Huang Ying Cc: Peter Zijlstra , Mel Gorman , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Feng Tang , Dave Hansen , Baolin Wang , Johannes Weiner , Michal Hocko , Rik van Riel , Yang Shi , Zi Yan , Wei Xu , Shakeel Butt , zhongjiang-ali Subject: Re: [PATCH -V13 3/3] memory tiering: skip to scan fast memory Message-ID: References: <20220221084529.1052339-1-ying.huang@intel.com> <20220221084529.1052339-4-ying.huang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220221084529.1052339-4-ying.huang@intel.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 Mon, Feb 21, 2022 at 04:45:29PM +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 > Acked-by: Johannes Weiner > 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: Oscar Salvador > Cc: Shakeel Butt > Cc: zhongjiang-ali > Cc: linux-kernel@vger.kernel.org > Cc: linux-mm@kvack.org Reviewed-by: Oscar Salvador -- Oscar Salvador SUSE Labs