occlum/demos/fish/test_per_process_config.sh

14 lines
372 B
Bash
Executable File

#! /usr/bin/fish
ulimit -a
# ulimit defined below will overide configuration in Occlum.json
ulimit -Sv 102400 # virtual memory size 100M (including heap, stack, mmap size)
ulimit -Ss 10240 # stack size 10M
ulimit -Sd 40960 # heap size 40M
echo "ulimit result:"
ulimit -a
# A high-memory-consumption process
/usr/bin/busybox dd if=/dev/zero of=/root/test bs=40M count=2