Date: Wed, 11 Mar 2015 14:49:58 +0100 From: Polytropon <freebsd@edvax.de> To: opendaddy@hushmail.com Cc: freebsd-questions@freebsd.org Subject: Re: Limiting CPU on some processes on web server Message-ID: <20150311144958.3ef9519d.freebsd@edvax.de> In-Reply-To: <20150311134232.838ABC0451@smtp.hushmail.com> References: <20150311122656.96F2020341@smtp.hushmail.com> <20150311141347.1013d42d.freebsd@edvax.de> <20150311134232.838ABC0451@smtp.hushmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 11 Mar 2015 13:42:32 +0000, opendaddy@hushmail.com wrote: > On 11. mars 2015 at 1:04 PM, "Polytropon" <freebsd@edvax.de> wrote: > > > >You can try ulimit. See "man sh" for ulimit parameters, > >for example: > > > > -t time > > The maximal amount of CPU time to be used by > >each > > process, in seconds. > > > >There are other restrictions you can apply, like memory > >locking or simultaneous processes. > > > > Thanks, will give that a go. > > Any idea how it compares to https://github.com/opsengine/cpulimit/ though? The main differnce in functionality is that ulimit -t defines the limit as time, whereas cpulimit defines it as percentage of CPU resources used. Another difference is that ulimit comes with FreeBSD's default scripting shell, whereas cpulimit is a Linux program that has to be compiled from source, after porting it, of course. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150311144958.3ef9519d.freebsd>