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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6A2A3C43334 for ; Tue, 7 Jun 2022 23:40:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C057B6B0071; Tue, 7 Jun 2022 19:40:08 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BB5026B0072; Tue, 7 Jun 2022 19:40:08 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A7D5B6B0073; Tue, 7 Jun 2022 19:40:08 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 992C06B0071 for ; Tue, 7 Jun 2022 19:40:08 -0400 (EDT) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 67B4220FCB for ; Tue, 7 Jun 2022 23:40:08 +0000 (UTC) X-FDA: 79553060496.27.9ABBACF Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by imf02.hostedemail.com (Postfix) with ESMTP id B808A8002B for ; Tue, 7 Jun 2022 23:40:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654645205; x=1686181205; h=message-id:subject:from:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=ZjlOk8azHhDHFFrQPq91H0uTrw45sF8jDpP42SnJxhM=; b=KVQZrx9ZSBMpNkK4/3uqmXp/0wSkW/zjFABdCGZoJSBnwuoFO+Ze/Mw9 uOGLgIriPBIOzVXLTFGJWVh6+ATcT0bwsZYCf2+rm3kBLBXn8m1MwqSoG Zh3PIZicaZgq2UbFSxoENLHKaHp0qtsWvoZM8L8yZw6Av34oZnb6TiuJ7 Y9ilNGoEyHZ0zzjka/WAhW+aIPJJiYEtvKv8NucClSpHG6eLgjKu+qlfu oeqwRDhjD++p2YsF3XdwQ5sBoPPM6Yi1aygeAWiFrJLT062pzUQZkOG7p o923X4OXOSWdcsY1U1PIgulCAqkXzK8aeFwi79nfMLazmIudOhuAMOfod Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10371"; a="274297372" X-IronPort-AV: E=Sophos;i="5.91,284,1647327600"; d="scan'208";a="274297372" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2022 16:40:01 -0700 X-IronPort-AV: E=Sophos;i="5.91,284,1647327600"; d="scan'208";a="579810172" Received: from schen9-mobl.amr.corp.intel.com ([10.251.8.166]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2022 16:40:01 -0700 Message-ID: <0c2fac38720710aebe2b667807c647e8a5aa5441.camel@linux.intel.com> Subject: Re: [PATCH v5 6/9] mm/demotion: Add support for removing node from demotion memory tiers From: Tim Chen To: "Aneesh Kumar K.V" , linux-mm@kvack.org, akpm@linux-foundation.org Cc: Wei Xu , Huang Ying , 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: Tue, 07 Jun 2022 16:40:00 -0700 In-Reply-To: <20220603134237.131362-7-aneesh.kumar@linux.ibm.com> References: <20220603134237.131362-1-aneesh.kumar@linux.ibm.com> <20220603134237.131362-7-aneesh.kumar@linux.ibm.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.4 (3.34.4-1.fc31) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: B808A8002B X-Stat-Signature: hri7m9ccm48hb9gqhb5aixoh8amw576h X-Rspam-User: Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=KVQZrx9Z; spf=none (imf02.hostedemail.com: domain of tim.c.chen@linux.intel.com has no SPF policy when checking 192.55.52.93) smtp.mailfrom=tim.c.chen@linux.intel.com; dmarc=pass (policy=none) header.from=intel.com X-HE-Tag: 1654645205-679770 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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. And also such node will not participate in promotion. That is, hot memory in it will not be promoted to other nodes. > > 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# > >