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

quicktool patch for OpenLDAP 2.2



I have a patch that backports the new "-q" option to slapadd from the 2.3 OL release to 2.2.

Here's some stats from using it:

10k entry LDIF file
23 attributes indexed
BDB 4.2.52
"database bdb" as the slapd.conf database

1) DB_CONFIG file with a 384MB cache, and normal slapadd options.

  ldap-linux0:/db/DBs# time slapadd -l 10k.ldif
  30.760u 1.800s 0:36.89 88.2%    0+0k 0+0io 13351pf+0w


2) DB_CONFIG file with a 384MB cache, and disabling logging via the BDB 4.2.52 flags.


  ldap-linux0:/db/DBs# time slapadd -l 10k.ldif
  26.790u 0.410s 0:27.35 99.4%    0+0k 0+0io 13318pf+0w

3) DB_CONFIG file with a 384MB cache and using the "-q" option to slapadd.

  ldap-linux0:/db/DBs# time slapadd -q -l 10k.ldif
  17.270u 0.450s 0:17.88 99.1%    0+0k 0+0io 13221pf+0w

4) no DB_CONFIG file and normal slapadd options.

  ldap-linux0:/db/DBs# time slapadd -l 10k.ldif
  38.920u 26.830s 13:30.39 8.1%  0+0k 0+0io 732pf+0w

5) no DB_CONFIG file and using the "-q" option to slapadd.

   ldap-linux0:/db/DBs# time slapadd -q -l 10k.ldif
   25.470u 21.070s 0:50.10 92.8%   0+0k 0+0io 627pf+0w


Available at:

<http://www.stanford.edu/services/directory/openldap/configuration/patches/openldap/quicktool.diff>

if people are interested in patching their source. Use at your own risk, of course, but it has worked fine for me since OL 2.2.20.

--Quanah

--
Quanah Gibson-Mount
Principal Software Developer
ITSS/Shared Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html

"These censorship operations against schools and libraries are stronger
than ever in the present religio-political climate. They often focus on
fantasy and sf books, which foster that deadly enemy to bigotry and blind
faith, the imagination." -- Ursula K. Le Guin