### specjbb is executed with one JVM running per-NUMA node in the system
### and a total heap size configured to be 60% of memory.

# MM Test Parameters
export MMTESTS="specjbb"

# List of monitors
export RUN_MONITOR=yes
export MONITORS_ALWAYS=
export MONITORS_GZIP="proc-vmstat top numa-numastat numa-meminfo numa-convergence"
export MONITORS_WITH_LATENCY="vmstat iostat"
export MONITOR_UPDATE_FREQUENCY=10

# SPECjbb - max heap 60% of memory.
# Total heap is divided between number of instances
export SPECJBB_JRE=/opt/java/jre/bin
export SPECJBB_STARTING_WAREHOUSES=1
export SPECJBB_INCREMENT_WAREHOUSES=1
export SPECJBB_ENDING_WAREHOUSES=$((NUMCPUS/NUMNODES))
export SPECJBB_JVM_INSTANCES=$NUMNODES
export SPECJBB_MAXHEAP_TOTAL_MB=$((MEMTOTAL_BYTES*6/10/1048576))
export SPECJBB_MAXHEAP=-Xmx$(($SPECJBB_MAXHEAP_TOTAL_MB/$SPECJBB_JVM_INSTANCES))m
export SPECJBB_PAGESIZES="default"
#export SPECJBB_PAGESIZES="base huge"
export SPECJBB_HUGESWITCH=-Xlp

if [ $NUMNODES -eq 1 ]; then
	echo Skipping multi-JVM test configuration on single node machine
	exit $SHELLPACK_SUCCESS
fi
