Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/candidate-8.12.x' into candidate…
Browse files Browse the repository at this point in the history
…-8.12.64

Signed-off-by: Gordon Smith <[email protected]>

# Conflicts:
#	helm/hpcc/Chart.yaml
#	helm/hpcc/templates/_helpers.tpl
#	helm/hpcc/templates/dafilesrv.yaml
#	helm/hpcc/templates/dali.yaml
#	helm/hpcc/templates/dfuserver.yaml
#	helm/hpcc/templates/eclagent.yaml
#	helm/hpcc/templates/eclccserver.yaml
#	helm/hpcc/templates/eclscheduler.yaml
#	helm/hpcc/templates/esp.yaml
#	helm/hpcc/templates/localroxie.yaml
#	helm/hpcc/templates/roxie.yaml
#	helm/hpcc/templates/sasha.yaml
#	helm/hpcc/templates/thor.yaml
#	version.cmake
  • Loading branch information
GordonSmith committed Oct 26, 2023
2 parents 4587048 + 3812f0d commit 2a4afe4
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions initfiles/sbin/hpcc_setenv.in
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,14 @@ umask ${OUMASK}

# use less heap when threaded
# but if set too low it can affect performance significantly
num_arenas=$num_cpus
if [ -z "$num_arenas" ] ; then
num_arenas=8
elif [ $num_arenas -lt 8 ] ; then
num_arenas=8
elif [ $num_arenas -gt 32 ] ; then
num_arenas=32
if [ -z "$MALLOC_ARENA_MAX" ]; then
if [ $num_cpus -gt 8 ]; then
num_arenas=8
else
num_arenas=$num_cpus
fi
export MALLOC_ARENA_MAX=$num_arenas
fi
export MALLOC_ARENA_MAX=$num_arenas

PATH_PREFIX=`cat ${HPCC_CONFIG} | sed -n "/\[${SECTION}\]/,/\[/p" | grep "^path *= *" | sed -e 's/^path *= *//'`

Expand Down

0 comments on commit 2a4afe4

Please sign in to comment.