diff --git a/build.sh b/build.sh index d430cdbb198643..56a9571e2deca2 100755 --- a/build.sh +++ b/build.sh @@ -48,8 +48,6 @@ if [[ ! -f ${DORIS_THIRDPARTY}/installed/lib/libs2.a ]]; then ${DORIS_THIRDPARTY}/build-thirdparty.sh fi -PARALLEL=$[$(nproc)/4+1] - # Check args usage() { echo " @@ -92,7 +90,7 @@ fi eval set -- "$OPTS" -PARALLEL=$[$(nproc)+1] +PARALLEL=$[$(nproc)/4+1] BUILD_BE= BUILD_FE= BUILD_UI= diff --git a/run-be-ut.sh b/run-be-ut.sh index 590b4c4cfea369..4ca5c274e1a600 100755 --- a/run-be-ut.sh +++ b/run-be-ut.sh @@ -73,7 +73,7 @@ fi eval set -- "$OPTS" -PARALLEL=$[$(nproc)/2+1] +PARALLEL=$[$(nproc)/4+1] CLEAN= RUN= if [ $# == 1 ] ; then