From f53f0a27a73ba81039e7d33cce168cbe82d5e0c5 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 16 Aug 2013 11:17:30 +0100 Subject: [PATCH] wrapper: Increase some resource limits to allow modern OCaml 4 to run. --- ocamlbotwrapper.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 1.8.3.1