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

Re: OpenLDAP (using BDB) stalls adding 65,536th entry



On 07/30/2013 01:30 PM, Quanah Gibson-Mount wrote:
--On Tuesday, July 30, 2013 4:11 PM -0400 Mark Cooper
<markcoop@us.ibm.com> wrote:


I've been doing some testing using OpenLDAP with BDB on a couple of
different platforms.  I noticed a similar situation.  When I sit in a
loop doing adds, at the 65,536th added entry the process stalls for a
short period of time.  After a minute or two, the add succeeds.  My first
thought is that this is a BDB issue, so I posted this question to
Oracle's BDB forum.  But I have yet to receive any answer.

Expected.  You do know the significance of 65535 right? ;)

<http://en.wikipedia.org/wiki/65535_%28number%29>

This is indeed a BDB bit.

65536 (1 << 16) is the threshold at which index lists are turned into ranges; perhaps this has to do with what you see.

p.

--
Pierangelo Masarati
Associate Professor
Dipartimento di Scienze e Tecnologie Aerospaziali
Politecnico di Milano