opensubscriber
   Find in this group all groups
 
Unknown more information…

c : cyrus-sasl@lists.andrew.cmu.edu 29 March 2012 • 6:24PM -0400

Re: New SASLdb mechanism MDB
by Howard Chu

REPLY TO AUTHOR
 
REPLY TO GROUP




Howard Chu wrote:
> Attached is a proof-of-concept implementation of a sasldb plugin using the new
> memory-mapped database library (MDB) we've developed in the OpenLDAP Project.
> It is probably not suitable for production use, just posting it now to get
> early feedback.
>
> If you're not familiar with MDB you can read about it at the LDAPCon 2011
> site. The abstract, paper, and presentation slides are all available there.
>
> http://www.daasi.de/ldapcon2011/index.php?site=program
>
> The paper and slides are also available on my on site, in addition to the
> Doxygen docs for the library.
>
> http://highlandsun.com/hyc/mdb/20111010LDAPCon-MDB.pdf
> http://highlandsun.com/hyc/mdb/20111010LDAPCon%20MDB.pdf
> http://highlandsun.com/hyc/mdb/
>
A slightly updated db_mdb.c which takes two more config settings:
sasldb_mapsize for setting the maximum size of the database (in units of 1024
bytes) and sasldb_maxreaders for setting the maximum number of reader threads
that can access the database concurrently.

As another point of reference, SQLightning (SQLite adapted to use libmdb)
performs random inserts ~21x faster than vanilla SQLite. So it's not just
faster for reads.

--
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

opensubscriber is not affiliated with the authors of this message nor responsible for its content.