linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Honggyu Kim <honggyu.km@gmail.com>
To: Gregory Price <gourry@gourry.net>
Cc: Joshua Hahn <joshua.hahnjy@gmail.com>,
	ying.huang@linux.alibaba.com, rafael@kernel.org, lenb@kernel.org,
	gregkh@linuxfoundation.org, akpm@linux-foundation.org,
	honggyu.kim@sk.com, rakie.kim@sk.com, dan.j.williams@intel.com,
	Jonathan.Cameron@huawei.com, dave.jiang@intel.com,
	horen.chuang@linux.dev, hannes@cmpxchg.org,
	linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org,
	linux-mm@kvack.org, kernel-team@meta.com,
	kernel_team@skhynix.com, 42.hyeyoo@gmail.com
Subject: Re: [PATCH v4] Weighted Interleave Auto-tuning
Date: Sun, 2 Feb 2025 22:44:05 +0900	[thread overview]
Message-ID: <9f56bec0-b35b-4ea2-a212-5c50333c00f9@gmail.com> (raw)
In-Reply-To: <Z55QmybX5IkuLv6Q@gourry-fedora-PF4VCD3F>

Hi Gregory,

On 2/2/25 01:49, Gregory Price wrote:
> Hi Honggyu,
> 
> On Fri, Jan 31, 2025 at 11:23:34PM +0900, Honggyu Kim wrote:
>> Sorry for jumping into this discussion a bit late, but IMHO, setting a
>> newly onlined node's weight to 1 can possibly make the entire weight
>> ratio unbalanced.
>>
> 
> This is only the default for either:
> a) Manual Mode
> b) Auto Mode - when HMAT/CDAT data is missing
> 
> In manual mode, the node weight in /sys/kernel/.../nodeN is present
> regardless of the online/offline state of the node - so it can be
> set prior to that node being hotplugged.  Since it's in manual mode,
> it's expected the administrator knows when things are coming online
> and offline, and they have a clear chance to change weights such that
> a 1 is never perceived.

This may be true, but system admins can hot-plug some nodes without
considering about weighted interleaving.  If weighted interleave is not
their major use cases, then they may not consider weight values
seriously, but some workloads might use some weighted interleave APIs
that use all nodes available.

This might be my imaginary scenario so if you think it's not realistic,
then you can just ignore.

Thanks,
Honggyu

> 
> In auto mode, the node goes "online" after HMAT/CDAT data is reported
> so users will generally not perceive this default weight.
> 
>>    1. the auto mode set the weights as 10:5:1 for node{0-2}.
>>    2. node2 is offlined, then recalculation makes it as 2:1 for node{0,1}.
>>    3. the auto sysfs interface is set to 0 to make it manual mode.
> 
> If the user sets manual mode, they get manual mode.  If they don't
> want to manually adjust weights, don't set manual mode.
> 
> We can't stop users from doing silly things
> 
> ~Gregory


  parent reply	other threads:[~2025-02-02 13:44 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-28 22:23 Joshua Hahn
2025-01-31 14:23 ` Honggyu Kim
2025-02-01 16:49   ` Gregory Price
2025-02-01 16:53     ` Gregory Price
2025-02-02 13:51       ` Honggyu Kim
2025-02-02 14:12         ` Joshua Hahn
2025-02-03 12:44           ` Honggyu Kim
2025-02-03 15:38             ` Gregory Price
2025-02-05  2:26               ` Honggyu Kim
2025-02-02 13:44     ` Honggyu Kim [this message]
2025-02-04  7:50 ` Harry (Hyeonggon) Yoo
2025-02-04 16:30   ` Gregory Price
2025-02-12 17:27     ` Gregory Price

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=9f56bec0-b35b-4ea2-a212-5c50333c00f9@gmail.com \
    --to=honggyu.km@gmail.com \
    --cc=42.hyeyoo@gmail.com \
    --cc=Jonathan.Cameron@huawei.com \
    --cc=akpm@linux-foundation.org \
    --cc=dan.j.williams@intel.com \
    --cc=dave.jiang@intel.com \
    --cc=gourry@gourry.net \
    --cc=gregkh@linuxfoundation.org \
    --cc=hannes@cmpxchg.org \
    --cc=honggyu.kim@sk.com \
    --cc=horen.chuang@linux.dev \
    --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