spamassassin-dev April 2012 archive
Main Archive Page > Month Archives  > spamassassin-dev archives
spamassassin-dev: [Bug 6793] PATCH reduce sa-awl memory usage

[Bug 6793] PATCH reduce sa-awl memory usage

From: <bugzilla-daemon_at_nospam>
Date: Tue Apr 24 2012 - 17:39:07 GMT
To: dev@spamassassin.apache.org

https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6793

Henrik Krohns <hege@hege.li> changed:

           What |Removed |Added
----------------------------------------------------------------------------
            Version|3.3.2 |unspecified
   Target Milestone|3.4.0 |Undefined

--- Comment #22 from Henrik Krohns <hege@hege.li> 2012-04-24 17:39:07 UTC ---

First of all, +1 but didn't look so indepth this time either. Enough to me that
it's pretty well tested already. :-)

(In reply to comment #20)
> Well, I haven't found any more issues.
>
> Performance is surprisingly good too: processed DB with >8M entries (two
> database keys per entry), 7.5M of which were deleted in less than 40 minutes.
>
> BerkeleyDB 4.8 if it matters.

A bit off topic, but have you ever tried DB_TXN_NOSYNC ? Should add
considerable performance, and the "risks" are more than fine for this use..

You could try adding it in this line in BDB.pm:
my $flags = DB_INIT_LOCK|DB_INIT_LOG|DB_INIT_MPOOL|DB_INIT_TXN;

In fact, I think the flags should be user configurable to some degree..

-- Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.