Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

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

share|improve this answer
Yes, I knew about the possibility of using limits.conf in a jail, but that's not quite what I was looking for. I guess I'll have to take a look at the cpulimit source and see how it's implemented, and check out the FreeBSD kernel calls to see if it is remotely feasible to implement an equivalent. – jns May 18 '09 at 0:03

There is also a new utility, cpuset , which you can use to limit certain processes to certain cpu's.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.