From: Phil Auld <pauld@redhat.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: linux-kernel@vger.kernel.org, Juri Lelli <juri.lelli@redhat.com>,
Ingo Molnar <mingo@redhat.com>,
Daniel Bristot de Oliveira <bristot@redhat.com>,
Vincent Guittot <vincent.guittot@linaro.org>,
Dietmar Eggemann <dietmar.eggemann@arm.com>,
Valentin Schneider <vschneid@redhat.com>,
Ben Segall <bsegall@google.com>,
Steven Rostedt <rostedt@goodmis.org>,
Mel Gorman <mgorman@suse.de>
Subject: Re: [PATCH RESEND] sched/nohz: Add HRTICK_BW for using cfs bandwidth with nohz_full
Date: Mon, 12 Jun 2023 17:39:25 -0400 [thread overview]
Message-ID: <20230612213925.GB524810@lorien.usersys.redhat.com> (raw)
In-Reply-To: <20230518143718.GC110197@lorien.usersys.redhat.com>
Hi Peter,
On Thu, May 18, 2023 at 10:37:18AM -0400 Phil Auld wrote:
> On Thu, May 18, 2023 at 03:47:46PM +0200 Peter Zijlstra wrote:
...
> > OMG; so because NOHZ_FULL configuration sucks, we add hacks on?
> >
>
...
>
> This seemed to be a sane way to handle what are effectively conflicting
> requirements. Stalling a task to the point the host gets rebooted is
> pretty painful. Maybe if we could fail the tick_stop test in this
> case that would work but that would keep all the ticks whereas this
> tries to respect the request for nohz as much as possible.
...
Let me try to argue it differently. Forget about the nohz_full configuration
part (I dropped that from the commit log on v2, too) since you could hit
this even if nohz_full was dynamic.
My contention is that given two conflicting requests the scheduler is making
the wrong choice. A request is being made to stop the tick if possible (which
is best effort already - there are numerous conditions to satisfy). And a
request is being made to enforce a cpu bandwidth limit (which is a hard limit
that can violate work conservation, and requires regular fine-grained
accounting). Currently the scheduler will favor the best-effort nohz request
over the quota limit request.
I posted v2 of the HRTICK based patch but maybe a simpler one that adds a
scheduler tick dependency when we pick a bandwidth-limited task would be
more palatable.
I have that one which I could clean up and post.
Thanks,
Phil
--
next prev parent reply other threads:[~2023-06-12 21:40 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-18 13:20 Phil Auld
2023-05-18 13:47 ` Peter Zijlstra
2023-05-18 14:37 ` Phil Auld
2023-06-12 21:39 ` Phil Auld [this message]
2023-05-18 16:38 ` kernel test robot
2023-05-18 19:01 ` Phil Auld
2023-05-18 18:43 ` kernel test robot
2023-05-18 21:29 ` Benjamin Segall
2023-05-18 22:01 ` Phil Auld
2023-06-08 12:51 ` Phil Auld
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=20230612213925.GB524810@lorien.usersys.redhat.com \
--to=pauld@redhat.com \
--cc=bristot@redhat.com \
--cc=bsegall@google.com \
--cc=dietmar.eggemann@arm.com \
--cc=juri.lelli@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mgorman@suse.de \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=rostedt@goodmis.org \
--cc=vincent.guittot@linaro.org \
--cc=vschneid@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
all inboxes | Powered by JetHome®