[gnome-ostree/wip/gjs-round2] build: Reduce number of jobs to CPUS + 1, use make -l too
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-ostree/wip/gjs-round2] build: Reduce number of jobs to CPUS + 1, use make -l too
- Date: Sat, 15 Dec 2012 12:28:34 +0000 (UTC)
commit ecc51f11b9ee290f4d807d6c5a1409921dd6f31f
Author: Colin Walters <walters verbum org>
Date: Sat Dec 15 07:22:54 2012 -0500
build: Reduce number of jobs to CPUS + 1, use make -l too
For the future when we're running multiple jobs in parallel,
defaulting make to twice the CPU count is too much. Also, we should
use make -l to avoid global overload too.
src/ostbuild/ostree-build-compile-one | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/ostbuild/ostree-build-compile-one b/src/ostbuild/ostree-build-compile-one
index 02c69a9..e32a62a 100755
--- a/src/ostbuild/ostree-build-compile-one
+++ b/src/ostbuild/ostree-build-compile-one
@@ -98,7 +98,9 @@ def _has_buildapi_configure_variable(name):
return False
def main(args):
- default_buildapi_jobs = ['-j', '%d' % (cpu_count() * 2, )]
+ ncpus = cpu_count()
+ default_buildapi_jobs = ['-j', '%d' % (ncpus + 1),
+ '-l', '%d' % (ncpus * 2)]
starttime = time.time()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]