I'm not sure this is helpful. Our database objects are rather small. I presume 
that BDB's internal btree nodes are 2k?

On Friday 21 September 2007 02:40, you wrote:
> Author: juiceman
> Date: 2007-09-21 01:40:05 +0000 (Fri, 21 Sep 2007)
> New Revision: 15221
> 
> Modified:
>    trunk/freenet/src/freenet/node/Node.java
> Log:
> Increase JE DB read buffer block size from 2K to 6K to virtually eliminate 
nRepeatFaultReads see
> http://www.oracle.com/technology/products/berkeley-db/faq/je_faq.html#39
> and
> 
http://www.oracle.com/technology/documentation/berkeley-db/je/java/com/sleepycat/je/EnvironmentStats.html#getNRepeatFaultReads()
> 
> Shouldn't materially affect total memory usage but may give a slight read 
performance increase.
> 
> 
> Modified: trunk/freenet/src/freenet/node/Node.java
> ===================================================================
> --- trunk/freenet/src/freenet/node/Node.java  2007-09-21 00:18:40 UTC (rev 
15220)
> +++ trunk/freenet/src/freenet/node/Node.java  2007-09-21 01:40:05 UTC (rev 
15221)
> @@ -948,6 +948,7 @@
>               envConfig.setTxnWriteNoSync(true);
>               envConfig.setLockTimeout(600*1000*1000); // should be long 
> enough even 
for severely overloaded nodes!
>               // Note that the above is in *MICRO*seconds.
> +             envConfig.setConfigParam("je.log.faultReadSize", "6144");
>               
>               File dbDir = new File(storeDir, 
> "database-"+getDarknetPortNumber());
>               dbDir.mkdirs();
> 
> _______________________________________________
> cvs mailing list
> cvs at freenetproject.org
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20070921/5b60cc43/attachment.pgp>

Reply via email to