Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1587468rwe; Thu, 1 Sep 2022 23:35:56 -0700 (PDT) X-Google-Smtp-Source: AA6agR7Axsy0PedOj2a1CwZ+BzaicYykw+qtPg6lVrzvHTQW7ieRRUIk6pwpSBYLWbq4uVE/2EDd X-Received: by 2002:a17:907:7f9f:b0:73d:6e87:17ce with SMTP id qk31-20020a1709077f9f00b0073d6e8717cemr25870249ejc.366.1662100556451; Thu, 01 Sep 2022 23:35:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662100556; cv=none; d=google.com; s=arc-20160816; b=U2ie17EC7ZQBVXZkILXG2jPLWs1kpnArDigGW2satmbAmS5e7sDYC0aUK5lI3cDt25 x2/T6wh2F3P0Xk2jjI88CD/MiLADuDIOIokQSUhL9duGFnmjmI9usFlxPlMroKKkZdsM ZXSKe4YptOiD3erIAX5JgT4+6qMcLPug2wqsCZTiq9LwcrTH31C4gFpI+xhI0zEl9D/M yBrOUYZuTwIcA+mJ1UvqPY2AV/++KBVfD73L3EGbRIuX1ErfsZS5lYwpcTJfccH2KMOp opmWoAXUzPV1uNw/RTz9hZiA5FHslevwJhPCm6BagNUPeN+38+KCyRZHs2i9GwNJMzse t3tQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=bI9/qpQSWvAxlJk44sYrFD7MdDjeq4/88bFCXbrf3VY=; b=wBi54+FFBZypNFLY108ikmogJKxZFv3eSrJC/HtZKFR8OoLGj9lc1Tp0SzIBQfwLTj fmKQqZbiRXZqK17yoG7X3OsFiASF8GbUlS5nTbMY3Hm93BzmvQcnGECoXZWaUnWYNTUN AHOO3wew+IIGulXJmxPUn1JyElvZqvJ8e7sGxQzRm+4iFRymnXodQaFtc6UI8urwfnSp gFE0YqPCqsETA2YS7vAxa431fHaIhgCxLtIYwahYFbLylv6qWJH70odefXJWhogLVqeL u3EuiKt3o/r48S73CU8pxiVpFz0trVCYz1TUuIYaHyygrsbs5zQ1Vbrb4N+mRcG1fb3H I3WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EJOeJqIJ; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q9-20020a1709064c8900b0073d710fec77si913659eju.251.2022.09.01.23.35.29; Thu, 01 Sep 2022 23:35:56 -0700 (PDT) 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=@intel.com header.s=Intel header.b=EJOeJqIJ; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235442AbiIBGMN (ORCPT + 99 others); Fri, 2 Sep 2022 02:12:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235413AbiIBGML (ORCPT ); Fri, 2 Sep 2022 02:12:11 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1E2BB9F93 for ; Thu, 1 Sep 2022 23:12:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662099130; x=1693635130; h=from:to:cc:subject:references:date:in-reply-to: message-id:mime-version; bh=V1LrsReCOZOn0uyOPVtRtxNfCUOuD4F2LfutTySDfRs=; b=EJOeJqIJLj8PExMTwWibw9O/Kxu3U2Qvnl6Do19+0jaqi0Qs3o0eUnqJ euPM3TF6MqiiSAp8pvyS3PzIM8GvX04Ut7dsxVvX22ZZoNF/S+nYS2ggX fvC0u56sJ4V94DOZEMWy+RIvM+u45TWGwnF/XOSIqC9Bf3fnVkaJVFqDG DbjYoWsMbIupkuQkkN6Xi1ZT3d1syMPCXa3LB/Ihn/KjXbB0drlvDXA+5 F6WgNQWLJ8RO0TUG7Qp3l27vitKl0lsANeOancCh+KJU+D33kUPxsn6sc lDRI0sL7GJdx9SaSfSonJgicpDiYWQ9DM+hoB9cy1EXi12A1dGwKUlK4j A==; X-IronPort-AV: E=McAfee;i="6500,9779,10457"; a="296686273" X-IronPort-AV: E=Sophos;i="5.93,283,1654585200"; d="scan'208";a="296686273" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Sep 2022 23:12:09 -0700 X-IronPort-AV: E=Sophos;i="5.93,283,1654585200"; d="scan'208";a="563850475" Received: from yhuang6-desk2.sh.intel.com (HELO yhuang6-desk2.ccr.corp.intel.com) ([10.238.208.55]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Sep 2022 23:12:04 -0700 From: "Huang, Ying" To: Aneesh Kumar K V Cc: Wei Xu , Johannes Weiner , Linux MM , Andrew Morton , Yang Shi , Davidlohr Bueso , Tim C Chen , Michal Hocko , Linux Kernel Mailing List , Hesham Almatary , Dave Hansen , Jonathan Cameron , Alistair Popple , Dan Williams , jvgediya.oss@gmail.com, Bharata B Rao , Greg Thelen Subject: Re: [PATCH v3 updated] mm/demotion: Expose memory tier details via sysfs References: <20220830081736.119281-1-aneesh.kumar@linux.ibm.com> <87tu5rzigc.fsf@yhuang6-desk2.ccr.corp.intel.com> <87pmgezkhp.fsf@yhuang6-desk2.ccr.corp.intel.com> <87fshaz63h.fsf@yhuang6-desk2.ccr.corp.intel.com> <698120ce-d4df-3d13-dea9-a8f5c298783c@linux.ibm.com> Date: Fri, 02 Sep 2022 14:12:02 +0800 In-Reply-To: <698120ce-d4df-3d13-dea9-a8f5c298783c@linux.ibm.com> (Aneesh Kumar K. V.'s message of "Fri, 2 Sep 2022 11:16:14 +0530") Message-ID: <87bkryz4nh.fsf@yhuang6-desk2.ccr.corp.intel.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=ascii X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, 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 Aneesh Kumar K V writes: > On 9/2/22 11:10 AM, Huang, Ying wrote: >> Aneesh Kumar K V writes: >> >>> On 9/2/22 10:39 AM, Wei Xu wrote: >>>> On Thu, Sep 1, 2022 at 5:33 PM Huang, Ying wrote: >>>>> >>>>> Aneesh Kumar K V writes: >>>>> >>>>>> On 9/1/22 12:31 PM, Huang, Ying wrote: >>>>>>> "Aneesh Kumar K.V" writes: >>>>>>> >>>>>>>> This patch adds /sys/devices/virtual/memory_tiering/ where all memory tier >>>>>>>> related details can be found. All allocated memory tiers will be listed >>>>>>>> there as /sys/devices/virtual/memory_tiering/memory_tierN/ >>>>>>>> >>>>>>>> The nodes which are part of a specific memory tier can be listed via >>>>>>>> /sys/devices/virtual/memory_tiering/memory_tierN/nodes >>>>>>> >>>>>>> I think "memory_tier" is a better subsystem/bus name than >>>>>>> memory_tiering. Because we have a set of memory_tierN devices inside. >>>>>>> "memory_tier" sounds more natural. I know this is subjective, just my >>>>>>> preference. >>>>>>> >>> >>> >>> I missed replying to this earlier. I will keep memory_tiering as subsystem name in v4 >>> because we would want it to a susbsystem where all memory tiering related details can be found >>> including memory type in the future. This is as per discussion >>> >>> https://lore.kernel.org/linux-mm/CAAPL-u9TKbHGztAF=r-io3gkX7gorUunS2UfstudCWuihrA=0g@mail.gmail.com >> >> I don't think that it's a good idea to mix 2 types of devices in one >> subsystem (bus). If my understanding were correct, that breaks the >> driver core convention. >> > > All these are virtual devices .I am not sure i follow what you mean by 2 types of devices. > memory_tiering is a subsystem that represents all the details w.r.t memory tiering. It shows > details of memory tiers and can possibly contain details of different memory types . IMHO, memory_tier and memory_type are 2 kind of devices. They have almost totally different attributes (sysfs file). So, we should create 2 buses for them. Each has its own attribute group. "virtual" itself isn't a subsystem. Best Regards, Huang, Ying