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

Re: quicktool patch for OpenLDAP 2.2



On Tuesday 22 Mar 2005 05:30, you wrote:
> 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.

We will try it. A very good example to show the difference that DB_CONFIG 
makes too.

>
> --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

-- 
Kind Regards,

Gavin Henry.
Managing Director.

T +44 (0) 1224 279484
M +44 (0) 7930 323266
F +44 (0) 1224 742001
E ghenry@suretecsystems.com

Open Source. Open Solutions(tm).

http://www.suretecsystems.com/