On 9/28/2022 15:49, Denys Dmytriyenko wrote:
On Wed, Sep 28, 2022 at 03:43:54PM -0500, Ryan Eatmon via 
lists.yoctoproject.org wrote:
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.


Signed-off-by: Ryan Eatmon <[email protected]>
---
  oe-layertool-setup.sh | 5 ++---
  1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/oe-layertool-setup.sh b/oe-layertool-setup.sh
index e404290..1ea31c3 100755
--- a/oe-layertool-setup.sh
+++ b/oe-layertool-setup.sh
@@ -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 ]
--
2.17.1

--
Ryan Eatmon                [email protected]
-----------------------------------------
Texas Instruments, Inc.  -  LCPD  -  MGTS


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14048): 
https://lists.yoctoproject.org/g/meta-arago/message/14048
Mute This Topic: https://lists.yoctoproject.org/mt/93981716/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-arago/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to