From: Tejun Heo <tj@kernel.org>
To: Chuck Lever <cel@kernel.org>
Cc: jiangshanlai@gmail.com, linux-kernel@vger.kernel.org,
Chuck Lever <chuck.lever@oracle.com>
Subject: Re: [RFC PATCH] workqueue: Automatic affinity scope fallback for single-pod topologies
Date: Tue, 3 Feb 2026 10:29:52 -1000 [thread overview]
Message-ID: <aYJawDy77Mxu9SZA@slm.duckdns.org> (raw)
In-Reply-To: <d32b00cf-afe4-47ac-95e1-1c4321aeb7f2@kernel.org>
On Tue, Feb 03, 2026 at 03:14:46PM -0500, Chuck Lever wrote:
> > While I understand the problem, I don't think dropping down to core boundary
> > for unbound workqueues by default makes sense. That may help with some use
> > cases but cause problem with others.
>
> I've never seen a case where it doesn't help. In order to craft an
> alternative, I'll need to have some examples to avoid. Is it only the
> SMT case that is concerning?
It's just a lot of separate pools on large machines. If you have relatively
high concurrency, the number of workers can go pretty high. They'd also
migrate back and forth more depending on usage pattern and have worse cache
locality. Imagine you have a bursty workload wandering through the system,
if you have nr_cores pools, it can easily end up with kworkers > nr_cores *
max_concurrency.
Thanks.
--
tejun
next prev parent reply other threads:[~2026-02-03 20:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-03 14:37 Chuck Lever
2026-02-03 19:10 ` Tejun Heo
2026-02-03 20:14 ` Chuck Lever
2026-02-03 20:29 ` Tejun Heo [this message]
2026-02-03 20:34 ` Chuck Lever
2026-02-03 20:43 ` Tejun Heo
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=aYJawDy77Mxu9SZA@slm.duckdns.org \
--to=tj@kernel.org \
--cc=cel@kernel.org \
--cc=chuck.lever@oracle.com \
--cc=jiangshanlai@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®