linux/arch
Eric Dumazet 9cfe015aa4 get rid of NR_OPEN and introduce a sysctl_nr_open
NR_OPEN (historically set to 1024*1024) actually forbids processes to open
more than 1024*1024 handles.

Unfortunatly some production servers hit the not so 'ridiculously high
value' of 1024*1024 file descriptors per process.

Changing NR_OPEN is not considered safe because of vmalloc space potential
exhaust.

This patch introduces a new sysctl (/proc/sys/fs/nr_open) wich defaults to
1024*1024, so that admins can decide to change this limit if their workload
needs it.

[akpm@linux-foundation.org: export it for sparc64]
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-02-06 10:41:06 -08:00
..
alpha get rid of NR_OPEN and introduce a sysctl_nr_open 2008-02-06 10:41:06 -08:00
arm
avr32 read_current_timer() cleanups 2008-02-06 10:41:02 -08:00
blackfin
cris
frv timerfd: fix remaining architectures 2008-02-05 14:37:15 -08:00
h8300 proper show_interrupts() prototype 2008-02-06 10:41:02 -08:00
ia64 Remove pointless casts from void pointers 2008-02-06 10:41:01 -08:00
m32r timerfd: fix remaining architectures 2008-02-05 14:37:15 -08:00
m68k cleanup after APUS removal 2008-02-06 10:41:01 -08:00
m68knommu Remove inclusions of <linux/autoconf.h> 2008-02-06 10:41:00 -08:00
mips get rid of NR_OPEN and introduce a sysctl_nr_open 2008-02-06 10:41:06 -08:00
parisc alpha/parisc: remove config variable DEBUG_RWLOCK 2008-02-06 10:41:03 -08:00
powerpc taskstats scaled time cleanup 2008-02-06 10:41:00 -08:00
ppc scheduled OSS driver removal 2008-02-06 10:41:02 -08:00
s390
sh timerfd: fix remaining architectures 2008-02-05 14:37:15 -08:00
sparc
sparc64 get rid of NR_OPEN and introduce a sysctl_nr_open 2008-02-06 10:41:06 -08:00
um
v850
x86 read_current_timer() cleanups 2008-02-06 10:41:02 -08:00
xtensa
.gitignore
Kconfig