Limiting CPU on some processes on web server

opendaddy at hushmail.com opendaddy at hushmail.com
Wed Mar 11 15:08:04 UTC 2015


On 11. mars 2015 at 2:07 PM, "Julien Cigar" <jcigar at ulb.ac.be> wrote:
>
>there is sysutils/cpulimit too ..
>

Unfortunately this one doesn't seem to let me run commands with custom arguments, ie. the latest cpulimit at GitHub lets me do:

    cpulimit --limit 20 /usr/local/bin/myscript -a -b -c

But the one in ports seems to be limited to:

    cpulimit -P /usr/local/bin/myscript -l 20

Tried stuff like:

    cpulimit -P /usr/local/bin/myscript -l 20 -- -a -b -c

but to no avail.

Thanks,
O.D.



More information about the freebsd-questions mailing list