Ok, that's a perfect answer to my questions..I didn't think of the DB
preallocation.
Thanks!
Steven
On Jan 26, 2006, at 4:45 PM, Theo Van Dinter wrote:
On Thu, Jan 26, 2006 at 10:52:20AM +0100, Steven Moix wrote:
I'm currently running a mail server with Postfix + amavsid-new + SA
3.1 with a global bayesian filtering and auto-learn enabled. It works
perfectly except that since some days I notice that my bayes_seen and
bayes_toks databases are not growing anymore...let's have a look at
the current status (size in bytes, date, file):
Yeah, that's perfectly fine. Berkeley DB expands the file when it
needs to,
but preallocates space to be more efficient for new entries. This
works well,
but makes it difficult to get the space back since the DB file
stays the same
size even if you delete all the entries -- which is why SA has to
build a new
DB, copy over entries, then delete and swap, whenever we do an expire.
I also tried to increse the bayes_expiry_max_db_size from 15 to
50 but it didn't change anything...
That setting tells SA to let more tokens go into the DB, but we
leave managing
the DB file to Berkeley DB so it'll expand when it has to expand.
--
Randomly Generated Tagline:
Aiee! - Linux kernel error message