From owner-freebsd-questions@FreeBSD.ORG Thu Mar 12 01:25:32 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 BB45E6F9 for ; Thu, 12 Mar 2015 01:25:32 +0000 (UTC) Received: from smtp3.hushmail.com (smtp3.hushmail.com [65.39.178.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.hushmail.com", Issuer "smtp.hushmail.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9C97FCA6 for ; Thu, 12 Mar 2015 01:25:32 +0000 (UTC) Received: from smtp3.hushmail.com (localhost [127.0.0.1]) by smtp3.hushmail.com (Postfix) with SMTP id 6C6DFE019D for ; Thu, 12 Mar 2015 01:25:31 +0000 (UTC) Received: from smtp.hushmail.com (w2.hushmail.com [65.39.178.46]) by smtp3.hushmail.com (Postfix) with ESMTP; Thu, 12 Mar 2015 01:25:30 +0000 (UTC) Received: by smtp.hushmail.com (Postfix, from userid 99) id DA0CFE0404; Thu, 12 Mar 2015 01:25:30 +0000 (UTC) MIME-Version: 1.0 Date: Thu, 12 Mar 2015 01:25:30 +0000 To: "Polytropon" Subject: Re: Limiting CPU on some processes on web server From: opendaddy@hushmail.com In-Reply-To: <20150311151157.5baea8b7.freebsd@edvax.de> 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> Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="UTF-8" Message-Id: <20150312012530.DA0CFE0404@smtp.hushmail.com> Cc: 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: Thu, 12 Mar 2015 01:25:32 -0000 Hi, On 11. mars 2015 at 2:03 PM, "Polytropon" wrote: > >https://github.com/opsengine/cpulimit > >If you manually add "#include " to src/cpulimit.c >and remove "#ifdef __APPLE__" ... "#endif" from >tests/process_iterator_test.c >around the "#include " line, you can run "gmake" >(in src/ and /test, or at the top level), and it will successfully >build. > >Result: > >$ ./cpulimit >Error: You must specify a cpu limit percentage Are you able to successfully limit any processes with it? Over here it seems to force 0% no matter what. Spoke to the sysutils/cpulimit guy. Seems he's no longer the maintainer and can't be of any help. Thanks! O.D.