Limiting CPU on some processes on web server

opendaddy at hushmail.com opendaddy at hushmail.com
Thu Mar 12 01:25:32 UTC 2015


Hi,

On 11. mars 2015 at 2:03 PM, "Polytropon" <freebsd at edvax.de> wrote:
>
>https://github.com/opsengine/cpulimit
>
>If you manually add "#include <libgen.h>" to src/cpulimit.c
>and remove "#ifdef __APPLE__" ... "#endif" from 
>tests/process_iterator_test.c
>around the "#include <libgen.h>" 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.



More information about the freebsd-questions mailing list