From: Frederic Weisbecker <frederic@kernel.org>
To: Costa Shulyupin <costa.shul@redhat.com>
Cc: linux-kernel@vger.kernel.org, Waiman Long <longman@redhat.com>
Subject: Re: [RFC PATCH v1] stop_machine: Add stop_housekeeping_cpuslocked()
Date: Mon, 6 Jan 2025 22:24:54 +0100 [thread overview]
Message-ID: <Z3xKJsLyVgLNUWc7@pavilion.home> (raw)
In-Reply-To: <CADDUTFy_50LR97ZgE=9TduSK0nHwYy+OxjAdA_-Fy+zANT_m-g@mail.gmail.com>
Le Mon, Jan 06, 2025 at 03:08:11PM +0200, Costa Shulyupin a écrit :
> On Wed, 18 Dec 2024 at 19:38, Frederic Weisbecker <frederic@kernel.org> wrote:
> > And so given the cost of such analysis and resulting possible patches, here
> > is an important question: is it worth the effort? What is the usecase of
> > shutting down a CPU while other isolated CPUs run critical isolated stuff?
>
> The goal is to implement dynamic CPU isolation for realtime tasks such as DPDK.
>
> Thomas Gleixner in https://lore.kernel.org/lkml/87bjz2210r.ffs@tglx/ suggested:
> "CPU hotplug solves this problem without any hackery. Take a CPU offline,
> change the mask of that CPU and bring it online again. Repeat until all
> CPU changes are done."
>
> Unfortunately, CPU HP interferes with realtime tests and is
> unsuitable for dynamic CPU isolation.
>
> Meanwhile, the maximum number of hyperthreads is climbing to 1024,
> increasing the demand for CPU HP.
I must confess I don't understand well your constraints. Why would you
change the set of isolated CPUs while running realtime tests (btw. did you mean
"tasks"?).
Do I understand it correctly that your server may run different kinds of
workloads concurrently, some of them isolated and some of them not, and these
workloads may be added / removed concurrently _anytime_? And therefore
a newly added isolated workload (which then adds CPUs to the isolated set)
mustn't disturb unrelated already running isolated workloads?
When you refer to realtime tasks, do you mean isolated?
Thanks.
>
> Thank you,
> Costa
>
next prev parent reply other threads:[~2025-01-06 21:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-18 17:15 [RFC PATCH v1] stop_machine: Add stop_housekeeping_cpuslocked() Costa Shulyupin
2024-12-18 17:27 ` Peter Zijlstra
2024-12-18 17:32 ` Frederic Weisbecker
2025-01-06 13:08 ` Costa Shulyupin
2025-01-06 21:24 ` Frederic Weisbecker [this message]
2025-01-07 14:40 ` Costa Shulyupin
2024-12-19 21:38 ` Thomas Gleixner
2025-01-04 18:37 ` Srivatsa S. Bhat
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=Z3xKJsLyVgLNUWc7@pavilion.home \
--to=frederic@kernel.org \
--cc=costa.shul@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=longman@redhat.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