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

RE: thread problem OpenLDAP 2.1.8 + Solaris 9



> -----Original Message-----
> From: owner-openldap-software@OpenLDAP.org
> [mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of Kurt D. Zeilenga

> Other things to look at:
>         - ACLs... avoid unnecesary regex'ing
>         - REGEX... make sure you are using a good REGEX library
>                 (some Solaris versions suck)
>         - Logging (disable synchronous logging, only log
> minimal stuff)

Just echoing this - syslog() takes a huge toll on performance. On a
single-CPU machine with local log targets, the syslog daemon will eat up more
CPU and I/O resources than slapd itself. This is because syslogd always
flushes its disk buffers for every individual message it logs. I haven't
tested using a remote log destination; it may be cheaper since the remote
syslog protocol uses UDP, so there would be no filesystem impact.

The fact that slapd is able to send debugging/diagnostic messages to syslog()
doesn't mean you should actually use this facility. Diagnostics should only
be generated when you are actively tracking down a problem, and it's best
just to use the "-d" option with stderr instead. Use of syslog is best
reserved for extraordinary situations, where system integrity is in jeopardy
and performance is no longer the issue...
>
> At 03:59 PM 2002-11-08, Kurt D. Zeilenga wrote:
> >At 08:55 AM 2002-11-08, Quanah Gibson-Mount wrote:
> >>although our performance testing from OpenLDAP-2.1.8 is is
> showing only about 7 queries/sec answered (we need a minimum
> of 20 queries/sec throughput).
> >
> >That's awful low performance.  On relatively small systems,
> >performance in the 1000s of queries per second range is
> >easily achievable.   Likely you don't have the right
> >indices or the indexing is ineffective due to the number
> >of total entries.  In the later case, you might try
> >increasing the IDL sizes in back-bdb/idl.h.  You might
> >also look at BerkeleyDB environment settings.


  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support