From owner-freebsd-questions@FreeBSD.ORG Wed Mar 11 14:36:38 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 549C9FE2 for ; Wed, 11 Mar 2015 14:36:38 +0000 (UTC) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 10C0D66D for ; Wed, 11 Mar 2015 14:36:37 +0000 (UTC) Received: from r56.edvax.de (port-92-195-131-196.dynamic.qsc.de [92.195.131.196]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id BF04F27752; Wed, 11 Mar 2015 15:36:35 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id t2BEaZ8i005417; Wed, 11 Mar 2015 15:36:35 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Wed, 11 Mar 2015 15:36:35 +0100 From: Polytropon To: Julien Cigar Subject: Re: Limiting CPU on some processes on web server Message-Id: <20150311153635.a87543cc.freebsd@edvax.de> In-Reply-To: <20150311141644.GS6600@mordor.lan> References: <20150311122656.96F2020341@smtp.hushmail.com> <20150311141347.1013d42d.freebsd@edvax.de> <20150311134232.838ABC0451@smtp.hushmail.com> <20150311144958.3ef9519d.freebsd@edvax.de> <20150311140420.1646CC044F@smtp.hushmail.com> <20150311151157.5baea8b7.freebsd@edvax.de> <20150311141644.GS6600@mordor.lan> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: opendaddy@hushmail.com, freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Mar 2015 14:36:38 -0000 On Wed, 11 Mar 2015 15:16:44 +0100, Julien Cigar wrote: > there is sysutils/cpulimit too .. Judging from its manpage (yes, it _has_ a manpage!): -l, --limit=N percentage of CPU allowed from 0 to 100 (mandatory) This seems to fulfill the requirement of setting the limit according to load percentage, instead of time (like ulimit -t). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...