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

RE: profiled slapd (from -devel branch)



> At 03:12 AM 8/5/99 -0700, Howard Chu wrote:
> >Sheesh, I never imagined it would be such a pain to get a gprof
> of a running
> >slapd, but it's taken me most of today to get glibc to cooperate on this
> >Linux system.
>
> I would be suggest configure --with-threads (and a compatible database
> library).  I am not sure gprof works under LinuxThreads.
>
So you mean --without-threads? I actually tried that first, but the
resulting slapd was broken. It received requests, but it seemed to only
partially decode them, and never processed them. The ldapsearch command
would just hang waiting for a response. I didn't mention it before because I
figured this option was no longer being supported. If it's really supposed
to work, I'll look into it some more and see what's going on.

> I would also suggest doing a series of runs which operations calls.
>
This makes a lot of sense.

> 1) startup/shutdown with no LDAP operations
>
> 2) 1 + RootDSE search
>
> 3) 2 + subtree match all entries in backend (from disk)
>
> 4) 3 + subtree match all entries in backend (from cache)
>
>
> Kurt
>
>