From: Gregory Price <gourry@gourry.net>
To: Hyeonggon Yoo <hyeonggon.yoo@sk.com>
Cc: "Joshua Hahn" <joshua.hahnjy@gmail.com>,
kernel_team@skhynix.com, "rafael@kernel.org" <rafael@kernel.org>,
"lenb@kernel.org" <lenb@kernel.org>,
"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>,
"akpm@linux-foundation.org" <akpm@linux-foundation.org>,
"김홍규(KIM HONGGYU) System SW" <honggyu.kim@sk.com>,
"ying.huang@linux.alibaba.com" <ying.huang@linux.alibaba.com>,
"김락기(KIM RAKIE) System SW" <rakie.kim@sk.com>,
"dan.j.williams@intel.com" <dan.j.williams@intel.com>,
"Jonathan.Cameron@huawei.com" <Jonathan.Cameron@huawei.com>,
"dave.jiang@intel.com" <dave.jiang@intel.com>,
"horen.chuang@linux.dev" <horen.chuang@linux.dev>,
"hannes@cmpxchg.org" <hannes@cmpxchg.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
"linux-mm@kvack.org" <linux-mm@kvack.org>,
"kernel-team@meta.com" <kernel-team@meta.com>
Subject: Re: [External Mail] [RFC PATCH] mm/mempolicy: Weighted interleave auto-tuning
Date: Fri, 13 Dec 2024 11:28:05 -0500 [thread overview]
Message-ID: <Z1xglcL7wb_2IwnS@PC2K9PVX.TheFacebook.com> (raw)
In-Reply-To: <4ddfa283-eb64-4032-880b-c19b07e407e1@sk.com>
On Fri, Dec 13, 2024 at 03:19:20PM +0900, Hyeonggon Yoo wrote:
> On 2024-12-11 06:54 AM, Joshua Hahn wrote:
> > This patch introduces an auto-configuration for the interleave weights
> > that aims to balance the two goals of setting node weights to be
> > proportional to their bandwidths and keeping the weight values low.
> > This balance is controlled by a value max_node_weight, which defines the
> > maximum weight a single node can take.
>
> Hi Joshua,
>
> I am wondering how this is going to work for host memory + CXL memory
> interleaving. I guess by "the ACPI table" you mean the ACPI HMAT or CXL
> CDAT, both of which does not provide the bandwidth of host memory.
Then your BIOS vendor needs to fix their ACPI table generation, because
HMAT can absolutely contain that information.
[078h 0120 2] Structure Type : 0001 [System Locality Latency and Bandwidth Information]
[07Ah 0122 2] Reserved : 0000
[07Ch 0124 4] Length : 00000030
[080h 0128 1] Flags (decoded below) : 00
Memory Hierarchy : 0
Use Minimum Transfer Size : 0
Non-sequential Transfers : 0
[081h 0129 1] Data Type : 00
[082h 0130 1] Minimum Transfer Size : 00
[083h 0131 1] Reserved1 : 00
[084h 0132 4] Initiator Proximity Domains # : 00000001
[088h 0136 4] Target Proximity Domains # : 00000002
[08Ch 0140 4] Reserved2 : 00000000
[090h 0144 8] Entry Base Unit : 00000000000003E8
[098h 0152 4] Initiator Proximity Domain List : 00000000
[09Ch 0156 4] Target Proximity Domain List : 00000000
[0A0h 0160 4] Target Proximity Domain List : 00000001
[0A4h 0164 2] Entry : 006E
[0A6h 0166 2] Entry : 01FE
[0A8h 0168 2] Structure Type : 0001 [System Locality Latency and Bandwidth Information]
[0AAh 0170 2] Reserved : 0000
[0ACh 0172 4] Length : 00000030
[0B0h 0176 1] Flags (decoded below) : 00
Memory Hierarchy : 0
Use Minimum Transfer Size : 0
Non-sequential Transfers : 0
[0B1h 0177 1] Data Type : 03
[0B2h 0178 1] Minimum Transfer Size : 00
[0B3h 0179 1] Reserved1 : 00
[0B4h 0180 4] Initiator Proximity Domains # : 00000001
[0B8h 0184 4] Target Proximity Domains # : 00000002
[0BCh 0188 4] Reserved2 : 00000000
[0C0h 0192 8] Entry Base Unit : 0000000000000064
[0C8h 0200 4] Initiator Proximity Domain List : 00000000
[0CCh 0204 4] Target Proximity Domain List : 00000000
[0D0h 0208 4] Target Proximity Domain List : 00000001
[0D4h 0212 2] Entry : 1200
[0D6h 0214 2] Entry : 0064
Obviously if information is missing, then manual is the only way forward.
> > + The maximum interleave weight for a memory node. When it is
> > + updated, any previous changes to interleave weights (i.e. via
> > + the nodeN sysfs interfaces) are ignored, and new weights are
> > + calculated using ACPI-reported bandwidths and scaled.
> > +
>
> At first this paragraph sounded like "previously stored weights are
> discarded after setting max_node_weight", but I think you mean
> "User can override the default values, but defaults values are calculated
> regardless of the values set by the user". Right?
>
Agree that these comments need clarification, we'll workshop it.
~Gregory
next prev parent reply other threads:[~2024-12-13 16:28 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-10 21:54 Joshua Hahn
2024-12-13 6:19 ` [External Mail] " Hyeonggon Yoo
2024-12-13 16:28 ` Gregory Price [this message]
2024-12-13 19:57 ` Joshua Hahn
2024-12-16 7:53 ` Hyeonggon Yoo
2024-12-16 15:46 ` Joshua Hahn
2024-12-21 5:57 ` Huang, Ying
2024-12-21 14:58 ` Gregory Price
2024-12-22 8:29 ` Huang, Ying
2024-12-22 16:54 ` Gregory Price
2024-12-25 0:25 ` Huang, Ying
2024-12-25 9:30 ` Joshua Hahn
2024-12-26 1:35 ` Huang, Ying
2024-12-26 18:13 ` Gregory Price
2024-12-27 1:59 ` Huang, Ying
2024-12-27 15:35 ` Gregory Price
2024-12-30 6:48 ` Huang, Ying
2025-01-08 1:19 ` [External Mail] " Hyeonggon Yoo
2025-01-08 16:56 ` Joshua Hahn
2025-01-09 15:56 ` Gregory Price
2025-01-09 17:18 ` Joshua Hahn
2025-01-09 19:10 ` Joshua Hahn
2025-01-21 11:01 ` Huang, Ying
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=Z1xglcL7wb_2IwnS@PC2K9PVX.TheFacebook.com \
--to=gourry@gourry.net \
--cc=Jonathan.Cameron@huawei.com \
--cc=akpm@linux-foundation.org \
--cc=dan.j.williams@intel.com \
--cc=dave.jiang@intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=hannes@cmpxchg.org \
--cc=honggyu.kim@sk.com \
--cc=horen.chuang@linux.dev \
--cc=hyeonggon.yoo@sk.com \
--cc=joshua.hahnjy@gmail.com \
--cc=kernel-team@meta.com \
--cc=kernel_team@skhynix.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=rafael@kernel.org \
--cc=rakie.kim@sk.com \
--cc=ying.huang@linux.alibaba.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