|
|||
Load compile limit on CPU
I have a tendency to run make on my machines until the swap is being used.
The G3 is still building with six active processes. Before the amd64 died, I would run the same number of [make install clean]s. Just wondering- and a little bored while I wait- if anyone else does the same. |
|
|||
I think I'll try that statement out
Code:
make -j |
|
||||
using login classes (man login.conf), it is possible to define limits to how much resources a user may use (cpu, memory, open files, processes, etc). If necessary you can always define one or several of these, and use su to run make under it, i.e.
$ su -c loginclass -c 'make -j4 target' . That can be handy if you need to keep compiling something within a given limit, but remember that it can also cause builds to fail.On FreeBSD at least, the -j switch to make, can significantly decrease compile times for the kernel and base, but doesn't play well with ports at times. The # of processors (or cores) is often used, but I typically use -j4 to -j6 on my sempron uniprocessor and -j8 to -j12 on my dual cored pentium d. Tends to work quite well.
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Bandwidth limit per IP | PatrickBaer | OpenBSD General | 13 | 22nd February 2010 07:38 PM |
Limit Bandwidth (not throughput) | plexter | OpenBSD Security | 5 | 9th October 2008 05:10 PM |
limit use memory by Apache | mfaridi | FreeBSD Security | 4 | 8th July 2008 05:59 PM |
Approaching the limit on PV entries | ccc | FreeBSD General | 6 | 14th June 2008 06:58 PM |