diff --git a/metadata/layout.conf b/metadata/layout.conf index 393f0d5..4d0281a 100644 --- a/metadata/layout.conf +++ b/metadata/layout.conf @@ -1,2 +1,2 @@ masters = gentoo -profile-formats = portage-2 +profile-formats = portage-2 profile-bashrcs diff --git a/profiles/targets/desktop/bashrc/half_parallell.rc b/profiles/targets/desktop/bashrc/half_parallell.rc index 2a5e23a..cb168ef 100644 --- a/profiles/targets/desktop/bashrc/half_parallell.rc +++ b/profiles/targets/desktop/bashrc/half_parallell.rc @@ -1,2 +1,3 @@ nr_cpu=$(lscpu -p | egrep -v '^#' | wc -l) -export MAKEOPTS="-j$(( ${nr_cpu}/2 ))" +ewarn "Reducing parallelism to ${nr_cpu} processes" +export MAKEOPTS="-j$(( ${nr_cpu}/2 )) -l$(( ${nr_cpu}/4 ))" diff --git a/profiles/targets/desktop/bashrc/no_parallell.rc b/profiles/targets/desktop/bashrc/no_parallell.rc index 2c740b7..ee347d8 100644 --- a/profiles/targets/desktop/bashrc/no_parallell.rc +++ b/profiles/targets/desktop/bashrc/no_parallell.rc @@ -1 +1 @@ -export MAKEOPTS="-j1" +export MAKEOPTS="-j1 -l1"