[Date Prev][Date Next]
Re: slapd size and file descriptors
Quanah Gibson-Mount wrote:
--On Wednesday, February 27, 2008 8:51 PM -0800 Howard Chu<firstname.lastname@example.org>
No, this is not OS dependent at all. slapd allocates its own Connection
array based on the number of available descriptors. There's nothing
unusual going on here, though 500K+ descriptors seems a bit excessive.
Unless you have a server listening on multiple network interfaces, the
most connections you're likely to get is 32768 or shy of 65536, depending
on OS. You should really think about what you're trying to accomplish and
what the realistic constraints actually are.
On deployments with multi-million users (of which we have), it is not
unreasonable that between slapd/imap/pop/mysql etc for there to be a need
for a high number of file descriptors in use for the zimbra user. However,
I think it may be reasonable to break slapd out into its own user, so it
can use a reduced set of file descriptors.
There are only 65535 possible TCP/IP port numbers. On any given network
interface, a number of those ports will be in use by other services, some are
just reserved, and a number of them will be in use by outbound connections.
Again, unless your machine has more than 8 active network interfaces, it's
impossible to even have that many incoming connections. No matter how many
millions of users you have.
This configuration is totally illogical. Even Google was only running their
OpenLDAP installations with 3072 connections, and I doubt you're getting more
load than gmail...
-- Howard Chu
Chief Architect, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/