From: Tejun Heo <tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: Peter Zijlstra <peterz-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
Cc: Ingo Molnar <mingo-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Li Zefan <lizefan-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>,
Johannes Weiner <hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org>
Subject: Re: [PATCH v4.15-rc9] sched, cgroup: Don't reject lower cpu.max on ancestors
Date: Thu, 1 Feb 2018 11:57:10 -0800 [thread overview]
Message-ID: <20180201195710.GK1121507@devbig577.frc2.facebook.com> (raw)
In-Reply-To: <20180201164942.GC2249-Nxj+rRp3nVydTX5a5knrm8zTDFooKrT+cvkQGrU6aU0@public.gmane.org>
Hello,
On Thu, Feb 01, 2018 at 05:49:42PM +0100, Peter Zijlstra wrote:
> > Well, they're upper limits, not strict allocations. The current
> > behavior implemented by cpu isn't either a strict allocation or upper
> > limits. It disallows a child from having a value higher than the
> > parent (allocation-ish) but the sum of the children is allowed to
> > exceed the parent's (limit-ish).
>
> True; but its still weird to have the parent 'promise' something and
> then retract that 'promise' later.
Yeah, depending on how you look at it, it can feel weird. It's just
that viewing these absolute resource limits (cpu.max,
memory.{high,max}, io.max, pids.max) as upper bounds seems to be the
best abstraction in terms of capturing what they do and making uses of
them in a robust way.
> > We had this sort of input validations in different controllers all in
> > their own ways. In most cases, these aren't well thought out and we
> > can't support things like delegation without aligning controller
> > behaviors.
>
> I suppose..
>
> Acked-by: Peter Zijlstra (Intel) <peterz-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
Will route it through cgroup fixes branch in a week or so.
Thanks a lot.
--
tejun
WARNING: multiple messages have this Message-ID (diff)
From: Tejun Heo <tj@kernel.org>
To: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@redhat.com>,
linux-kernel@vger.kernel.org, cgroups@vger.kernel.org,
Li Zefan <lizefan@huawei.com>,
Johannes Weiner <hannes@cmpxchg.org>
Subject: Re: [PATCH v4.15-rc9] sched, cgroup: Don't reject lower cpu.max on ancestors
Date: Thu, 1 Feb 2018 11:57:10 -0800 [thread overview]
Message-ID: <20180201195710.GK1121507@devbig577.frc2.facebook.com> (raw)
In-Reply-To: <20180201164942.GC2249@hirez.programming.kicks-ass.net>
Hello,
On Thu, Feb 01, 2018 at 05:49:42PM +0100, Peter Zijlstra wrote:
> > Well, they're upper limits, not strict allocations. The current
> > behavior implemented by cpu isn't either a strict allocation or upper
> > limits. It disallows a child from having a value higher than the
> > parent (allocation-ish) but the sum of the children is allowed to
> > exceed the parent's (limit-ish).
>
> True; but its still weird to have the parent 'promise' something and
> then retract that 'promise' later.
Yeah, depending on how you look at it, it can feel weird. It's just
that viewing these absolute resource limits (cpu.max,
memory.{high,max}, io.max, pids.max) as upper bounds seems to be the
best abstraction in terms of capturing what they do and making uses of
them in a robust way.
> > We had this sort of input validations in different controllers all in
> > their own ways. In most cases, these aren't well thought out and we
> > can't support things like delegation without aligning controller
> > behaviors.
>
> I suppose..
>
> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Will route it through cgroup fixes branch in a week or so.
Thanks a lot.
--
tejun
next prev parent reply other threads:[~2018-02-01 19:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-22 19:26 [PATCH v4.15-rc9] sched, cgroup: Don't reject lower cpu.max on ancestors Tejun Heo
2018-01-22 19:26 ` Tejun Heo
[not found] ` <20180122192618.GA1771050-4dN5La/x3IkLX0oZNxdnEQ2O0Ztt9esIQQ4Iyu8u01E@public.gmane.org>
2018-01-29 19:15 ` Tejun Heo
2018-01-29 19:15 ` Tejun Heo
2018-01-30 10:21 ` Peter Zijlstra
2018-01-30 14:56 ` Tejun Heo
[not found] ` <20180130145639.GD1121507-4dN5La/x3IkLX0oZNxdnEQ2O0Ztt9esIQQ4Iyu8u01E@public.gmane.org>
2018-02-01 16:49 ` Peter Zijlstra
2018-02-01 16:49 ` Peter Zijlstra
[not found] ` <20180201164942.GC2249-Nxj+rRp3nVydTX5a5knrm8zTDFooKrT+cvkQGrU6aU0@public.gmane.org>
2018-02-01 19:57 ` Tejun Heo [this message]
2018-02-01 19:57 ` Tejun Heo
2018-02-12 17:24 ` Tejun Heo
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=20180201195710.GK1121507@devbig577.frc2.facebook.com \
--to=tj-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \
--cc=cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=lizefan-hv44wF8Li93QT0dZR+AlfA@public.gmane.org \
--cc=mingo-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=peterz-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.