Fix grpc pingpong test
This commit is contained in:
parent
70d3bf690c
commit
0a367784cb
3
.github/workflows/demo_test.yml
vendored
3
.github/workflows/demo_test.yml
vendored
@ -76,8 +76,9 @@ jobs:
|
|||||||
- name: Run Golang grpc ping test
|
- name: Run Golang grpc ping test
|
||||||
run: |
|
run: |
|
||||||
sleep ${{ env.nap_time }};
|
sleep ${{ env.nap_time }};
|
||||||
docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/golang/grpc_pingpong && SGX_MODE=SIM ./run_ping_on_occlum.sh" &
|
docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/golang/grpc_pingpong && SGX_MODE=SIM ./run_ping_on_occlum.sh"
|
||||||
|
|
||||||
|
# This is for the go web_server test
|
||||||
- name: Curl test
|
- name: Curl test
|
||||||
run: |
|
run: |
|
||||||
sleep ${{ env.nap_time }};
|
sleep ${{ env.nap_time }};
|
||||||
|
@ -16,12 +16,11 @@ fi
|
|||||||
rm -rf occlum_ping_instance && mkdir occlum_ping_instance
|
rm -rf occlum_ping_instance && mkdir occlum_ping_instance
|
||||||
cd occlum_ping_instance
|
cd occlum_ping_instance
|
||||||
occlum init
|
occlum init
|
||||||
new_json="$(jq '.resource_limits.user_space_size = "2560MB" |
|
new_json="$(jq '.resource_limits.user_space_size = "800MB" |
|
||||||
.resource_limits.kernel_space_heap_size="320MB" |
|
.resource_limits.kernel_space_heap_size="40MB" |
|
||||||
.resource_limits.kernel_space_stack_size="10MB" |
|
.resource_limits.kernel_space_stack_size="1MB" |
|
||||||
.process.default_stack_size = "40MB" |
|
.process.default_stack_size = "1MB" |
|
||||||
.process.default_heap_size = "320MB" |
|
.process.default_heap_size = "20MB" ' Occlum.json)" && \
|
||||||
.process.default_mmap_size = "960MB" ' Occlum.json)" && \
|
|
||||||
echo "${new_json}" > Occlum.json
|
echo "${new_json}" > Occlum.json
|
||||||
|
|
||||||
# 2. Copy program into Occlum Workspace and build
|
# 2. Copy program into Occlum Workspace and build
|
||||||
|
@ -16,12 +16,11 @@ fi
|
|||||||
rm -rf occlum_pong_instance && mkdir occlum_pong_instance
|
rm -rf occlum_pong_instance && mkdir occlum_pong_instance
|
||||||
cd occlum_pong_instance
|
cd occlum_pong_instance
|
||||||
occlum init
|
occlum init
|
||||||
new_json="$(jq '.resource_limits.user_space_size = "2560MB" |
|
new_json="$(jq '.resource_limits.user_space_size = "800MB" |
|
||||||
.resource_limits.kernel_space_heap_size="320MB" |
|
.resource_limits.kernel_space_heap_size="40MB" |
|
||||||
.resource_limits.kernel_space_stack_size="10MB" |
|
.resource_limits.kernel_space_stack_size="1MB" |
|
||||||
.process.default_stack_size = "40MB" |
|
.process.default_stack_size = "1MB" |
|
||||||
.process.default_heap_size = "320MB" |
|
.process.default_heap_size = "20MB" ' Occlum.json)" && \
|
||||||
.process.default_mmap_size = "960MB" ' Occlum.json)" && \
|
|
||||||
echo "${new_json}" > Occlum.json
|
echo "${new_json}" > Occlum.json
|
||||||
|
|
||||||
# 2. Copy program into Occlum Workspace and build
|
# 2. Copy program into Occlum Workspace and build
|
||||||
|
Loading…
Reference in New Issue
Block a user