Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Mar 2015 14:23:10 +0000
From:      opendaddy@hushmail.com
To:        "Polytropon" <freebsd@edvax.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Limiting CPU on some processes on web server
Message-ID:  <20150311142310.321CAC044F@smtp.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> 

next in thread | previous in thread | raw e-mail | index | archive | help
On 11. mars 2015 at 2:03 PM, "Polytropon" <freebsd@edvax.de> wrote:
>
>You can try that "quick & dirty" modification and check if
>the cputime program _works_ for you.
>

Awesome - no more warnings! Unfortunately though, the processes that run inside it doesn't seem to get more than 2% CPU.

As expected, this works just fine on Linux.

>> Is there a CPU time limit equivalent to say 20% or have I 
>totally misunderstood?
>
>I'd say it's hard to calculate or estimate absolute CPU time
>from relative resource consumption (load). You will probably
>have to test this with the real application you want to limit.

Basically I run this web app that requires ImageMagick to process photos, but whenever ImageMagick runs, it consumes up to 100% CPU, rendering the actual web app inaccessible (gateway timeout).

Thanks!

O.D.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150311142310.321CAC044F>