Skip to content

Commit

Permalink
ppml-g jvm xms start from 1G (#4280)
Browse files Browse the repository at this point in the history
  • Loading branch information
glorysdj authored Mar 22, 2022
1 parent f2a8f88 commit 3c8ebf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ppml/trusted-big-data-ml/python/docker-graphene/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ case "$SPARK_K8S_CMD" in
elif [ "$SGX_ENABLED" == "true" ]; then
export SGX_MEM_SIZE=$SGX_DRIVER_MEM_SIZE && \
./init.sh && \
export spark_commnd="/opt/jdk8/bin/java -Xms$SGX_DRIVER_JVM_MEM_SIZE -Xmx$SGX_DRIVER_JVM_MEM_SIZE -cp "$SPARK_CLASSPATH" org.apache.spark.deploy.SparkSubmit --conf spark.driver.bindAddress=$SPARK_DRIVER_BIND_ADDRESS --deploy-mode client "$@"" && \
export spark_commnd="/opt/jdk8/bin/java -Xms1G -Xmx$SGX_DRIVER_JVM_MEM_SIZE -cp "$SPARK_CLASSPATH" org.apache.spark.deploy.SparkSubmit --conf spark.driver.bindAddress=$SPARK_DRIVER_BIND_ADDRESS --deploy-mode client "$@"" && \
echo $spark_commnd && \
SGX=1 ./pal_loader bash -c "export TF_MKL_ALLOC_MAX_BYTES=10737418240 && \
export _SPARK_AUTH_SECRET=$_SPARK_AUTH_SECRET && \
Expand Down Expand Up @@ -155,7 +155,7 @@ case "$SPARK_K8S_CMD" in
elif [ "$SGX_ENABLED" == "true" ]; then
export SGX_MEM_SIZE=$SGX_EXECUTOR_MEM_SIZE && \
./init.sh && \
export spark_commnd="/opt/jdk8/bin/java -Xms$SGX_EXECUTOR_JVM_MEM_SIZE -Xmx$SGX_EXECUTOR_JVM_MEM_SIZE "${SPARK_EXECUTOR_JAVA_OPTS[@]}" -cp "$SPARK_CLASSPATH" org.apache.spark.executor.CoarseGrainedExecutorBackend --driver-url $SPARK_DRIVER_URL --executor-id $SPARK_EXECUTOR_ID --cores $SPARK_EXECUTOR_CORES --app-id $SPARK_APPLICATION_ID --hostname $SPARK_EXECUTOR_POD_IP --resourceProfileId $SPARK_RESOURCE_PROFILE_ID" && \
export spark_commnd="/opt/jdk8/bin/java -Xms1G -Xmx$SGX_EXECUTOR_JVM_MEM_SIZE "${SPARK_EXECUTOR_JAVA_OPTS[@]}" -cp "$SPARK_CLASSPATH" org.apache.spark.executor.CoarseGrainedExecutorBackend --driver-url $SPARK_DRIVER_URL --executor-id $SPARK_EXECUTOR_ID --cores $SPARK_EXECUTOR_CORES --app-id $SPARK_APPLICATION_ID --hostname $SPARK_EXECUTOR_POD_IP --resourceProfileId $SPARK_RESOURCE_PROFILE_ID" && \
echo $spark_commnd && \
SGX=1 ./pal_loader bash -c "export TF_MKL_ALLOC_MAX_BYTES=10737418240 && \
export _SPARK_AUTH_SECRET=$_SPARK_AUTH_SECRET && \
Expand Down

0 comments on commit 3c8ebf5

Please sign in to comment.