Skip to content

Commit

Permalink
Add UseContainerSupport flag for MMS to see all available CPUs from w…
Browse files Browse the repository at this point in the history
…ithin the container
  • Loading branch information
mxnet-sdk-team-mms committed Mar 25, 2021
1 parent 6610a41 commit d86864d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion artifacts/config.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
vmargs=-Xmx128m -XX:-UseLargePages -XX:+UseG1GC -XX:MaxMetaspaceSize=32M -XX:MaxDirectMemorySize=10m -XX:+ExitOnOutOfMemoryError
vmargs=-Xmx128m -XX:-UseLargePages -XX:+UseG1GC -XX:MaxMetaspaceSize=32M -XX:MaxDirectMemorySize=10m -XX:+ExitOnOutOfMemoryError -XX:-UseContainerSupport
model_store=/opt/ml/model
load_models=ALL
inference_address=http://0.0.0.0:8080
Expand Down
2 changes: 1 addition & 1 deletion docker/1.2.0/py2/config.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
vmargs=-Xmx128m -XX:-UseLargePages -XX:+UseG1GC -XX:MaxMetaspaceSize=32M -XX:MaxDirectMemorySize=10m -XX:+ExitOnOutOfMemoryError
vmargs=-Xmx128m -XX:-UseLargePages -XX:+UseG1GC -XX:MaxMetaspaceSize=32M -XX:MaxDirectMemorySize=10m -XX:+ExitOnOutOfMemoryError -XX:-UseContainerSupport
model_store=/opt/ml/model
load_models=ALL
inference_address=http://0.0.0.0:8080
Expand Down
2 changes: 1 addition & 1 deletion docker/1.2.0/py3/config.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
vmargs=-Xmx128m -XX:-UseLargePages -XX:+UseG1GC -XX:MaxMetaspaceSize=32M -XX:MaxDirectMemorySize=10m -XX:+ExitOnOutOfMemoryError
vmargs=-Xmx128m -XX:-UseLargePages -XX:+UseG1GC -XX:MaxMetaspaceSize=32M -XX:MaxDirectMemorySize=10m -XX:+ExitOnOutOfMemoryError -XX:-UseContainerSupport
model_store=/opt/ml/model
load_models=ALL
inference_address=http://0.0.0.0:8080
Expand Down
2 changes: 1 addition & 1 deletion docker/build_artifacts/config.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
vmargs=-Xmx128m -XX:-UseLargePages -XX:+UseG1GC -XX:MaxMetaspaceSize=32M -XX:MaxDirectMemorySize=10m -XX:+ExitOnOutOfMemoryError
vmargs=-Xmx128m -XX:-UseLargePages -XX:+UseG1GC -XX:MaxMetaspaceSize=32M -XX:MaxDirectMemorySize=10m -XX:+ExitOnOutOfMemoryError -XX:-UseContainerSupport
model_store=/opt/ml/model
load_models=ALL
inference_address=http://0.0.0.0:8080
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Based on https://github.com/pytorch/serve/blob/master/docs/configuration.md
vmargs=-XX:-UseContainerSupport
enable_envvars_config=true
decode_input_request=false
load_models=ALL

0 comments on commit d86864d

Please sign in to comment.