From: "Huang, Ying" <ying.huang@intel.com>
To: "Aneesh Kumar K.V" <aneesh.kumar@linux.ibm.com>
Cc: linux-mm@kvack.org, akpm@linux-foundation.org,
Wei Xu <weixugc@google.com>, Yang Shi <shy828301@gmail.com>,
Davidlohr Bueso <dave@stgolabs.net>,
Tim C Chen <tim.c.chen@intel.com>,
Michal Hocko <mhocko@kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Hesham Almatary <hesham.almatary@huawei.com>,
Dave Hansen <dave.hansen@intel.com>,
Jonathan Cameron <Jonathan.Cameron@huawei.com>,
Alistair Popple <apopple@nvidia.com>,
Dan Williams <dan.j.williams@intel.com>,
Johannes Weiner <hannes@cmpxchg.org>,
jvgediya.oss@gmail.com, Bharata B Rao <bharata@amd.com>
Subject: Re: [RFC PATCH 2/2] mm/demotion: Expose memory tier details via sysfs
Date: Fri, 26 Aug 2022 12:31:10 +0800 [thread overview]
Message-ID: <871qt339td.fsf@yhuang6-desk2.ccr.corp.intel.com> (raw)
In-Reply-To: <20220825092325.381517-2-aneesh.kumar@linux.ibm.com> (Aneesh Kumar K. V.'s message of "Thu, 25 Aug 2022 14:53:25 +0530")
"Aneesh Kumar K.V" <aneesh.kumar@linux.ibm.com> writes:
> All allocated memory tiers will be listed as
> /sys/devices/virtual/memtier/memtierN/
>
> Each memtier directory contains symbolic link for the memory types
> that are part of the memory tier. A directory hierarchy looks like
>
> :/sys/devices/virtual/memtier# tree memtier512/
> memtier512/
So you suggest to use abstract_distance_start as memory tier ID? That
will make memory tier ID stable unless we change abstract distance chunk
size or abstract distance division points. That is, we have at least 2
choices here
1. memory_tier0, memory_tier1, memory_tier2, ...
The ID will start from 0. This is easy to understand by users. The
main drawback is that the memory tier ID may be changed when a NUMA node
is onlined/offlined. That is, the memory tier ID is relatively
unstable.
2. memory_tier<abstract_distance_start1>, memory_tier<abstract_distance_start2>, ...
The ID will be discontinuous. So it's not as intuitive as 0,1,2,....
The main advantage is that the memory tier ID will not change when a
NUMA node is onlined/offlined. The ID will be changed only when we
change abstract distance chunk size or abstract distance division
points. That is considered relatively seldom.
Personally, I prefer the 2nd choice too. But I want to collect opinions
from other people too.
> ├── memtype1 -> ../memtype1
> ├── memtype2 -> ../memtype2
I think abstract_distance_start and abstract_distance_end is the key
information of a memory tier too. So we should show them here.
> ├── subsystem -> ../../../../bus/memtier
> └── uevent
>
> The nodes which are part of a specific memory type can be listed via
> /sys/devices/system/memtier/memtypeN/nodes.
>
> The adistance value of a specific memory type can be listed via
> /sys/devices/system/memtier/memtypeN/adistance.
>
> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Best Regards,
Huang, Ying
[snip]
next prev parent reply other threads:[~2022-08-26 4:31 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-25 9:23 [RFC PATCH 1/2] mm/demotion: Expose memory type " Aneesh Kumar K.V
2022-08-25 9:23 ` [RFC PATCH 2/2] mm/demotion: Expose memory tier " Aneesh Kumar K.V
2022-08-26 4:31 ` Huang, Ying [this message]
2022-08-26 1:50 ` [RFC PATCH 1/2] mm/demotion: Expose memory type " Huang, Ying
2022-08-26 2:37 ` Aneesh Kumar K V
2022-08-26 8:00 ` Wei Xu
2022-08-26 8:05 ` Aneesh Kumar K V
2022-08-26 9:15 ` Wei Xu
2022-08-28 16:20 ` Aneesh Kumar K.V
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871qt339td.fsf@yhuang6-desk2.ccr.corp.intel.com \
--to=ying.huang@intel.com \
--cc=Jonathan.Cameron@huawei.com \
--cc=akpm@linux-foundation.org \
--cc=aneesh.kumar@linux.ibm.com \
--cc=apopple@nvidia.com \
--cc=bharata@amd.com \
--cc=dan.j.williams@intel.com \
--cc=dave.hansen@intel.com \
--cc=dave@stgolabs.net \
--cc=hannes@cmpxchg.org \
--cc=hesham.almatary@huawei.com \
--cc=jvgediya.oss@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mhocko@kernel.org \
--cc=shy828301@gmail.com \
--cc=tim.c.chen@intel.com \
--cc=weixugc@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox