[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: slapd runs out of open files (ITS#2813)

On Fri, Nov 07, 2003 at 03:24:55AM +0000, ckche@pacific.net.hk wrote:
> Hi,
> 	Is it possible to run slapd with more than 1024 file descriptors 
> in Red Hat 7.3 ? Is there any compile flag needed to build slapd which 
> supports more than 1024 file descriptors ?

This limit is not imposed by openldap. It's from glibc. OpenLDAP uses the
select() system call which, in a default glibc installation, can handle up
to 1024 descriptors. Increasing this limit can only be done by recompiling 
glibc with a bigger FD_SETSIZE.
Another alternative would be to port OpenLDAP to use poll() instead of
select(). poll() doesn't have such a limit.

Ralf Haferkamp
SUSE LINUX AG, Deutschherrnstrasse 15-19, D-90429 Nuernberg
T: +49-911-74053-0
F: +49-911-74053575 - Ralf.Haferkamp@suse.com