From: Tejun Heo <tj@kernel.org>
To: Cheng-Yang Chou <yphbchou0911@gmail.com>
Cc: sched-ext@lists.linux.dev, David Vernet <void@manifault.com>,
Andrea Righi <arighi@nvidia.com>,
Changwoo Min <changwoo@igalia.com>,
Ching-Chun Huang <jserv@ccns.ncku.edu.tw>,
Chia-Ping Tsai <chia7712@gmail.com>,
chengyang.chou@mediatek.com
Subject: Re: [PATCH sched_ext/for-7.5] sched_ext/idle: Skip nodes without CPUs
Date: Sun, 29 Nov 2026 06:59:50 -1000 [thread overview]
Message-ID: <e89bc79ed200cc40699ad62bb3d762b7@kernel.org> (raw)
In-Reply-To: <20261129163536.15478-1-yphbchou0911@gmail.com>
Hello, Cheng-Yang.
On Mon, Nov 30, 2026 at 12:35:20AM +0800, Cheng-Yang Chou wrote:
> On a Raspberry Pi 5, the firmware adds numa=fake=8. That gives eight
> online nodes, but cpu_to_node() puts every CPU in node 0, so a search
> that leaves node 0 visits seven nodes that can't have an idle CPU.
AFAICS, with numa=fake, cpu_to_node() puts every CPU on node 0 but
numa_add_cpu() also sets the CPU in cpumask_of_node() of every emulated
node, so all eight nodes claim the same CPUs and have N_CPU set. No real
topology looks like that and it doesn't make sense for a testing feature
to break that. That looks like a bug in the NUMA emulation to me.
rpi5 seems to be the only real user of fake NUMA. How about fixing the
NUMA emulation and then switching sched_ext to walk node_states[N_CPU]
instead of N_ONLINE?
Thanks.
--
tejun
next prev parent reply other threads:[~2026-11-29 16:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-29 16:35 [PATCH sched_ext/for-7.5] sched_ext/idle: Skip nodes without CPUs Cheng-Yang Chou
2026-11-29 16:47 ` sashiko-bot
2026-11-29 16:59 ` Tejun Heo [this message]
2026-11-30 18:03 ` Cheng-Yang Chou
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=e89bc79ed200cc40699ad62bb3d762b7@kernel.org \
--to=tj@kernel.org \
--cc=arighi@nvidia.com \
--cc=changwoo@igalia.com \
--cc=chengyang.chou@mediatek.com \
--cc=chia7712@gmail.com \
--cc=jserv@ccns.ncku.edu.tw \
--cc=sched-ext@lists.linux.dev \
--cc=void@manifault.com \
--cc=yphbchou0911@gmail.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