From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lennart Poettering Subject: Re: new cg-manager gui tool for managin cgroups Date: Thu, 21 Jul 2011 17:53:13 +0200 Message-ID: <20110721155312.GA19140@tango.0pointer.de> References: <20110720192029.GD2482@redhat.com> <1311202891.5681.5.camel@planemask> <20110721143622.GB2454@redhat.com> <20110721145202.GL17632@redhat.com> <20110721152845.GD12373@redhat.com> <20110721153620.GO17632@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20110721153620.GO17632-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: "Daniel P. Berrange" Cc: fedora-devel-list-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, mclasen-H+wXaHxf7aJhl2p70BpVqQ@public.gmane.org, cg-manager-developers-TuqUDEhatI7GMZAyRF5v151Ccm5ICvs9@public.gmane.org, lwang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, duffy-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org, Vivek Goyal List-Id: containers.vger.kernel.org On Thu, 21.07.11 16:36, Daniel P. Berrange (berrange-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org) wrote: > IIRC, you can already set cgroups configuration in the service's > systemd unit file, using something like: > > ControlGroup="cpu:/foo/bar mem:/wizz" > > though I can't find the manpage right now. Yes, this is supported in systemd (though without the ""). It's (tersely) documented in systemd.exec(5). My guess is that we'll cover about 90% or so of the usecases of cgroups if we make it easy to assign cgroup-based limits to VMs, to system services and to users, like we can do with libvirt and systemd. There's still a big chunk of the 10% who want more complex setups with more arbitrary groupings, but I have my doubts the folks doing that are the ones who need a UI for that. Lennart -- Lennart Poettering - Red Hat, Inc.