Sorry, but I could not understand the meaning of back-bdb residing in HEAD.
I have attached a diff over openldap-2.3.35 for changes regarding BDB in-memory. This mainly has changes for keeping logs,environment and databases in memory. The bdb in-memory code is under #ifdef BDB_INMEMORY
I am trying out different environment cache sizes to check any performance difference.
Thanks and Regards, Suhel
On 8/31/07, Howard Chu hyc@symas.com wrote:
Suhel Momin wrote:
Hi,
I have made changes such that backend BDB ( ver 4.5 ) resides in
memory instead of on disk . This is with default slapd configuration. I was hoping to have a better performance with this.
back-bdb as currently residing in HEAD already yields efficiencies of 95% of available system bandwidth. It is extremely unlikely that you are going to be able to improve the performance significantly, most changes you could make to the code at this point will only yield performance losses.
But what I now see is that do_add takes much more time then what it use to take when BDB was on-Disk. Indexing is done on objectclass in both the cases.
Any pointers on why this could be an issue?
-- -- Howard Chu Chief Architect, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project/
Patches should be submitted using the ITS http://www.openldap.org/its/. In any case, you should definitely patch HEAD code, as 2.3.35 is months old and in a long ago feature-frozen development branch, the current being 2.4.
I'll note that having the database in memory is an improper use, since it breaks data persistency. So it should at least be a configure and not a build option.
p.
Sorry, but I could not understand the meaning of back-bdb residing in HEAD.
I have attached a diff over openldap-2.3.35 for changes regarding BDB in-memory. This mainly has changes for keeping logs,environment and databases in memory. The bdb in-memory code is under #ifdef BDB_INMEMORY
I am trying out different environment cache sizes to check any performance difference.
Ing. Pierangelo Masarati OpenLDAP Core Team
SysNet s.r.l. via Dossi, 8 - 27100 Pavia - ITALIA http://www.sys-net.it --------------------------------------- Office: +39 02 23998309 Mobile: +39 333 4963172 Email: pierangelo.masarati@sys-net.it ---------------------------------------
openldap-software@openldap.org