From: Waiman Long Subject: Re: [RFC PATCH v2 11/17] cgroup: Implement new thread mode semantics Date: Thu, 1 Jun 2017 17:12:42 -0400 Message-ID: <1e775dcf-61b2-29d5-a214-350dc81c632b@redhat.com> References: <20170524203616.GO24798@htj.duckdns.org> <9b147a7e-fec3-3b78-7587-3890efcd42f2@redhat.com> <20170524212745.GP24798@htj.duckdns.org> <20170601145042.GA3494@htj.duckdns.org> <20170601151045.xhsv7jauejjis3mi@hirez.programming.kicks-ass.net> <20170601184740.GC3494@htj.duckdns.org> <20170601203815.GA13390@htj.duckdns.org> <20170601205203.GB13390@htj.duckdns.org> Mime-Version: 1.0 Content-Transfer-Encoding: 8BIT Return-path: DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com C58A780470 In-Reply-To: <20170601205203.GB13390-piEFEHQLUPpN0TnZuCh8vA@public.gmane.org> Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Tejun Heo Cc: Peter Zijlstra , Li Zefan , Johannes Weiner , Ingo Molnar , cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-doc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org, kernel-team-b10kYP2dOMg@public.gmane.org, pjt-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org, luto-kltTT9wpgjJwATOyAt5JVQ@public.gmane.org, efault-Mmb7MZpHnFY@public.gmane.org On 06/01/2017 04:52 PM, Tejun Heo wrote: > Hello, > > On Thu, Jun 01, 2017 at 04:48:48PM -0400, Waiman Long wrote: >> I think we are on agreement here. I should we should just document how >> userland can work around the internal process competition issue by >> setting up the cgroup hierarchy properly. Then we can remove the no >> internal process constraint. > Heh, we agree on the immediate solution but not the final direction. > This requirement affects how controllers implement resource control in > significant ways. It is a restriction which can be worked around in > userland relatively easily. I'd much prefer to keep the invariant > intact. > > Thanks. > Are you referring to keeping the no internal process restriction and document how to work around that instead? I would like to hear what workarounds are currently being used. Anyway, you currently allow internal process in thread mode, but not in non-thread mode. I would prefer no such restriction in both thread and non-thread mode. Cheers, Longman