START sys/kern/fork-exit 2024-04-15T16:03:45Z ==== run-fork1-exit ==== cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -MD -MP -c /usr/src/regress/sys/kern/fork-exit/fork-exit.c cc -o fork-exit fork-exit.o -lpthread # test forking a single child ulimit -p 500 -n 1000; ./fork-exit ==== run-fork-exit ==== # fork 300 children and kill them simultaneously as process group ulimit -p 500 -n 1000; ./fork-exit -p 300 ==== run-fork-exec-exit ==== # fork 300 children, exec sleep programs, and kill process group ulimit -p 500 -n 1000; ./fork-exit -e -p 300 ==== run-fork1-thread1 ==== # fork a single child and create one thread ulimit -p 500 -n 1000; ./fork-exit -t 1 ==== run-fork1-thread ==== # fork a single child and create 1000 threads ulimit -p 500 -n 1000; ./fork-exit -t 1000 ==== run-fork-thread ==== # fork 30 children each with 30 threads and kill process group ulimit -p 500 -n 1000; ./fork-exit -p 30 -t 30 ==== run-fork1-heap ==== # allocate 400 MB of heap memory ulimit -p 500 -n 1000; ./fork-exit -h 100000 ==== run-fork-heap ==== # allocate 400 MB of heap memory in processes ulimit -p 500 -n 1000; ./fork-exit -p 100 -h 1000 ==== run-fork1-thread1-heap ==== # allocate 400 MB of heap memory in single child and one thread ulimit -p 500 -n 1000; ./fork-exit -t 1 -h 100000 ==== run-fork-thread-heap ==== # allocate 400 MB of heap memory in threads ulimit -p 500 -n 1000; ./fork-exit -p 10 -t 100 -h 100 ==== run-fork1-stack ==== # allocate 32 MB of stack memory ulimit -p 500 -n 1000; ulimit -s 32768; ./fork-exit -s 8000 ==== run-fork-stack ==== # allocate 400 MB of stack memory in processes ulimit -p 500 -n 1000; ulimit -s 32768; ./fork-exit -p 100 -s 1000 ==== run-fork1-thread1-stack ==== # allocate 400 MB of stack memory in single child and one thread ulimit -p 500 -n 1000; ./fork-exit -t 1 -s 100000 ==== run-fork-thread-stack ==== # allocate 400 MB of stack memory in threads ulimit -p 500 -n 1000; ./fork-exit -p 10 -t 100 -s 100 ==== cleanup ==== # check that all processes have been terminated and waited for ! pkill -u `id -u` fork-exit PASS sys/kern/fork-exit Duration 0m11.35s