[Pkg-db-devel] Bug#520926: Bug#520926: should be built with --enable-posixmutexes --with-mutex=POSIX/pthreads

Florian Weimer fw at deneb.enyo.de
Fri Apr 10 10:57:40 UTC 2009


* John Morrissey:

> tl;dr summary: It seems BerkeleyDB should be built with:
>
> 	--enable-posixmutexes --with-mutex=POSIX/pthreads
>
> on NPTL Linux systems, since native POSIX mutexes substantially
> lower context switches, at least with OpenLDAP's slapd.

Wasn't it the other way round for previous versions?  Anyway, I think
this is the way to go, but we can't do it on all architectures because
some of them are still not NPTL-enabled.  We also should get it right
early because changing the mutex algorithm changes the database
environment layout in a way which cannot detected by Berkeley DB.

If you think it's not too late for that, we can make the change now,
or with the release of version 4.8.





More information about the Pkg-db-devel mailing list