[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: set max number of open file descriptor.
>I'm using kernel 2.2.18 and I want to know how
>can I set the number of open file descriptor.
>
>is changing NR_FILE and NR_OPEN etc in include/linux/fs.h the correct way
>of doing this.. or I can do this dynamically using some file in /proc.
you don't need to change the system headers. If your requirement is process
based i.e. you want lots of descriptor in any particular process then use
syscall setrlimit otherwise for any user set it in
/etc/security/limits.conf.
but there is a limit on that like default value is NR_OPEN
If above does not satisfies your then increament the NR_OPEN value.
Regards,
Anil.
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/
IRC Channel: irc.openprojects.net / #kernelnewbies
Web Page: http://www.surriel.com/kernelnewbies.shtml