[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: sanity check on updating from HDB backend to MDB
- To: openldap-technical@openldap.org
- Subject: Re: sanity check on updating from HDB backend to MDB
- From: Christopher Wood <christopher_wood@pobox.com>
- Date: Tue, 12 Aug 2014 15:47:10 -0400
- Content-disposition: inline
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=date:from:to :subject:message-id:references:mime-version:content-type :in-reply-to; s=sasl; bh=IXV/TSCSO277D+2Rv1LInrURlv0=; b=SEpIvB7 WgivPSsDpBQxb/lkHgRTXDRHgsqaSELx96lcg5kjEMovZt3aZOpoi9SONzhGncd2 dvb3/Oab97BKddTWsO0ejZlujBszjK04LlMjwe6nbIXWlfMvgGR1o86hwJc5QBVr zNgY6Ynd07hO6ipfjUTi/pQRak/AoNzwbhGQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=pobox.com; h=date:from:to :subject:message-id:references:mime-version:content-type :in-reply-to; q=dns; s=sasl; b=bxeU9yGMWobvshVkT3Y54kmFd4Kgqekbm jQSaCKH8O7aQEtNVQqLwQUUTXNKN3w0Wx8hYVZsCcsEWg62S97GmxBKmcoq4HMhp j1DsuAClmcnNWMUcUDdslXks+l7khquW3gFehdbQAchPTKOMYhdZFh60qkb/Zngn G4kGI1eKJQ=
- In-reply-to: <20140812192257.GA54292@numachi.com>
- References: <20140812173223.GA29275@numachi.com> <53EA5923.6020008@symas.com> <20140812180420.GB30182@numachi.com> <20140812192257.GA54292@numachi.com>
- User-agent: Mutt/1.5.21 (2010-09-15)
On Tue, Aug 12, 2014 at 03:22:57PM -0400, Brian Reichert wrote:
> On Tue, Aug 12, 2014 at 02:04:20PM -0400, Brian Reichert wrote:
> > On Tue, Aug 12, 2014 at 11:12:51AM -0700, Howard Chu wrote:
> > > While that search is running you should see slapd at 100% CPU. If not, then
> > > something in your system is throttling your connection.
> >
> > And it is not at 100%. 'top' shows slapd on this host is only at ~50%.
> >
> > I'll review the 'threads' setting.
>
> Progress!
>
> The 'ldap' user has no system limits set on it:
>
> # setuidgid ldap sh -c ulimit -a
> unlimited
>
> I have 2 CPUs with 4 cores each:
>
> # grep "^physical id" /proc/cpuinfo | sort -u | wc -l
> 2
> # grep "^cpu cores" /proc/cpuinfo | sort -u
> cpu cores : 4
>
> This page recommends:
>
> http://www.openldap.org/doc/admin24/tuning.html#{{slapd}}%288%29%20Threads
>
> This value should generally be a function of the number of "real"
> cores on the system, for example on a server with 2 CPUs with one
> core each, set this to 8, or 4 threads per real core.
>
> Assuming 'real core' == CPU, in my case, I think this should be 8
> (4 * 2 physical CPUs). Is that correct?
>
> It was set to 32 (I have no idea why), and 'top' showed ~50%.
>
> When I changed threads to '8', my query times dropped to ~22 seconds,
> which is _much_ better than the 175 I was seeing.
>
> 'top' still shows slapd only using %50, so I hazard that it keeps
> to one CPU. Is that a valid assumption?
Try pressing "1" to have top show individual CPUs.
> Could this mdb database perform better? It's outperforming my bdb
> backend by %25, which isn't too shabby, but I'm curious if this
> sort of performance increase is typical...
>
> --
> Brian Reichert <reichert@numachi.com>
> BSD admin/developer at large
>