linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Byungchul Park <byungchul@sk.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: "Huang, Ying" <ying.huang@intel.com>,
	mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com,
	vincent.guittot@linaro.org, dietmar.eggemann@arm.com,
	rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de,
	bristot@redhat.com, vschneid@redhat.com,
	linux-kernel@vger.kernel.org, linux-mm@kvack.org,
	kernel_team@skhynix.com
Subject: Re: [PATCH v4] sched/numa, mm: do not try to migrate memory to memoryless nodes
Date: Tue, 20 Feb 2024 13:09:54 +0900	[thread overview]
Message-ID: <20240220040954.GJ65758@system.software.com> (raw)
In-Reply-To: <20240219192841.f1ed44b8c85073511227721c@linux-foundation.org>

On Mon, Feb 19, 2024 at 07:28:41PM -0800, Andrew Morton wrote:
> On Tue, 20 Feb 2024 11:33:04 +0900 Byungchul Park <byungchul@sk.com> wrote:
> 
> > > Yes, this changelog is missing rather a lot of important information.
> > > 
> > > I pulled together the below, please check.
> > 
> > To make it more clear, I need to explain it more. I posted the following
> > two patches while resolving the oops issue. However, two are going on
> > for different purposes.
> > 
> > 1) https://lkml.kernel.org/r/20240219041920.1183-1-byungchul@sk.com
> > 
> >    I started this patch as the fix for the oops. However, I found the
> >    root cause comes from using -1 as an array index. So let the root 
> >    cause fix go with another thread, 2). Nevertheless, 1) is still
> >    necessary as a *reasonable optimization* but not the real fix any
> >    more.
> 
> Well I altered this patch's changelog to tell readers that it is an
> optimization.  But one does wonder why it isn't simply a bugfix. 
> Attempting to migrate to a memoryless node is clearly as error. 

I agree with what Oscar Salvador said:

   "As this is not a bug fix but an optimization, as we will fail anyways
   in migrate_misplaced_folio() when migrate_balanced_pgdat() notices
   that we do not have any memory on that node."

   https://lore.kernel.org/lkml/ZdG1yO29WTyRiw8Q@localhost.localdomain/
   
So assuming all the related code works correctly, the migration will
safely fail even without this optimization patch.

	Byungchul

> Presumably the called code handles it somehow, but in what fashion and
> at what cost?
> 
> > 2) https://lkml.kernel.org/r/20240216111502.79759-1-byungchul@sk.com
> > 
> >    I found the root cause of the oops comes from using -1 as an array
> >    index. So moved all the oops message, Fixes: tag, and cc stable to
> >    here. Long story short, 2) is the *real fix* for the oops.
> > 


  reply	other threads:[~2024-02-20  4:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-19  4:19 Byungchul Park
2024-02-19  8:43 ` Huang, Ying
2024-02-20  1:45   ` Andrew Morton
2024-02-20  1:53     ` Byungchul Park
2024-02-20  3:05       ` Andrew Morton
2024-02-20  3:20         ` Byungchul Park
2024-02-20  2:07     ` Byungchul Park
2024-02-20  2:33     ` Byungchul Park
2024-02-20  3:28       ` Andrew Morton
2024-02-20  4:09         ` Byungchul Park [this message]
2024-02-19 15:06 ` Phil Auld

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=20240220040954.GJ65758@system.software.com \
    --to=byungchul@sk.com \
    --cc=akpm@linux-foundation.org \
    --cc=bristot@redhat.com \
    --cc=bsegall@google.com \
    --cc=dietmar.eggemann@arm.com \
    --cc=juri.lelli@redhat.com \
    --cc=kernel_team@skhynix.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mgorman@suse.de \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    --cc=rostedt@goodmis.org \
    --cc=vincent.guittot@linaro.org \
    --cc=vschneid@redhat.com \
    --cc=ying.huang@intel.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