[jhbuild] defaults.jhbuildrc: Reduce number of jobs to CPUS + 1



commit 871a92054787afa83be7270aad4dfeeb4bbdbd81
Author: Javier Jardón <javier jardon codethink co uk>
Date:   Wed Feb 20 15:13:49 2013 +0000

    defaults.jhbuildrc: Reduce number of jobs to CPUS + 1
    
    When we're running multiple jobs in parallel,
    defaulting make to twice the CPU count is too much
    (the builds are slower and also the machine can start to
    be unresponsive)

 jhbuild/defaults.jhbuildrc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/jhbuild/defaults.jhbuildrc b/jhbuild/defaults.jhbuildrc
index c1fde15..43cb6fc 100644
--- a/jhbuild/defaults.jhbuildrc
+++ b/jhbuild/defaults.jhbuildrc
@@ -52,10 +52,10 @@ builddir_pattern = '%s'
 ## to include a -j option, that will take precedence.
 try:
     import multiprocessing
-    jobs = multiprocessing.cpu_count() * 2
+    jobs = multiprocessing.cpu_count() + 1
 except ImportError, _e:
     try:
-        jobs = 2 * os.sysconf('SC_NPROCESSORS_ONLN')
+        jobs = os.sysconf('SC_NPROCESSORS_ONLN') + 1
     except (OSError, AttributeError, ValueError):
         jobs = 2
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]