[PATCH] NR_OPEN should be raised a litle bit

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: Linux kernel <linux-kernel@...>
Date: Friday, November 16, 2007 - 5:53 pm

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>
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] NR_OPEN should be raised a litle bit, Eric Dumazet, (Fri Nov 16, 5:53 pm)
Re: [PATCH] NR_OPEN should be raised a litle bit, Alan Cox, (Fri Nov 16, 7:49 pm)
Re: [PATCH] NR_OPEN should be raised a litle bit, Eric Dumazet, (Sat Nov 17, 5:15 am)