Skip to content

Commit

Permalink
Merge pull request #30 from redhat-performance/increase_stack
Browse files Browse the repository at this point in the history
Increase stack size if need be.
  • Loading branch information
dvalinrh authored Oct 31, 2023
2 parents adac437 + ee53de2 commit 5150513
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion specjbb/specjbb_extra/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,18 @@ else
xss_value="-Xss330k"
fi

#
# We need to increase the stack size when wcpus is over 256. The smaller stack size
# will cause specjbb to terminate early. We do not want to make the larger stack
# size as it will cause issues with the smaller cloud systems.
#
if [ $wcpus -gt 256 ]; then
stacksize=16384m
else
stacksize=8192m
fi
echo "$java -Xms${stacksize} -Xmx${stacksize} $xss_value -XX:+UseParallelOldGC $aggressive -XX:+UseBiasedLocking -XX:+UseCompressedOops -XX:SurvivorRatio=24 spec.jbb.JBBmain -propfile $PROPS_FILE" >> /tmp/dave1
$java \
-Xms8192m -Xmx8192m $xss_value -XX:+UseParallelOldGC $aggressive -XX:+UseBiasedLocking -XX:+UseCompressedOops -XX:SurvivorRatio=24 spec.jbb.JBBmain -propfile $PROPS_FILE
-Xms${stacksize} -Xmx${stacksize} $xss_value -XX:+UseParallelOldGC $aggressive -XX:+UseBiasedLocking -XX:+UseCompressedOops -XX:SurvivorRatio=24 spec.jbb.JBBmain -propfile $PROPS_FILE
date
exit $?

0 comments on commit 5150513

Please sign in to comment.