https://bugs.openldap.org/show_bug.cgi?id=10027
--- Comment #1 from Howard Chu hyc@openldap.org --- Sounds like you're simply batching too much into a single write transaction. There are constraints on how many dirty pages may be held in memory at once; above that limit even spilling won't help.