From owner-freebsd-current@FreeBSD.ORG Sat Mar 31 19:32:05 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E1471065670 for ; Sat, 31 Mar 2012 19:32:05 +0000 (UTC) (envelope-from etnapierala@googlemail.com) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by mx1.freebsd.org (Postfix) with ESMTP id 8721E8FC14 for ; Sat, 31 Mar 2012 19:32:04 +0000 (UTC) Received: by wibhq7 with SMTP id hq7so1236672wib.13 for ; Sat, 31 Mar 2012 12:32:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.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=90turt4XdkpJnvj6Ftv56TjDTn1LzI70g0PaY/nA2rQ=; b=MWRdvYHJacenOendSc3+qqS/uteGWTSWBYDHqefXBydPttGb3vo6Yjaz0E2it3maWY JGIjMmv8V9oasHGWwEW6Oe19XJTQLqgo5ZKVku+p7ulzShFTxPvwrYE5R23TSFMarchq xmsj8tvkvLpQpan6RmHBxfpgsjYoqKn871IE5vBUN/vdeCllhhTeC8FAGo0Yxh40CmvY 2FlcpwQzUge5CYfFhTh2s93a4XVG17kzvlHk0jrWR/ByaGmIbmE2miD8BsRxAt6mhCDl Jio78rk0DkxDwHLo9OhtE2UgTmTgIm7zgpDW0tGLqWl0hHTEvj0oKHZjB0iai5XE5ei1 F44g== Received: by 10.180.101.230 with SMTP id fj6mr9327456wib.13.1333222323385; Sat, 31 Mar 2012 12:32:03 -0700 (PDT) Received: from geosci (45.81.datacomsa.pl. [195.34.81.45]) by mx.google.com with ESMTPS id l5sm18663405wia.11.2012.03.31.12.32.00 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 31 Mar 2012 12:32:02 -0700 (PDT) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= Date: Sat, 31 Mar 2012 21:31:58 +0200 From: Edward Tomasz =?utf-8?Q?Napiera=C5=82a?= To: Slawa Olhovchenkov Message-ID: <20120331193158.GA55098@geosci> References: <4E2EC1D4.20302@rsu.ru> <5690C0E7-5FD5-49B1-B1C1-6D56EB95B810@FreeBSD.org> <20120328123033.GD61230@zxy.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120328123033.GD61230@zxy.spb.ru> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-current@freebsd.org, Alexander Pyhalov Subject: Re: rctl limit cpu X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Mar 2012 19:32:05 -0000 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?