UBUNTU: SAUCE: Increase the default hard limit for open FDs to 4096
authorTim Gardner <tim.gardner@canonical.com>
Tue, 29 Mar 2011 23:24:40 +0000 (17:24 -0600)
committerLeann Ogasawara <leann.ogasawara@canonical.com>
Tue, 5 Apr 2011 16:36:53 +0000 (09:36 -0700)
BugLink: http://bugs.launchpad.net/bugs/663090

This presumes that INR_OPEN is 1024.

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

include/asm-generic/resource.h

index 587566f..b57e3a8 100644 (file)
@@ -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 },   \