[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-developers] Startup lag reason recognized

From: Igor Wronsky
Subject: [GNUnet-developers] Startup lag reason recognized
Date: Sun, 11 Aug 2002 21:56:10 +0300 (EEST)

I've been wondering what makes gnunetd (gnunet-check, 
gnunet-stats) startup take so long. The reason is 
countContentEntries(). After stuff has been cached
(by e.g. previous call to gnunet-stats) it speeds
up. But on the first run it can take minutes.

The effect will certainly be felt when the content 
databases fill up, as they should in normal activemigration 

gdb/tdb or filesystem do not provide quick way to
do countContentEntries(). The easiest suggestion,
which might lead to inconsistency, is to keep a
similar small file as database.age and update it
on insert/delete operations. This will make one 
seek more per each, but the fs cache should be able 
to handle it more nicely. Other option is to update 
it just every minute or so.

But some sublinear solution is in order in any case.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]