[Date Prev][Date Next]
RE: Maximum size of the primary thread pool
Thanks Howard - I'll vary the pool size and watch the impact under load.
One more question regarding threads - is there a relation between the
concurrency directive and the threads directive in slapd.conf?
Genesys Telecommunications Lab, Inc
From: Howard Chu [mailto:firstname.lastname@example.org]
Sent: Thursday, February 08, 2007 3:45 PM
To: Rajarshi Chaudhuri
Subject: Re: Maximum size of the primary thread pool
Rajarshi Chaudhuri wrote:
> Maximum size of the primary thread pool - the default is 16. Is it
> recommended to increase this value to higher ones like 32/64 etc.
We would never recommend any particular value for any particular
Without knowing the specifics of a system environment and usage
such recommendations would be meaningless.
> there any loose relation between the RAM and OS and the thread pool
> that I need to consider.
Yes, each thread uses 4 or 8MB of memory for its runtime stack. (8MB on
bit machines). Plus there are a variety of other modules that allocate
on a per-thread basis.
> Simply, is there any guideline on this thread pool size and it's
The guideline is "test your server at varying configurations and choose
works best for you." The effectiveness of threading varies with machine
architecture, OS revision, and C library revision. Increasing the thread
count eventually reaches a point of zero-gain as the thread scheduling
overhead starts to overshadow the time spent actually executing user
This is a fundamental feature of threading, on any system with any
> Rajarshi Chaudhuri
> Genesys Telecommunications Lab, Inc
> email@example.com <mailto:firstname.lastname@example.org>
-- 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/