kernel_optimize_test/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 add mm argument to pte/pmd/pud/pgd_free 2008-02-05 09:44:18 -08:00
avr32 read_current_timer() cleanups 2008-02-06 10:41:02 -08:00
blackfin timerfd: new timerfd API 2008-02-05 09:44:07 -08:00
cris arch/cris: add a missing iounmap 2008-02-05 09:44:24 -08:00
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 Merge branch 'for-linus' of git://git390.osdl.marist.edu/pub/scm/linux-2.6 2008-02-05 10:11:02 -08:00
sh timerfd: fix remaining architectures 2008-02-05 14:37:15 -08:00
sparc timerfd: new timerfd API 2008-02-05 09:44:07 -08:00
sparc64 get rid of NR_OPEN and introduce a sysctl_nr_open 2008-02-06 10:41:06 -08:00
um uml: make mconsole_stack namespace-aware 2008-02-05 09:44:32 -08:00
v850 Move Kconfig.instrumentation to arch/Kconfig and init/Kconfig 2008-02-03 08:58:08 +01:00
x86 read_current_timer() cleanups 2008-02-06 10:41:02 -08:00
xtensa Move Kconfig.instrumentation to arch/Kconfig and init/Kconfig 2008-02-03 08:58:08 +01:00
.gitignore arch: Ignore arch/i386 and arch/x86_64 2008-01-19 21:29:39 -08:00
Kconfig Move Kconfig.instrumentation to arch/Kconfig and init/Kconfig 2008-02-03 08:58:08 +01:00