Max open file limit

Vijay Chauhan kernel.vijay at gmail.com
Wed Dec 5 06:08:40 EST 2012


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



More information about the Kernelnewbies mailing list