All of lore.kernel.org
 help / color / mirror / Atom feed
* + nr_open-should-be-raised-a-litle-bit.patch added to -mm tree
@ 2007-11-20  0:23 akpm
       [not found] ` <20071120004832.393cc5a8@the-village.bc.nu>
  0 siblings, 1 reply; 5+ messages in thread
From: akpm @ 2007-11-20  0:23 UTC (permalink / raw)
  To: mm-commits; +Cc: dada1, alan


The patch titled
     Increase NR_OPEN
has been added to the -mm tree.  Its filename is
     nr_open-should-be-raised-a-litle-bit.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: Increase NR_OPEN
From: Eric Dumazet <dada1@cosmosbay.com>

Time has come to change NR_OPEN value, some production servers hit the not
so 'ridiculously high value' of 1024*1024 file descriptors per process.

This is safe to raise this value, because alloc_fd_array() uses vmalloc()
for large arrays and vmalloc() returns NULL if a too large allocation is
attempted (or in case of memory shortage)

Moore law implies this limit should be changed every 1-2 years, and it
seems we forgot doing this for ages.

Even on my old notebook, a process can open 1000000 descriptors without any
problem.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 include/linux/fs.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN include/linux/fs.h~nr_open-should-be-raised-a-litle-bit include/linux/fs.h
--- a/include/linux/fs.h~nr_open-should-be-raised-a-litle-bit
+++ a/include/linux/fs.h
@@ -21,7 +21,7 @@
 
 /* Fixed constants first: */
 #undef NR_OPEN
-#define NR_OPEN (1024*1024)	/* Absolute upper limit on fd num */
+#define NR_OPEN (16*1024*1024)	/* Absolute upper limit on fd num */
 #define INR_OPEN 1024		/* Initial setting for nfile rlimits */
 
 #define BLOCK_SIZE_BITS 10
_

Patches currently in -mm which might be from dada1@cosmosbay.com are

git-net.patch
nr_open-should-be-raised-a-litle-bit.patch

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-11-28  7:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-20  0:23 + nr_open-should-be-raised-a-litle-bit.patch added to -mm tree akpm
     [not found] ` <20071120004832.393cc5a8@the-village.bc.nu>
     [not found]   ` <474291E7.5060700@cosmosbay.com>
     [not found]     ` <20071120001411.4db1eb04.akpm@linux-foundation.org>
     [not found]       ` <474420EE.4060603@cosmosbay.com>
     [not found]         ` <20071126201717.450e44eb.akpm@linux-foundation.org>
2007-11-27  7:09           ` [PATCH] get rid of NR_OPEN and introduce a sysctl_nr_open Eric Dumazet
2007-11-27  7:25             ` Valdis.Kletnieks
2007-11-27  7:58               ` Eric Dumazet
2007-11-28  7:52             ` [PATCH, v2] " Eric Dumazet

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.