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

Re: problems under IRIX 6.2, 6.5


I've been investigating quite a bit more on this problem (see the archives
for the full details).  To summarize: OpenLDAP 1.1.2 is horrendously slow
under IRIX 6.2 and 6.5, while performing just fine under Linux 2.0.36
and Solaris 2.6.

Lots of things were blamed, one being the read/write locks.  So, today
I ripped out all the read/write entry locks.  Still the same thing.  That
wasn't very helpful.

I played with my slapd.conf file, removing all the access control (I put
slapd in debug mode "-d 255") and watched a lot of acl stuff.

Here's what I had:

  defaultaccess   read
  access  to attr=objectclass
          by *                    read
  access  to attr=userpassword
          by self                 write
          by *                    compare
  access  to dn=".*,ou=People,o=U.S. Census Bureau,c=US"
          by self                 write
          by *                    read

Then I removed them all (but defaultaccess), and got from my 6 seconds (on
the really fast machine) to 0.45 seconds.  This is more like it (the
query gets the mail address for all entries matching department, both being
indexed, about 275 entries).

Then I put them back in, and the one that caused me major pain was the
last one:

  access  to dn=".*,ou=People,o=U.S. Census Bureau,c=US"
          by self                 write
          by *                    read

Aha.  Has anything major changed in the acl code (since the original Umich?).
It may be something with the IRIX regex stuff, but I'm not sure.  I will
try the GNU regex library to see how that goes.  One thing I noticed in
servers/slapd/acl.c was the removal of the mutex on the regex_matches()
call.  Hmm.  I shall keep investigating.  Any ideas anyone?

Time to tackle the next problem -- why does making a new database (set of
files) using ldif2ldbm take 45 minutes under IRIX but only 3 minutes on
my Linux machine? (well, I have it down to 9 minutes now, but it's still
too long)

Don Badrak <dbadrak@census.gov>              301.457.1793 work
Telecommunications Office		     301.457.4438 fax
U.S. Bureau of the Census                    301.457.1828 fax
Suitland MD, USA