1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Limit CPU and other resources while port build

Discussion in 'Installation and Maintenance of Ports or Packages' started by surlyjake, Feb 4, 2009.

  1. surlyjake

    surlyjake New Member

    Messages:
    3
    Likes Received:
    0
    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?
     
  2. ale

    ale New Member

    Messages:
    1,059
    Likes Received:
    0
  3. kamikaze

    kamikaze New Member

    Messages:
    366
    Likes Received:
    0
    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.
     
  4. surlyjake

    surlyjake New Member

    Messages:
    3
    Likes Received:
    0
    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.
     
  5. ale

    ale New Member

    Messages:
    1,059
    Likes Received:
    0
    I'm glad it helped
     
  6. richardpl

    richardpl New Member

    Messages:
    841
    Likes Received:
    0
  7. bsdvm

    bsdvm New Member

    Messages:
    14
    Likes Received:
    0
    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..
     
  8. richardpl

    richardpl New Member

    Messages:
    841
    Likes Received:
    0
    It looks overall simplistic and use renice and procfs.
    It should be easy but not trivial to port it.