PDA

View Full Version : Limit CPU and other resources while port build


surlyjake
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?

ale
February 4th, 2009, 10:06
nice

kamikaze
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.

surlyjake
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.

ale
June 3rd, 2009, 06:45
I'm glad it helped

richardpl
June 3rd, 2009, 09:03
rtprio, idprio

bsdvm
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..

richardpl
June 4th, 2009, 00:38
It looks overall simplistic and use renice and procfs.
It should be easy but not trivial to port it.