2.3.15 also runs fine for the first thousand queries, but then bogs down. There were several changes to ...bdb/cache.c in 2.3.14, and that file is identical in 2.3.15. I sort of suspect the problem is there, but I haven't the knowledge of the internals, nor the knowledge of Berkeley db locking, to figure it out.