From caa79bf25f2bcef238a8b6c89d86f7433a776673 Mon Sep 17 00:00:00 2001 From: Tim Gardner Date: Tue, 29 Mar 2011 17:24:40 -0600 Subject: [PATCH] UBUNTU: SAUCE: Increase the default hard limit for open FDs to 4096 BugLink: http://bugs.launchpad.net/bugs/663090 This presumes that INR_OPEN is 1024. Signed-off-by: Tim Gardner --- include/asm-generic/resource.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/asm-generic/resource.h b/include/asm-generic/resource.h index 587566f..b57e3a8 100644 --- a/include/asm-generic/resource.h +++ b/include/asm-generic/resource.h @@ -78,7 +78,7 @@ [RLIMIT_CORE] = { 0, RLIM_INFINITY }, \ [RLIMIT_RSS] = { RLIM_INFINITY, RLIM_INFINITY }, \ [RLIMIT_NPROC] = { 0, 0 }, \ - [RLIMIT_NOFILE] = { INR_OPEN, INR_OPEN }, \ + [RLIMIT_NOFILE] = { INR_OPEN, INR_OPEN*4 }, \ [RLIMIT_MEMLOCK] = { MLOCK_LIMIT, MLOCK_LIMIT }, \ [RLIMIT_AS] = { RLIM_INFINITY, RLIM_INFINITY }, \ [RLIMIT_LOCKS] = { RLIM_INFINITY, RLIM_INFINITY }, \ -- 1.7.10.4