Date: Sat, 31 Mar 2012 21:31:58 +0200 From: Edward Tomasz =?utf-8?Q?Napiera=C5=82a?= <trasz@FreeBSD.org> To: Slawa Olhovchenkov <slw@zxy.spb.ru> Cc: freebsd-current@freebsd.org, Alexander Pyhalov <alp@rsu.ru> Subject: Re: rctl limit cpu Message-ID: <20120331193158.GA55098@geosci> In-Reply-To: <20120328123033.GD61230@zxy.spb.ru> References: <4E2EC1D4.20302@rsu.ru> <5690C0E7-5FD5-49B1-B1C1-6D56EB95B810@FreeBSD.org> <20120328123033.GD61230@zxy.spb.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Mar 28, 2012 at 04:30:33PM +0400, Slawa Olhovchenkov wrote: > On Wed, Jul 27, 2011 at 09:32:49PM +0200, Edward Tomasz Napiera?a wrote: > > Wiadomo?? napisana przez Alexander Pyhalov w dniu 26 lip 2011, o godz. 15:32: > > > Hello. > > > I see in rctl man page, that I can limit cpu time in milliseconds, e.g., for jail. But I can't deny allocation of the resource (according to man page). > > > In Solaris I can assign different amount of cpu shares to different projects. How can I achieve this with rctl? For example, I'd like to give jail:www 40% CPU, jail:db - 50% CPU and leave 10% to the base system... > > > > The cputime resource (it got renamed shortly before the code freeze to match > > resource names in login.conf(5)) defines amount of CPU time used, not the percentage. > > That's why you cannot deny it - if you could, it would just make the offending process > > (jail, login class, user) hang indefinitely. > > > > The %CPU limit is not implemented yet. I plan to do this before sometime > > after 9.0 is out. > > Any progress yet? Nope, sorry. There is a good chance for this to be a GSoC project this year, though. -- If you cut off my head, what would I say? Me and my head, or me and my body?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120331193158.GA55098>