Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2340137iof; Wed, 8 Jun 2022 02:55:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwymUgZXUIavvKtw9WV61ZrlC4j/ACibBpyQa4WTJI4YolbFlLKDPwyg8kxWb8a7TBl+Ck1 X-Received: by 2002:a63:5950:0:b0:3fd:b97d:90d2 with SMTP id j16-20020a635950000000b003fdb97d90d2mr13167805pgm.502.1654682122797; Wed, 08 Jun 2022 02:55:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654682122; cv=none; d=google.com; s=arc-20160816; b=ZnfKRMNN03bDakJmgaz4NuC2Y3aLuZten2/9fP14zCOdJvIzL4avJOJtUjpap6i7GQ f1vJYen9s+YMHpCmp6PKQAo4pciI7yqc245UmzFWzvvo0NZUSw57/G7Cw/9hrZW8waZa WLQgVUJKA0QIQ/r4KrcQ0K3xW9H9H9RyNHgO0+OpVt5GhcoGyfW2ILZqavU9EThA5ZBF j+scu6XAZBWxFEovsX0TDIriB/rSxgIH4WRhm/H4TrnGKRBB/K+eaGQov0e4khUSLHkx k4V0ZPyBKCaPhSzyF0WdaAaDvdtPOX2a3SWqp93gSfvzbhZqzkTlzVyjiwfzPmCHzEkk pYYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=KGZlfzBcQNg6A6Z8pSt9xq1Q6rFQO1oUP4rAk4v7hSg=; b=G8TlU/xCOOExKlAfR6ZCYsoXfsXp7acFuOs0tmP0NkaciDOjGg6CWbKDZJ4cbvDh3S cWyUfuG0I7TRZkAGvxEUJShg21In0rBl8ozjOPIJfMA9gg1eNYgRucT1W4mNgMFW5Az8 8iJE3+RoaciwzPwG3HCbyAC543mksZSNl69+rNRtvdnvIrquk1CNariHcG16NskxGaBy xPrdhRzCvDnzpiPqu3flwDECvM/sPU00Hl9oY0a7jG7gkrvYpoa41Rm8ieOwTkAZZlE7 aauGhXcwbIZfTISlO9ivwlUWTNC3i63iTxws66VWckVeJ4ZShlLvtEFDFklUDtRXNHEv Ddnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VWccGwKe; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id c11-20020a056a00248b00b0051c3a4359e6si7015454pfv.81.2022.06.08.02.55.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 02:55:22 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VWccGwKe; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8B85716ABD9; Wed, 8 Jun 2022 02:25:57 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234999AbiFHJQr (ORCPT + 99 others); Wed, 8 Jun 2022 05:16:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234922AbiFHJOS (ORCPT ); Wed, 8 Jun 2022 05:14:18 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D89736B52 for ; Wed, 8 Jun 2022 01:35:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654677307; x=1686213307; h=message-id:subject:from:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=pXuZA38WFCYOEgp/TFGPUQWDuJ5qHdPuNcs8ycMRM54=; b=VWccGwKeVU4FfvlyOydrm/ZilSvE0M+CwpGyTrZtL66R0syzZjVcs8BC hZhFj4eoATCWXO24XBnGCCFhD4L+L/ZygWs6NSLc2Wqb0uVxFEYfijj5W mIchqBclzXOTaRHRMumwGEtUQCvtNYnbBaRs0WTpVzuo0g7AixlHGLOvE E90uqVDQbabRBuaWKLmWshjvvR+bkmf0v5dq3t3E/BhCZriYMMTz4Z+6x HlxCaViwcS1mh9HLxG/Gpb+n3fdJz2gXOKqrzHMjX/suiGe9NaUKqt0Iq vuoQWuWsqlewoe0mt5UvaoGndOsSxl+E6M1M3/IKaP3x1XjmvpBd6IdOW Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10371"; a="257249466" X-IronPort-AV: E=Sophos;i="5.91,285,1647327600"; d="scan'208";a="257249466" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2022 01:35:06 -0700 X-IronPort-AV: E=Sophos;i="5.91,285,1647327600"; d="scan'208";a="636677405" Received: from xding11-mobl.ccr.corp.intel.com ([10.254.214.239]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2022 01:35:02 -0700 Message-ID: <65b77f7f89361144602dce208ba4cb32387cf330.camel@intel.com> Subject: Re: [PATCH v5 6/9] mm/demotion: Add support for removing node from demotion memory tiers From: Ying Huang To: Aneesh Kumar K V , linux-mm@kvack.org, akpm@linux-foundation.org Cc: Wei Xu , Greg Thelen , Yang Shi , Davidlohr Bueso , Tim C Chen , Brice Goglin , Michal Hocko , Linux Kernel Mailing List , Hesham Almatary , Dave Hansen , Jonathan Cameron , Alistair Popple , Dan Williams , Feng Tang , Jagdish Gediya , Baolin Wang , David Rientjes Date: Wed, 08 Jun 2022 16:34:59 +0800 In-Reply-To: References: <20220603134237.131362-1-aneesh.kumar@linux.ibm.com> <20220603134237.131362-7-aneesh.kumar@linux.ibm.com> <81956d2e-0bfe-78ba-5ad0-f6c388c2190e@linux.ibm.com> <06d04b6588b43ca010ec78ce0dee8127193f5562.camel@intel.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Wed, 2022-06-08 at 13:59 +0530, Aneesh Kumar K V wrote: > On 6/8/22 1:53 PM, Ying Huang wrote: > > On Wed, 2022-06-08 at 13:50 +0530, Aneesh Kumar K V wrote: > > > On 6/8/22 12:29 PM, Ying Huang wrote: > > > > On Fri, 2022-06-03 at 19:12 +0530, Aneesh Kumar K.V wrote: > > > > > This patch adds the special string "none" as a supported memtier value > > > > > that we can use to remove a specific node from being using as demotion target. > > > > > > > > > > For ex: > > > > > :/sys/devices/system/node/node1# cat memtier > > > > > 1 > > > > > :/sys/devices/system/node/node1# cat ../../memtier/memtier1/nodelist > > > > > 1-3 > > > > > :/sys/devices/system/node/node1# echo none > memtier > > > > > :/sys/devices/system/node/node1# > > > > > :/sys/devices/system/node/node1# cat memtier > > > > > :/sys/devices/system/node/node1# cat ../../memtier/memtier1/nodelist > > > > > 2-3 > > > > > :/sys/devices/system/node/node1# > > > > > > > > Do you have a practical use case for this? What kind of memory node > > > > needs to be removed from memory tiers demotion/promotion? > > > > > > > > > > This came up in our internal discussion. It was mentioned that there is > > > a need to skip some slow memory nodes from participating in demotion. > > > > Again, can you provide a practical use case? Why we shouldn't demote > > cold pages to these slow memory nodes? How do we use these slow memory > > node? These slow memory node is slower than disk? > > > > This was discussed in the context of memory borrowed from remote machine > (aka OpenCAPI memory). In such case, we would have a memory only NUMA > node which we want to avoid using for demotion. Thanks for your information. But why shouldn't we use them for demotion? Because it's too slow? Even slower than disks? Or some other reason? Best Regards, Huang, Ying