jns Asked: 2009-05-18 04:04:35 +0800 CST2009-05-18 04:04:35 +0800 CST 2009-05-18 04:04:35 +0800 CST cpulimit for FreeBSD 772 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. freebsd 2 Answers Voted gharper 2009-05-18T07:08:46+08:002009-05-18T07:08:46+08:00 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 user4275 2009-05-31T09:45:38+08:002009-05-31T09:45:38+08:00 There is also a new utility, cpuset , which you can use to limit certain processes to certain cpu's.
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
There is also a new utility, cpuset , which you can use to limit certain processes to certain cpu's.