Zdraveite tui kato namerih nachina redno e da go spoedelq s
vas. Znachi ako ste s kernel 2.6.* i glibc 2.3.* to eto tova
e dostatuchno:
1. Change the value of __FD_SETSIZE to the maximum you want.
This value should be changed in:
* /usr/include/bits/typesizes.h
* /usr/include/nptl/bits/typesizes.h
* /usr/include/linux/posixtypes.h (or
/usr/include/linux/posix_types.h on Suse linux)
2. Rebuild the kernel with following commands:
# make menuconfig (nothing to change just type Exit then
Save)
# make
# make modules
# make install
# make modules_install
and then restart:
# reboot
4. Make sure that /proc/sys/fs/file-max (total number of
files that can be opened by all users) is large enough.
To check, you can: cat /proc/sys/fs/file-max
If you need to increase it, modify /etc/sysctl.conf and
add: fs.file-max = <some big number>
and then execute sysctl -p. Most likely you will not
have to make any changes here.
5. Edit /etc/security/limits.conf and add: <user name> hard
nofile <the handle limit you want> (no larger than the
__FD_SETSIZE value from above).
Example:
* soft nofile 12000
* hard nofile 65536
6. Edit /etc/profile and add:
ulimit -n 12000
|