View Full Version : Limit CPU and other resources while port build
February 4th, 2009, 01:54
Building my ports on a 500mhz sparc processor takes A LOT of time, and will usually unbearably slow down my webserver while the new builds takes place. Is there any way to tell the make command to give itself a low priority so that it doesn't interrupt the other operations on the server?
February 4th, 2009, 10:06
February 4th, 2009, 10:13
Nice has no noticeable effect on FreeBSD. As far as I understand from past mailing list discussions about scheduling, the schedulers don't give it a lot of credit.
What you can do is impose limits in your login.conf. But maybe that should be done in a jail. I do not know the consequences of imposing such limits on the root user.
June 3rd, 2009, 02:41
Running 'nice +20 make buildworld' did have a noticeable afect on my last update from 7.1 to 7.2.the server was slower, but much better than without it.
June 3rd, 2009, 09:03
June 3rd, 2009, 09:34
I used to limit CPU resources on Linux boxes with cpulimit (http://cpulimit.sourceforge.net/) utility.
I wonder if there is something similar to it for BSDs..
June 4th, 2009, 00:38
It looks overall simplistic and use renice and procfs.
It should be easy but not trivial to port it.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.