Limit CPU and other resources while port build

Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

Limit CPU and other resources while port build

Postby surlyjake » 04 Feb 2009, 00: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?
surlyjake
Junior Member
 
Posts: 3
Joined: 12 Jan 2009, 16:08

Postby ale » 04 Feb 2009, 09:06

[man=1]nice[/man]
User avatar
ale
Senior Member
 
Posts: 1064
Joined: 19 Nov 2008, 01:28
Location: Roma

Postby kamikaze » 04 Feb 2009, 09: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.
sysutils/bsdadminscripts: binary package maintenance, library integrity checking, ...
sysutils/automounter: [man=8]amd[/man] based automounting without HAL
contact: kamikaze@bsdforen.de

Disclaimer: My posts represent my perception. Errors and incompleteness are to be expected, I deny any responsibility to know everything.
User avatar
kamikaze
Member
 
Posts: 366
Joined: 17 Nov 2008, 07:34
Location: /earth/europe/germany

nice works!

Postby surlyjake » 03 Jun 2009, 01: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.
surlyjake
Junior Member
 
Posts: 3
Joined: 12 Jan 2009, 16:08

Postby ale » 03 Jun 2009, 05:45

I'm glad it helped
User avatar
ale
Senior Member
 
Posts: 1064
Joined: 19 Nov 2008, 01:28
Location: Roma

Postby richardpl » 03 Jun 2009, 08:03

[man]rtprio[/man], [man]idprio[/man]
richardpl
Member
 
Posts: 841
Joined: 17 Nov 2008, 17:02
Location: Croatia

Limiting CPU utility

Postby bsdvm » 03 Jun 2009, 08:34

I used to limit CPU resources on Linux boxes with cpulimit utility.
I wonder if there is something similar to it for BSDs..
BSD Virtual Machines - bsdvm.com
User avatar
bsdvm
Junior Member
 
Posts: 14
Joined: 25 Apr 2009, 10:21
Location: www

Postby richardpl » 03 Jun 2009, 23:38

It looks overall simplistic and use renice and procfs.
It should be easy but not trivial to port it.
richardpl
Member
 
Posts: 841
Joined: 17 Nov 2008, 17:02
Location: Croatia


Return to Installation and Maintenance of FreeBSD Ports or Packages

Who is online

Users browsing this forum: Windmill and 1 guest