From: Qian Cai <quic_qiancai@quicinc.com>
To: "Huang, Ying" <ying.huang@intel.com>
Cc: <linux-kernel@vger.kernel.org>,
<linux-tip-commits@vger.kernel.org>,
"Peter Zijlstra (Intel)" <peterz@infradead.org>, <x86@kernel.org>,
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [tip: sched/core] sched/numa: Avoid migrating task to CPU-less node
Date: Mon, 7 Mar 2022 08:53:55 -0500 [thread overview]
Message-ID: <YiYOc0NFlzJocYt0@qian> (raw)
In-Reply-To: <87wnh648ec.fsf@yhuang6-desk2.ccr.corp.intel.com>
On Mon, Mar 07, 2022 at 01:51:55PM +0800, Huang, Ying wrote:
> > ---
> > kernel/sched/fair.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
> > index a3f0ea216ccb..1fe7a4510cca 100644
> > --- a/kernel/sched/fair.c
> > +++ b/kernel/sched/fair.c
> > @@ -2405,7 +2405,7 @@ static void task_numa_placement(struct task_struct *p)
> > }
> >
> > /* Cannot migrate task to CPU-less node */
> > - if (!node_state(max_nid, N_CPU)) {
> > + if (max_nid != NUMA_NO_NODE && !node_state(max_nid, N_CPU)) {
> > int near_nid = max_nid;
> > int distance, near_distance = INT_MAX;
>
> Do you have time to give this patch a try?
Ah, I thought I has already replied it a while ago. Anyway, it works fine.
next prev parent reply other threads:[~2022-03-07 13:54 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-14 12:15 [PATCH -V3 1/2] NUMA balancing: fix NUMA topology for systems with CPU-less nodes Huang Ying
2022-02-14 12:15 ` [PATCH -V3 2/2] NUMA balancing: avoid to migrate task to CPU-less node Huang Ying
2022-02-17 18:56 ` [tip: sched/core] sched/numa: Avoid migrating " tip-bot2 for Huang Ying
2022-03-01 20:54 ` Qian Cai
2022-03-02 0:59 ` Huang, Ying
2022-03-02 12:37 ` Qian Cai
2022-03-07 5:51 ` Huang, Ying
2022-03-07 13:53 ` Qian Cai [this message]
2022-03-08 0:40 ` Huang, Ying
2022-03-08 2:05 ` [PATCH -V3 2/2 UPDATE] NUMA balancing: avoid to migrate " Huang, Ying
2022-03-08 2:11 ` Huang, Ying
2022-03-16 0:37 ` Huang, Ying
2022-02-14 15:05 ` [PATCH -V3 1/2] NUMA balancing: fix NUMA topology for systems with CPU-less nodes Peter Zijlstra
2022-02-15 1:29 ` Huang, Ying
2022-02-17 18:56 ` [tip: sched/core] sched/numa: Fix " tip-bot2 for 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=YiYOc0NFlzJocYt0@qian \
--to=quic_qiancai@quicinc.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=peterz@infradead.org \
--cc=x86@kernel.org \
--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;
as well as URLs for NNTP newsgroup(s).