oe-layer-setup.sh: restore number of threads to max
PATCH 1/1 oe-layer-setup.sh: restore number of threads to max
We are no longer using VMs for building and so should not need to reduce the number of threads down by 75%.
Signed-off-by Ryan Eatmon <[email protected]>
--- oe-layertool-setup.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
oe-layertool-setup.sh +2 -3
@@ -770,9 +770,8 @@ EOM # set the number of threads threads=`cat /proc/cpuinfo | grep -c processor` - tnum=`expr \( ${threads} + 1 \) \* 75 / 100` - sed -i "s/^PARALLEL_MAKE.*/PARALLEL_MAKE ?= \"-j ${tnum}\"/" $confdir/local.conf - sed -i "s/^BB_NUMBER_THREADS.*/BB_NUMBER_THREADS ?= \"${tnum}\"/" $confdir/local.conf + sed -i "s/^PARALLEL_MAKE.*/PARALLEL_MAKE ?= \"-j ${threads}\"/" $confdir/local.conf + sed -i "s/^BB_NUMBER_THREADS.*/BB_NUMBER_THREADS ?= \"${threads}\"/" $confdir/local.conf # Find if old DL_DIR was set if [ -e $confdir/local.conf.bak ]
Signature · 1 line
2.17.1
Quoted 2 lines · Ryan Eatmon via lists.yoctoproject.org
We are no longer using VMs for building and so should not need to reduce the number of threads down by 75%.
I would recommend dropping those lines altogether - these days bitbake defaults to max number of threads/processes on its own.
Quoted 23 lines
Signed-off-by Ryan Eatmon <[email protected]>--- oe-layertool-setup.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)oe-layertool-setup.sh +2
-3@@ -770,9 +770,8 @@ EOM # set the number of threads threads=`cat /proc/cpuinfo | grep -c processor` - tnum=`expr \( ${threads} + 1 \) \* 75 / 100` - sed -i "s/^PARALLEL_MAKE.*/PARALLEL_MAKE ?= \"-j ${tnum}\"/" $confdir/local.conf - sed -i "s/^BB_NUMBER_THREADS.*/BB_NUMBER_THREADS ?= \"${tnum}\"/" $confdir/local.conf + sed -i "s/^PARALLEL_MAKE.*/PARALLEL_MAKE ?= \"-j ${threads}\"/" $confdir/local.conf + sed -i "s/^BB_NUMBER_THREADS.*/BB_NUMBER_THREADS ?= \"${threads}\"/" $confdir/local.conf # Find if old DL_DIR was set if [ -e $confdir/local.conf.bak ]Signature · 1 line
2.17.1
Quoted 6 lines · Denys Dmytriyenko
Quoted 2 lines · Ryan Eatmon via lists.yoctoproject.org
We are no longer using VMs for building and so should not need to reduce the number of threads down by 75%.
I would recommend dropping those lines altogether - these days bitbake defaults to max number of threads/processes on its own.
Even better. I'll make that change.
Quoted 23 lines
Quoted 23 lines
Signed-off-by Ryan Eatmon <[email protected]>--- oe-layertool-setup.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)oe-layertool-setup.sh +2
-3@@ -770,9 +770,8 @@ EOM # set the number of threads threads=`cat /proc/cpuinfo | grep -c processor` - tnum=`expr \( ${threads} + 1 \) \* 75 / 100` - sed -i "s/^PARALLEL_MAKE.*/PARALLEL_MAKE ?= \"-j ${tnum}\"/" $confdir/local.conf - sed -i "s/^BB_NUMBER_THREADS.*/BB_NUMBER_THREADS ?= \"${tnum}\"/" $confdir/local.conf + sed -i "s/^PARALLEL_MAKE.*/PARALLEL_MAKE ?= \"-j ${threads}\"/" $confdir/local.conf + sed -i "s/^BB_NUMBER_THREADS.*/BB_NUMBER_THREADS ?= \"${threads}\"/" $confdir/local.conf # Find if old DL_DIR was set if [ -e $confdir/local.conf.bak ]Signature · 1 line
2.17.1
Signature · 3 lines
Ryan Eatmon [email protected] ----------------------------------------- Texas Instruments, Inc. - LCPD - MGTS