occlum/demos/fish/test_per_process_config.sh
Hui, Chunyang 79b264a6c8 Add support for Address Space Layout Randomization
ASLR is only enabled on release mode. Also manage the whole process
VM with VMManager.
2021-02-24 14:46:41 +08:00

14 lines
372 B
Bash
Executable File

#! /usr/bin/fish
ulimit -a
# ulimit defined below will overide configuration in Occlum.json
ulimit -Sv 122880 # virtual memory size 120M (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