Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #9111 from EOSIO/EPE-81-develop
Browse files Browse the repository at this point in the history
Update algorithm for determining number of parallel jobs - develop
  • Loading branch information
Timothy Banks authored May 20, 2020
2 parents 01119bb + 168a47d commit 1e39b68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/helpers/general.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ function set_system_vars() {
export DISK_INSTALL=$1
export DISK_TOTAL=$(($2 / 1024 / 1024))
export DISK_AVAIL=$(($4 / 1024 / 1024))
export JOBS=${JOBS:-$(( MEM_GIG > CPU_CORES ? CPU_CORES : MEM_GIG ))}
# For a basic hueristic here, let's require at least 2GB of available RAM per parallel job.
# CPU_CORES is the number of logical cores available.
export JOBS=${JOBS:-$(( MEM_GIG / 2 >= CPU_CORES ? CPU_CORES : MEM_GIG / 2 ))}
}

function install-package() {
Expand Down

0 comments on commit 1e39b68

Please sign in to comment.