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

Re: Corrupt index files

On Fri, Aug 09, 2002 at 10:08:16AM +0200, Isaac Cruz Ballesteros wrote:
% Also, which is the fastest configuration in order to add about 6500000
% entries with slapadd? I've tried openldap 2.1.3 + BDB 4, with nosync and a
% lot of cache, and it gets slower and slower (I have only one disk, and it
% writes *a lot* of logs), so I'm going to try 2.0.25 with ldbm backend (I
% suppose this won't write logs...)

If you're looking to boost input speed, try altering the BDB environment
with something like:

set_cachesize 0 500000000 2
set_flags DB_TXN_NOSYNC

in /var/lib/ldap/DB_CONFIG (or wherever your BDB files are). You can bump up
the cache size even more if you've got more RAM.

This will cut disk I/O and speed up the import *dramatically,* but be
prepared to have BDB write out a *lot* of transaction logs, especially for
6.5M entries. Hope your disk is big. :-)

John Morrissey          _o            /\         ----  __o
jwm@horde.net        _-< \_          /  \       ----  <  \,
www.horde.net/    __(_)/_(_)________/    \_______(_) /_(_)__