mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Peng Wang <peng_wang@linux.alibaba.com>
To: Frederic Weisbecker <frederic@kernel.org>
Cc: Anna-Maria Behnsen <anna-maria@linutronix.de>,
	Ingo Molnar <mingo@kernel.org>, Thomas Gleixner <tglx@kernel.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	"Rafael J . Wysocki" <rafael@kernel.org>,
	Danilo Krummrich <dakr@kernel.org>,
	Steven Rostedt <rostedt@goodmis.org>,
	Masami Hiramatsu <mhiramat@kernel.org>,
	Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
	Peter Zijlstra <peterz@infradead.org>,
	Waiman Long <longman@redhat.com>, Tejun Heo <tj@kernel.org>,
	He Rongguang <herongguang@linux.alibaba.com>,
	linux-kernel@vger.kernel.org, linux-api@vger.kernel.org,
	driver-core@lists.linux.dev, linux-trace-kernel@vger.kernel.org,
	cgroups@vger.kernel.org
Subject: Re: [RFC PATCH v2 1/2] tick/nohz: Add a policy dependency for full dynticks
Date: Fri, 30 Oct 2026 00:02:53 +0800	[thread overview]
Message-ID: <auNuLZiBZyHLFYUr@MacBook-Pro.local> (raw)
In-Reply-To: <auNR5c6hXlb_FFkB@localhost.localdomain>

On Thu, Oct 29, 2026 at 03:02:13PM +0100, Frederic Weisbecker wrote:
> Le Thu, Oct 29, 2026 at 02:41:28PM +0800, Peng Wang a 殂rit :
> > Hi Frederic,
> > 
> > > Do you mean that your database runs better when hosts CPUs are in nohz_full?
> > 
> > Yes. In our database tests, suppressing the host's non-idle
> > periodic tick improved performance, with the rest of the host
> > configuration unchanged.
> 
> Out of curiosity, for such database tests, only the host tick is off, not the guest
> tick, right?

Yes. Only the host's non-idle tick policy changed. The guest did
not use nohz_full, and its tick configuration was unchanged.

> 
> > > But how does this new interface help? Ie: why is it worse to have all CPUs in
> > 
> > The tick policy itself can therefore affect guest performance.
> > A large host runs VMs for many customers with different workloads.
> > Customers create and release VMs independently, so the same host
> > CPU can be reassigned to a different workload while other VMs
> > remain running.
> > 
> > We want to choose whether to retain the non-idle tick or allow its
> > suppression for the workload currently assigned to each CPU, and
> > revisit that choice when the CPU is reassigned. Per-CPU control
> > lets us do this without rebooting or taking CPUs offline.
> 
> Ok in that case, do you know about the current work in progress
> to make nohz_full opt-able through cpusets? It implies taking the
> target CPUs offline shortly but the policy is to be setup before VM
> is launched, right?

Not always. Waiman mentioned the cpuset work earlier; it could
cover selecting the policy before a new VM starts.

Some customers express a preference for host tick suppression
through the management interface when changing workloads within
a running VM. The host operator decides whether to allow
suppression on the CPUs backing that VM.

We want to support revisiting that decision while keeping those
CPUs online and the VM running, with nohz_full membership
unchanged. Could such an operation fit into the cpuset work?

Thanks,
Peng

> 
> Thanks.
> 
> -- 
> Frederic Weisbecker
> SUSE Labs

  reply	other threads:[~2026-10-29 16:02 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-17 13:13 [RFC PATCH v2 0/2] tick/nohz: Add per-CPU control of non-idle tick suppression Peng Wang
2026-10-17 13:13 ` [RFC PATCH v2 1/2] tick/nohz: Add a policy dependency for full dynticks Peng Wang
2026-10-23 15:00   ` Frederic Weisbecker
2026-10-23 16:32     ` Peng Wang
2026-10-28 15:58       ` Frederic Weisbecker
2026-10-29  6:41         ` Peng Wang
2026-10-29 14:02           ` Frederic Weisbecker
2026-10-29 16:02             ` Peng Wang [this message]
2026-10-29 16:49               ` Frederic Weisbecker
2026-10-17 13:13 ` [RFC PATCH v2 2/2] cpu: Add per-CPU control of non-idle tick suppression Peng Wang

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=auNuLZiBZyHLFYUr@MacBook-Pro.local \
    --to=peng_wang@linux.alibaba.com \
    --cc=anna-maria@linutronix.de \
    --cc=cgroups@vger.kernel.org \
    --cc=dakr@kernel.org \
    --cc=driver-core@lists.linux.dev \
    --cc=frederic@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=herongguang@linux.alibaba.com \
    --cc=linux-api@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-trace-kernel@vger.kernel.org \
    --cc=longman@redhat.com \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=mhiramat@kernel.org \
    --cc=mingo@kernel.org \
    --cc=peterz@infradead.org \
    --cc=rafael@kernel.org \
    --cc=rostedt@goodmis.org \
    --cc=tglx@kernel.org \
    --cc=tj@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®