[Pkg-openldap-devel] Bug#378261: slapd fails under heavy load due to descriptor limit
Russ Allbery
rra at debian.org
Fri Dec 21 06:32:16 UTC 2007
The problem here is only on 32-bit Linux, where the file descriptor set
size is capped by default at 1024. It looks like OpenLDAP is already
increasing this to 4096, since I see no sign of that number anywhere in
glibc's default headers and include/ac/fdset.h has:
#if !defined( OPENLDAP_FD_SETSIZE ) && !defined( FD_SETSIZE )
# define OPENLDAP_FD_SETSIZE 4096
#endif
#ifdef OPENLDAP_FD_SETSIZE
/* assume installer desires to enlarge fd_set */
# ifdef HAVE_BITS_TYPES_H
# include <bits/types.h>
# endif
# ifdef __FD_SETSIZE
# undef __FD_SETSIZE
# define __FD_SETSIZE OPENLDAP_FD_SETSIZE
# else
# define FD_SETSIZE OPENLDAP_FD_SETSIZE
# endif
#endif
I don't see much drawback to bumping this to 8192, which seems to be what
the thread is requesting. Did I miss anything here?
--
Russ Allbery (rra at debian.org) <http://www.eyrie.org/~eagle/>
More information about the Pkg-openldap-devel
mailing list