Also:

# Number of simultaneous make jobs (commands) to use when building ports. This
# value may be set to 0 so the number of simultaneous make jobs will be set to
# the number of CPU cores that are automatically detected, or the number of GB
# of physical memory plus one, whichever is less.
buildmakejobs           0


> On Aug 20, 2015, at 3:30 PM, Jeremy Lavergne <jer...@lavergne.gotdns.org> 
> wrote:
> from macports.conf
> # Lowered scheduling priority to use for commands run during configure,
> # build, and destroot. Accepted values are 0 (normal priority) through
> # 20 (lowest priority).
> #buildnicevalue         0
> 
> check out Apple command line utility:
> pmset noidle
> 
> 
> On Aug 20, 2015, at 3:13 PM, Jean-François Caron wrote:
> 
>> 1) I want ports to build in parallel when possible, but I’d like to select a 
>> maximum number of cores assigned to the job.  My CPU has 8 cores with 
>> hyperthreading, and when upgrading e.g. clang, my OS and apps are seriously 
>> laggy.  If could limit the number of cores assigned to the job, I’m guessing 
>> this wouldn’t happen.  According to my Googles, my only option is to disable 
>> parallel builds entirely. Would it be feasible to add an extra option like 
>> “buildmaxcores” or something?
> 
>> 2) Since my OS is unusable during long builds, I walk away from the 
>> computer, but then it goes to sleep the build is paused.  The current advice 
>> is to get a non-macports app called Caffeine to do some magic, or write a 
>> custom port wrapper to use pmset noidle before and after the port command.  
>> This should be an option in the MacPorts configuration somewhere, one 
>> shouldn’t have to resort to 3rd-party apps or scripting to get 
>> user-friendiness out of MacPorts.

--
Daniel J. Luke                                                                  
 
+========================================================+                      
  
| *---------------- dl...@geeklair.net ----------------* |                      
    
| *-------------- http://www.geeklair.net -------------* |                      
    
+========================================================+                      
  
|   Opinions expressed are mine and do not necessarily   |                      
    
|          reflect the opinions of my employer.          |                      
    
+========================================================+



_______________________________________________
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users

Reply via email to