anon-cow-*-mt: reduce unit_size to 1/4 mem
Though this is a thread test, we will still fork once: the main process will
prealloc and prefault unit_size memory and then fork a child to create threads.
Then the child process will pthread_create() multiple threads and consume
another unit_size memory. So if unit_size is 1/2 mem, the main process and
its child process will consume all memory, which will easily cause OOM.
Fix this by reducing default unit_size to 1/4 memory.
Reported-by: Philip Li <philip.li@intel.com>
Reported-by: Li Zhijian <zhijianx.li@intel.com>
Signed-off-by: Aaron Lu <aaron.lu@intel.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
2 files changed