f542 Limit CPU and other resources while port build - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Ports & Packages > Installation and Maintenance of FreeBSD Ports or Packages

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

Reply
 
Thread Tools Display Modes
  #1  
Old February 4th, 2009, 01:54
surlyjake surlyjake is offline
Junior Member
 
Join Date: Jan 2009
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
Default Limit CPU and other resources while port build

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?
Reply With Quote
  #2  
Old February 4th, 2009, 10:06
ale's Avatar
ale ale is offline
Senior Member
 
Join Date: Nov 2008
Location: Roma
Posts: 1,064
Thanks: 0
Thanked 160 Times in 146 Posts
Default

nice(1)
Reply With Quote
The Following User Says Thank You to ale For This Useful Post:
surlyjake (June 3rd, 2009)
  #3  
Old February 4th, 2009, 10:13
kamikaze's Avatar
kamikaze kamikaze is offline
Member
 
Join Date: Nov 2008
Location: /earth/europe/germany
Posts: 366
Thanks: 6
Thanked 66 Times in 45 Posts
Default

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: amd(8) 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.

Last edited by kamikaze; February 4th, 2009 at 10:19.
Reply With Quote
  #4  
Old June 3rd, 2009, 02:41
surlyjake surlyjake is offline
Junior Member
 
Join Date: Jan 2009
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
Default nice works!

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.
Reply With Quote
  #5  
Old June 3rd, 2009, 06:45
ale's Avatar
ale ale is offline
Senior Member
 
Join Date: Nov 2008
Location: Roma
Posts: 1,064
Thanks: 0
Thanked 160 Times in 146 Posts
Default

I'm glad it helped
Reply With Quote
  #6  
Old June 3rd, 2009, 09:03
richardpl richardpl is offline
Member
 
Join Date: Nov 2008
Location: Croatia
Posts: 841
Thanks: 6
Thanked 68 Times in 67 Posts
Default

rtprio, idprio
Reply With Quote
  #7  
Old June 3rd, 2009, 09:34
bsdvm's Avatar
bsdvm bsdvm is offline
Junior Member
 
Join Date: Apr 2009
Location: www
Posts: 14
Thanks: 1
Thanked 4 Times in 1 Post
Question Limiting CPU utility

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
Reply With Quote
  #8  
Old June 4th, 2009, 00:38
richardpl richardpl is offline
Member
 
Join Date: Nov 2008
Location: Croatia
Posts: 841
Thanks: 6
Thanked 68 Times in 67 Posts
Default

It looks overall simplistic and use renice and procfs.
It should be easy but not trivial to port it.
Reply With Quote
Reply

Tags
build, port, system

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
2tb limit? wjones Installing & Upgrading 10 January 27th, 2009 20:49
Any Plans to port FreeBSD to the CELL CPU cpu Other Architectures 3 January 7th, 2009 18:19
10000 character limit Sylhouette Feedback 5 December 4th, 2008 09:16
What if a port does not use build systems supported by ports Kitche Porting New Software 7 November 23rd, 2008 20:43
net-snmp port upgrade build error on fbsd 7.0 ardya Installation and Maintenance of FreeBSD Ports or Packages 8 November 17th, 2008 10:41


All times are GMT +1. The time now is 14:49.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0