Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1097233pxb; Tue, 8 Feb 2022 09:11:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJwfxms6Pwblknjm7pFViqUX+Ycp7CfGm59KHFRr6ZDDwV63JZ2LQifn5DMBu8pQZ7EBKbYu X-Received: by 2002:a17:903:22c8:: with SMTP id y8mr5692282plg.155.1644340284697; Tue, 08 Feb 2022 09:11:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644340284; cv=none; d=google.com; s=arc-20160816; b=vF/nLi9dSKaZDLxD6gL2sjXOqALAQDwl1Bt2jpiPg1GzuWwtGPcvjT+Taazss3KqDQ xj3sJQRzTGZNIVoU8B2zJPsAiiTEK4i8S7Vqw/y6KiT4XKStRE36tcrc9CTnPmFGpSog dlv+vAeqAd0dA8mxNpFR34QmSyvKAxFmLfoP2rDB+Ref3jPBnS7nRq9Ixw3XDh5IrUnD XNhrJBw6BeA01jYBQBwTEPbG1c7z1aSvy3aahBR/j3JeQp3aeKfqJj1jiso6rXfmTXcA 8uvm7Oh29SKjMSrFy7qi+el/xkeGEmdA58wUMkR08cZeO0sgdqPEc3oBVTMbqQuM3sFM /3kg== 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=IY0dceDT9dYbKD+xsO5uBuadIdWxFI7kmNxQxA0NqII=; b=JUAvfZNpQOL62ltgUozQm51ieIMU73L5fDT/uvBDas8Zrj5j/vwNY4X4QipE2sjtvG t7FpMgv8PsjFoJfBf+yeysY+uNJX80VzCA8Xkikw/csh+nee+3tc4O/rn1xi1Rs/gZ5m wKMrVOFRG/8DjA2OPe9WoAOQdhVvT3oYJ9uhgEGzo0HjEegeBAi6tbw/lXwoSKedwqfa rN5lMsD+EGmankLABpKq/afUV7klkL7EIrPe8Qm8QVORfUKkO4vOvlwT45sEkLfBjTwV eTabsvqqMwpUAFkd9BZHONmnXvWh3D7VibhzONfXrf3q9yUohhoGIsONJB5ppUlvZONK tOjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20210112.gappssmtp.com header.s=20210112 header.b=MUHve6+7; 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 d25si846241pgv.809.2022.02.08.09.11.11; Tue, 08 Feb 2022 09:11:24 -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=MUHve6+7; 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 S1343761AbiBGQ30 (ORCPT + 99 others); Mon, 7 Feb 2022 11:29:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1388673AbiBGQSH (ORCPT ); Mon, 7 Feb 2022 11:18:07 -0500 Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62507C0401CF for ; Mon, 7 Feb 2022 08:18:06 -0800 (PST) Received: by mail-qk1-x732.google.com with SMTP id m25so11315231qka.9 for ; Mon, 07 Feb 2022 08:18:06 -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=IY0dceDT9dYbKD+xsO5uBuadIdWxFI7kmNxQxA0NqII=; b=MUHve6+77XYiq1E/DYvBhzenbkXs+FFQQk8DazktiXiFmtxcmKKZfeaBXwb/d5/pEI 1v2sFMowrQLpqo2HU3dpAZIOYjoyrFaXz3zOzW3kkzupOT87jbkiL8B7NTCw8tLHdwSA HXPiCOEbXekgCM7f++IIHSI+9ngBpjpoj4VDX9SbAnX5sJ/xhlozDIxTJH4tq0rfEAtx 0a5d+7Nw/7ZaGsjRECF11gjJuBeLlyfK42YsJDHvHSET5iWxOSGpt48A1nINzH9NMo1f bg2TkqCrM7cTvVtHBeCGiW0uaCd9dstWI0puNh1HXrJtaQEMHWctYbwqWOrZ6vtCGb20 qfuw== 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=IY0dceDT9dYbKD+xsO5uBuadIdWxFI7kmNxQxA0NqII=; b=L/CY/s2ZjH5k8Y0Qd4zRWFGJGhO4k/49PwU7iIkJP1mCRrKgVh8gV8WfnXd/rjSKS/ U4h/dllN4yCyD0FX7E+sn1puVGM/YbqrXYa1uQdTiakPxgyf+VAN3Camn1EKFsCLaS9h vTuHK0zsIQkCScLwWM2bKBu9fVi7hHP0F5ThspOmYZ4P5CrrMzwHGkGYwGrPeP26639e lzWXC32VGTyiagykKxakuyNZ8Am4IKpXsxnx8+UASvgMUGzIUrJmsGX7q8Xf9iBoxHYJ S6PU4ZQ07UcJ9i7rH4VjyGsyOTjFwGHOJlt22MmbEzbllbN+zrrLsYMY3VS9G10AQZs8 S25Q== X-Gm-Message-State: AOAM533nt5/WRy+wiUWc456mhFH7AdKp8j2PHvDoavxYN6bQWLzGqi1t EuZC0TktN4jDfmd1YNV0UFfYdQ== X-Received: by 2002:a37:b445:: with SMTP id d66mr343666qkf.144.1644250685600; Mon, 07 Feb 2022 08:18:05 -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 k190sm5520250qkf.59.2022.02.07.08.18.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Feb 2022 08:18:05 -0800 (PST) Date: Mon, 7 Feb 2022 11:18:04 -0500 From: Johannes Weiner To: Huang Ying Cc: Peter Zijlstra , Mel Gorman , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Feng Tang , Yang Shi , Baolin Wang , Andrew Morton , Michal Hocko , Rik van Riel , Mel Gorman , Dave Hansen , Zi Yan , Wei Xu , osalvador , Shakeel Butt , zhongjiang-ali Subject: Re: [PATCH -V11 1/3] NUMA Balancing: add page promotion counter Message-ID: References: <20220128082751.593478-1-ying.huang@intel.com> <20220128082751.593478-2-ying.huang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220128082751.593478-2-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:49PM +0800, Huang Ying wrote: > In a system with multiple memory types, e.g. DRAM and PMEM, the CPU > and DRAM in one socket will be put in one NUMA node as before, while > the PMEM will be put in another NUMA node as described in the > description of the commit c221c0b0308f ("device-dax: "Hotplug" > persistent memory for use like normal RAM"). So, the NUMA balancing > mechanism will identify all PMEM accesses as remote access and try to > promote the PMEM pages to DRAM. > > To distinguish the number of the inter-type promoted pages from that > of the inter-socket migrated pages. A new vmstat count is added. The > counter is per-node (count in the target node). So this can be used > to identify promotion imbalance among the NUMA nodes. > > Signed-off-by: "Huang, Ying" > Reviewed-by: Yang Shi > 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: Dave Hansen > 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 Acked-by: Johannes Weiner