Freebsd – cpulimit for FreeBSD

freebsd

Does any one know of an equivalent of the GNU/Linux utility cpulimit for FreeBSD?

I'm not talking about process niceness or setting limits on a user account, but actually limiting the percentage of cpu used by a specific process.

Best Answer

Using the /etc/login.conf file, you can set a limit on max CPU time a process is allowed to consume, but it's not currently possible to limit the percentage of the CPU an individual process uses. (Reference here)

You might be able to accomplish a similar effect by running the process in a jail and limiting the resources for the jail