From: Peter Zijlstra <peterz@infradead.org>
To: Chengming Zhou <zhouchengming@bytedance.com>
Cc: mingo@redhat.com, juri.lelli@redhat.com,
vincent.guittot@linaro.org, dietmar.eggemann@arm.com,
rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de,
bristot@redhat.com, linux-kernel@vger.kernel.org,
duanxiongchun@bytedance.com, songmuchun@bytedance.com,
Frederic Weisbecker <fweisbec@gmail.com>
Subject: Re: [External] Re: [PATCH] sched/fair: fix broken bandwidth control with nohz_full
Date: Mon, 28 Mar 2022 17:56:07 +0200 [thread overview]
Message-ID: <YkHal1m3pnxGoQ1Y@hirez.programming.kicks-ass.net> (raw)
In-Reply-To: <6fc49cff-f8a1-8b09-5a25-a64e5d07d258@bytedance.com>
On Mon, Mar 28, 2022 at 11:40:25PM +0800, Chengming Zhou wrote:
> > NOHZ_FULL is for use-cases that 'never' intend to go into the kernel,
> > your use-case actively relies on going into the kernel. Hence the
> > confusion.
>
> In fact, I put a testcase at the end of git message, in which only run
> a userspace loop workload:
>
> cd /sys/fs/cgroup
> echo "+cpu" > cgroup.subtree_control
>
> mkdir test
> echo "105000 100000" > test/cpu.max
>
> echo $$ > test/cgroup.procs
> taskset -c 1 bash -c "while true; do let i++; done" --> will be throttled
Ofcourse.. I'm arguing that bandiwdth control and NOHZ_FULL are somewhat
mutually exclusive, use-case wise. So I really don't get why you'd want
them both.
NOHZ_FULL says, "I 'never' intend to go to the kernel"
bandwidth control says: "I expect to be sharing the system and must be
interrupted to not consume too much time", which very much implies: "I
will go into the kernel".
The trade-off we make to make NOHZ_FULL work, makes system enter/exit
*far* more expensive. There's also people asking to outright kill a task
that causes entry under NOHZ_FULL.
So yes, you can configure it, but why does it make sense?
next prev parent reply other threads:[~2022-03-28 15:56 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-28 11:07 Chengming Zhou
2022-03-28 13:20 ` Peter Zijlstra
2022-03-28 13:50 ` [External] " Chengming Zhou
2022-03-28 15:17 ` Peter Zijlstra
2022-03-28 15:40 ` Chengming Zhou
2022-03-28 15:56 ` Peter Zijlstra [this message]
2022-03-28 16:35 ` Chengming Zhou
2022-03-28 16:44 ` Steven Rostedt
2022-03-29 2:58 ` Chengming Zhou
2022-03-30 18:23 ` Peter Zijlstra
2022-03-30 18:37 ` Steven Rostedt
2022-03-30 19:14 ` Phil Auld
2022-04-01 7:05 ` Chengming Zhou
2022-03-28 19:05 ` Benjamin Segall
2022-03-29 3:36 ` [External] " Chengming Zhou
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=YkHal1m3pnxGoQ1Y@hirez.programming.kicks-ass.net \
--to=peterz@infradead.org \
--cc=bristot@redhat.com \
--cc=bsegall@google.com \
--cc=dietmar.eggemann@arm.com \
--cc=duanxiongchun@bytedance.com \
--cc=fweisbec@gmail.com \
--cc=juri.lelli@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mgorman@suse.de \
--cc=mingo@redhat.com \
--cc=rostedt@goodmis.org \
--cc=songmuchun@bytedance.com \
--cc=vincent.guittot@linaro.org \
--cc=zhouchengming@bytedance.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
Powered by JetHome