Fix Python test malloc failure on SGX machine

Using tcmalloc could consume more heap. Enlarging kernel heap allocation
can fix this.
Also print result for Python test.
This commit is contained in:
Hui, Chunyang 2020-11-18 12:48:19 +00:00 committed by Zongmin.Gu
parent 1de089ac7d
commit 787df74be0
3 changed files with 7 additions and 1 deletions

@ -396,3 +396,6 @@ jobs:
- name: Run python support test
run: docker exec python_support_test bash -c "cd /root/occlum/demos/python; SGX_MODE=SIM ./run_python_on_occlum.sh"
- name: Check result
run: docker exec python_support_test bash -c "cd /root/occlum/demos/python/occlum_instance; cat smvlight.dat"

@ -297,6 +297,9 @@ jobs:
- name: Run python support test
run: docker exec python_support_test bash -c "cd /root/occlum/demos/python; ./run_python_on_occlum.sh"
- name: Check result
run: docker exec python_support_test bash -c "cd /root/occlum/demos/python/occlum_instance; cat smvlight.dat"
- name: Clean the environment
run: docker stop python_support_test

@ -35,7 +35,7 @@ if [ ! -d "image/lib/python3.7" ];then
cp -rf ../dataset image
cp -f ../demo.py image
new_json="$(jq '.resource_limits.user_space_size = "320MB" |
.resource_limits.kernel_space_heap_size = "192MB" |
.resource_limits.kernel_space_heap_size = "256MB" |
.process.default_mmap_size = "256MB"' Occlum.json)" && \
echo "${new_json}" > Occlum.json
occlum build