From: Tejun Heo Subject: Re: [PATCH cgroup/for-3.11 1/3] cgroup: mark "tasks" cgroup file as insane Date: Tue, 4 Jun 2013 13:19:47 -0700 Message-ID: <20130604201947.GE14916@htj.dyndns.org> References: <20130604021302.GH29989@mtj.dyndns.org> <20130604111556.GA4963@redhat.com> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=T3UqNlCFKZn0i7Sz4YdFp03RDmwHZkchAfEVPCLXoQk=; b=SUswQPxnwUQe1kX241BUwP1MiK+YrYyGJHeHnUdcR+SUUmyU+6NFBbFnJRExLppqhF 65eE5+5M7QpZfoDrEQiMCN6+OQRiQEX3aHC/c162Kq0EW5BjuTvMBtZMpMNMTq0V/MTr McZpcC1GTLNIY+HhwL4weNu81AxBI0YZQRBt8SqWQk/aYe5vfQkNFbqEHi74U7z7zNoj r49KeTPhn7CbR80LaNZKaq1ZeYKlHaYJOOYMziDlYVQwAmwPWz8VxfiiJeKI2mlA+Jla flRhMau/03HZZXFU6+XQqty43H9JbfQ/k7GLPb42hk1Te18OHy2I8caHZXLy4RIKWHZu ae2Q== Content-Disposition: inline In-Reply-To: <20130604111556.GA4963-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: "Daniel P. Berrange" Cc: Li Zefan , containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, kay.sievers-tD+1rO4QERM@public.gmane.org, Michal Hocko , Vivek Goyal , lennart-mdGvqq1h2p+GdvJs77BJ7Q@public.gmane.org, Johannes Weiner , cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Hey, Daniel. On Tue, Jun 04, 2013 at 12:15:56PM +0100, Daniel P. Berrange wrote: > With libvirt and KVM we require the ability to put different threads I really don't think cgroup has ever been intended (if there were ever any such overall intending) or is suited for something as fine grained as in-process resource management. There already are existing per-thread interfaces for that. Please use them instead. cgroup simply doesn't fit. > in different cgroups for the "cpu", "cpuset" & "cpuacct" controllers. cpu and cpuacct are in the process of being merged. The scheduler people hate the duplicate accounting the separation causes and cpuacct is generally considered a mistake that we shouldn't repeat. So, umm, you're really depending on a lot of things which are considered big mistakes in cgroup. > This is to allow us to control schedular tunables / placement for > QEMU vCPU threads, independantly of limits for QEMU I/O threads. So > requiring all threads of a process to be in the same cgroup isn't > sufficiently flexible for our needs. It was never suited to that level of flexibility and it will never be and things like that will be clearly forbidden rather than being left in the current "not fully supported but kinda works" state. The existing stuff won't break but new things won't keep the support. If you're fine with staying with the old interface, which will be around for the foreseeable future, that's fine too, but if you intend to move onto the new interface when it finally becomes ready, whenever that is, please move on. Thanks. -- tejun