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:
parent
1de089ac7d
commit
787df74be0
3
.github/workflows/demo_test.yml
vendored
3
.github/workflows/demo_test.yml
vendored
@ -396,3 +396,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Run python support test
|
- 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"
|
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"
|
||||||
|
3
.github/workflows/hw_mode_test.yml
vendored
3
.github/workflows/hw_mode_test.yml
vendored
@ -297,6 +297,9 @@ jobs:
|
|||||||
- name: Run python support test
|
- name: Run python support test
|
||||||
run: docker exec python_support_test bash -c "cd /root/occlum/demos/python; ./run_python_on_occlum.sh"
|
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
|
- name: Clean the environment
|
||||||
run: docker stop python_support_test
|
run: docker stop python_support_test
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ if [ ! -d "image/lib/python3.7" ];then
|
|||||||
cp -rf ../dataset image
|
cp -rf ../dataset image
|
||||||
cp -f ../demo.py image
|
cp -f ../demo.py image
|
||||||
new_json="$(jq '.resource_limits.user_space_size = "320MB" |
|
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)" && \
|
.process.default_mmap_size = "256MB"' Occlum.json)" && \
|
||||||
echo "${new_json}" > Occlum.json
|
echo "${new_json}" > Occlum.json
|
||||||
occlum build
|
occlum build
|
||||||
|
Loading…
Reference in New Issue
Block a user