From: Richard W.M. Jones Date: Fri, 16 Aug 2013 10:17:30 +0000 (+0100) Subject: wrapper: Increase some resource limits to allow modern OCaml 4 to run. X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=xavierbot.git wrapper: Increase some resource limits to allow modern OCaml 4 to run. --- diff --git a/ocamlbotwrapper.c b/ocamlbotwrapper.c index 27c334f..8793134 100644 --- a/ocamlbotwrapper.c +++ b/ocamlbotwrapper.c @@ -43,7 +43,7 @@ main () /* Set some limits. */ #ifdef RLIMIT_AS - lim.rlim_cur = lim.rlim_max = 32 * 1024 * 1024; /* bytes!?! */ + lim.rlim_cur = lim.rlim_max = 256 * 1024 * 1024; /* bytes!?! */ setrlimit (RLIMIT_AS, &lim); #endif #ifdef RLIMIT_CORE @@ -51,7 +51,7 @@ main () setrlimit (RLIMIT_CORE, &lim); #endif #ifdef RLIMIT_CPU - lim.rlim_cur = lim.rlim_max = 10; /* seconds */ + lim.rlim_cur = lim.rlim_max = 60; /* seconds */ setrlimit (RLIMIT_CPU, &lim); #endif #ifdef RLIMIT_MEMLOCK @@ -63,7 +63,7 @@ main () setrlimit (RLIMIT_MSGQUEUE, &lim); #endif #ifdef RLIMIT_NOFILE - lim.rlim_cur = lim.rlim_max = 10; + lim.rlim_cur = lim.rlim_max = 32; setrlimit (RLIMIT_NOFILE, &lim); #endif #ifdef RLIMIT_NPROC @@ -75,7 +75,7 @@ main () setrlimit (RLIMIT_SIGPENDING, &lim); #endif #ifdef RLIMIT_STACK - lim.rlim_cur = lim.rlim_max = 8 * 1024 * 1024; /* bytes */ + lim.rlim_cur = lim.rlim_max = 32 * 1024 * 1024; /* bytes */ setrlimit (RLIMIT_STACK, &lim); #endif