Felipe Barriga Richards Blog

Blog personal de Felipe Barriga Richards
November 29, 2009

Speedup FreeNET Startup (entropy)

Delicious Delicious Facebook Facebook TwitterTwitter Categories: Privacidad - Tags: ,

FreeNET needs some good random data to startup.
When the node start it can take some time getting this data and this message is going to appear:



Freenet is starting up
Not enough entropy is available!
There isn’t enough entropy available on your system… Freenet won’t start until it can gather enough.


Read it all..

Speedup FreeNET on SunOS/Solaris/BSD/Linux

Delicious Delicious Facebook Facebook TwitterTwitter Categories: Privacidad - Tags: ,

If you have used FreeNET you can notice that if you have to many persistent downloads (~ more than 500) your CPU is going to get very busy. That happens because node.db4o (the file where persistent downloads queue are stored) is updated extremely frequently. On every update the cache of this file is flushed to filesystem making a process delay (waiting I/O).
A little trick to avoid this is to install FreeNET then move it to a RAM memory Filesystem (tmpfs) so the file updates are not going to slow down the process (wait I/O caused by random writes).

To create the RAM filesystem you need to execute:
Read it all..