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

slapadding a large bdb database

I'm beginning to move from OpenLDAP 2.0 to 2.1 (2.1.2). I slapcatted an
existing ldbm database (~450k entries) and I'm trying to slapadd it into a
bdb database.

After about eight hours, I'm getting:

slapadd: could not add entry dn="uid=foo,dc=example,dc=com" (line=1736045):
txn_aborted! Cannot allocate memory (12)

The only appreciable rlimits in my shell are -s, stack size (8MB).
Interestingly, this is the 65545th entry in this ldif, close enough to 2**16
that it makes me wonder.

STFWing yielded nothing. If anyone has any ideas, I'd appreciate them!

Also, slapadd is extremely disk-bound during the add; is there any way to
speed this up (other than getting faster disk)? dbnosync maybe?

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