diff options
author | Tim Gardner <tim.gardner@canonical.com> | 2011-05-24 20:13:05 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-05-25 11:39:43 -0400 |
commit | 0ac1ee0bfec2a4ad118f907ce586d0dfd8db7641 (patch) | |
tree | 630d3fead5040b26bfdb1328a18fc0ad3b09f88b /include/asm-generic/resource.h | |
parent | db271cf03f5fe39feab8e1b1818c0880c7290c5c (diff) |
ulimit: raise default hard ulimit on number of files to 4096
Apps are increasingly using more than 1024 file descriptors. See
discussion in several distro bug trackers, e.g. BugLink:
http://bugs.launchpad.net/bugs/663090
https://issues.rpath.com/browse/RPL-2054
You don't want to raise the default soft limit, since that might break
apps that use select(), but it's safe to raise the default hard limit;
that way, apps that know they need lots of file descriptors can raise
their soft limit without needing root, and without user intervention.
Ubuntu is doing this with a kernel change because they have a policy of
not changing kernel defaults in userland.
While 4096 might not be enough for *all* apps, it seems to be plenty for
the apps I've seen lately that are unhappy with 1024.
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Cc: Dan Kegel <dank@kegel.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-generic/resource.h')
-rw-r--r-- | include/asm-generic/resource.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-generic/resource.h b/include/asm-generic/resource.h index 587566f95f6c..61fa862fe08d 100644 --- a/include/asm-generic/resource.h +++ b/include/asm-generic/resource.h | |||
@@ -78,7 +78,7 @@ | |||
78 | [RLIMIT_CORE] = { 0, RLIM_INFINITY }, \ | 78 | [RLIMIT_CORE] = { 0, RLIM_INFINITY }, \ |
79 | [RLIMIT_RSS] = { RLIM_INFINITY, RLIM_INFINITY }, \ | 79 | [RLIMIT_RSS] = { RLIM_INFINITY, RLIM_INFINITY }, \ |
80 | [RLIMIT_NPROC] = { 0, 0 }, \ | 80 | [RLIMIT_NPROC] = { 0, 0 }, \ |
81 | [RLIMIT_NOFILE] = { INR_OPEN, INR_OPEN }, \ | 81 | [RLIMIT_NOFILE] = { INR_OPEN_CUR, INR_OPEN_MAX }, \ |
82 | [RLIMIT_MEMLOCK] = { MLOCK_LIMIT, MLOCK_LIMIT }, \ | 82 | [RLIMIT_MEMLOCK] = { MLOCK_LIMIT, MLOCK_LIMIT }, \ |
83 | [RLIMIT_AS] = { RLIM_INFINITY, RLIM_INFINITY }, \ | 83 | [RLIMIT_AS] = { RLIM_INFINITY, RLIM_INFINITY }, \ |
84 | [RLIMIT_LOCKS] = { RLIM_INFINITY, RLIM_INFINITY }, \ | 84 | [RLIMIT_LOCKS] = { RLIM_INFINITY, RLIM_INFINITY }, \ |