Clint Adams wrote:
On Mon, Oct 08, 2007 at 09:00:17PM -0700, Howard Chu wrote:
I've just rerun my tests using both BDB 4.2.52 and 4.6.21 and the
behavior is as expected. On an otherwise idle machine, both perform well,
completing our concurrency test in about 31 seconds.
With a CPU-hog running in the background, the test with BDB 4.2.52 takes
only 37 seconds, while BDB 4.6.21 takes 1:42. Watching with top you can
see that BDB 4.6.21 gets a lot less CPU than BDB 4.2.52. This is the
problem with using yield() on an NPTL system - whereas on most POSIX
systems yield() only yields control to some other thread in the current
process, on NPTL yield() gives up the CPU for the entire process.
Were these run with or without a ShmKey / DB_SYSTEM_MEM ?
Both with and without DB_SYSTEM_MEM; that's really irrelevant to the poor
locking behavior.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]