Thread (4 messages) 4 messages, 3 authors, 2012-12-05

Max open file limit

From: kirjanov@gmail.com (Denis Kirjanov)
Date: 2012-12-05 12:07:06

#define INR_OPEN_CUR 1024       /* Initial setting for nfile rlimits */


On 12/5/12, Vijay Chauhan [off-list ref] wrote:
Hello,

How many files a process can open at a time? Is it configurable?

I found following in the kernel code:

..
  .max_fds        = NR_OPEN_DEFAULT,
..
..
#define NR_OPEN_DEFAULT BITS_PER_LONG
..
..
#ifdef __KERNEL__
#define BITS_PER_LONG 32
..

But I can open more than 32 files in my user space program.

Thank you,
Vijay

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

-- 
Regards,
Denis
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help