From: Tejun Heo <tj@kernel.org>
To: Patrick Bellasi <patrick.bellasi@arm.com>
Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org,
Ingo Molnar <mingo@redhat.com>,
Peter Zijlstra <peterz@infradead.org>,
"Rafael J . Wysocki" <rafael.j.wysocki@intel.com>,
Paul Turner <pjt@google.com>,
Vincent Guittot <vincent.guittot@linaro.org>,
John Stultz <john.stultz@linaro.org>,
Morten Rasmussen <morten.rasmussen@arm.com>,
Dietmar Eggemann <dietmar.eggemann@arm.com>,
Juri Lelli <juri.lelli@arm.com>,
Tim Murray <timmurray@google.com>, Todd Kjos <tkjos@android.com>,
Andres Oportus <andresoportus@google.com>,
Joel Fernandes <joelaf@google.com>,
Viresh Kumar <viresh.kumar@linaro.org>
Subject: Re: [RFCv4 1/6] sched/core: add utilization clamping to CPU controller
Date: Mon, 28 Aug 2017 11:23:03 -0700 [thread overview]
Message-ID: <20170828182303.GZ491396@devbig577.frc2.facebook.com> (raw)
In-Reply-To: <20170824180857.32103-2-patrick.bellasi@arm.com>
Hello,
No idea whether this makes sense overall. I'll just comment on the
cgroup interface part.
On Thu, Aug 24, 2017 at 07:08:52PM +0100, Patrick Bellasi wrote:
> This patch extends the CPU controller by adding a couple of new attributes,
> util_min and util_max, which can be used to enforce frequency boosting and
> capping. Specifically:
>
> - util_min: defines the minimum CPU utilization which should be considered,
> e.g. when schedutil selects the frequency for a CPU while a
> task in this group is RUNNABLE.
> i.e. the task will run at least at a minimum frequency which
> corresponds to the min_util utilization
>
> - util_max: defines the maximum CPU utilization which should be considered,
> e.g. when schedutil selects the frequency for a CPU while a
> task in this group is RUNNABLE.
> i.e. the task will run up to a maximum frequency which
> corresponds to the max_util utilization
I'm not sure min/max are the right names here. min/low/high/max are
used to designate guarantees and limits on resources and the above is
more restricting the range of an attribute. I'll think more about
what'd be better names here.
> These attributes:
> a) are tunable at all hierarchy levels, i.e. at root group level too, thus
> allowing to defined minimum and maximum frequency constraints for all
> otherwise non-classified tasks (e.g. autogroups)
The problem with doing the above is two-fold.
1. The feature becomes inaccessible without cgroup even though it
doesn't have much to do with cgroup at system level.
2. For the above and other historical reasons, most other features
have a separate way to configure at the system level.
I think it'd be better to keep the root level control outside cgorup.
> b) allow to create subgroups of tasks which are not violating the
> utilization constraints defined by the parent group.
The problem with doing the above is that it ties the configs of a
cgroup with its ancestors and that gets weird across delegation
boundaries. Other resource knobs don't behave this way - a descendant
cgroup can have any memory.low/high/max values and an ancestor
changing config doesn't destory its descendants' configs. Please
follow the same convention.
> Tasks on a subgroup can only be more boosted and/or capped, which is
> matching with the "limits" schema proposed by the "Resource Distribution
> Model (RDM)" suggested by the CGroups v2 documentation:
> Documentation/cgroup-v2.txt
So, the guarantee side (min / low) shouldn't allow the descendants to
have more. ie. if memory.low is 512M at the parent, its children can
never have more than 512M of low protection. Given that "boosting"
means more CPU consumption, I think it'd make more sense to follow
such semantics - ie. a descendant cannot have higher boosting than the
lowest of its ancestors.
Thanks.
--
tejun
next prev parent reply other threads:[~2017-08-28 18:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-24 18:08 [RFCv4 0/6] Add utilization clamping to the " Patrick Bellasi
2017-08-24 18:08 ` [RFCv4 1/6] sched/core: add utilization clamping to " Patrick Bellasi
2017-08-28 18:23 ` Tejun Heo [this message]
2017-09-04 17:25 ` Patrick Bellasi
2017-08-24 18:08 ` [RFCv4 2/6] sched/core: map cpu's task groups to clamp groups Patrick Bellasi
2017-08-24 18:08 ` [RFCv4 3/6] sched/core: reference count active tasks's " Patrick Bellasi
2017-08-24 18:08 ` [RFCv4 4/6] sched/core: sync task_group's with CPU's " Patrick Bellasi
2017-08-24 18:08 ` [RFCv4 5/6] cpufreq: schedutil: add util clamp for FAIR tasks Patrick Bellasi
2017-08-24 18:08 ` [RFCv4 6/6] cpufreq: schedutil: add util clamp for RT/DL tasks Patrick Bellasi
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=20170828182303.GZ491396@devbig577.frc2.facebook.com \
--to=tj@kernel.org \
--cc=andresoportus@google.com \
--cc=dietmar.eggemann@arm.com \
--cc=joelaf@google.com \
--cc=john.stultz@linaro.org \
--cc=juri.lelli@arm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=morten.rasmussen@arm.com \
--cc=patrick.bellasi@arm.com \
--cc=peterz@infradead.org \
--cc=pjt@google.com \
--cc=rafael.j.wysocki@intel.com \
--cc=timmurray@google.com \
--cc=tkjos@android.com \
--cc=vincent.guittot@linaro.org \
--cc=viresh.kumar@linaro.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
Powered by JetHome