cannot dump wordlist

David Relson relson at osagesoftware.com
Sun Dec 4 03:07:45 CET 2005


On Sat, 03 Dec 2005 19:46:59 -0500
Matej Cepl wrote:

> David Relson wrote:
> > Locking is controlled by config file values for db_lk_max_locks and
> > db_lk_max_objects.  You need to edit your bogofilter.cf and increase
> > the values.
> 
> I tried bf_resize (suggested by README.db), but apparently there is no
> db_archive installed. So I tried to just increase db_lk_max_locks and
> db_lk_max_objects all the way until 1654360, but the error is the same. How
> far should I go with increasing number of the locks? The error is always:
> 
> ceplovi at ns:~/.bogofilter/matej$ bogoutil -d wordlist.db > wordlist.db.txt
> Lock table is out of available locks
> bogoutil: (c_get): Cannot allocate memory
> error dumping tokens!
> ceplovi at ns:~/.bogofilter/matej$
> 
> Any thoughts?
> 
> Matej

How large is your wordlist.db?  What version of db4 do you have.
(Command "bogofilter -V" will give that information.)

I've had wordlists as large as 50MB but (as best I recall) never needed
db_lk_max_locks or db_lk_max_objects values more that 64K.  Your test
value of 1654360 seems overly large.

Some versions of BerkeleyDB make use of a DB_CONFIG file (located in
the same directory as wordlist.db) with contents like:

set_lk_max_locks 32000
set_lk_max_objects 32000

Check for DB_CONFIG.  If not present create one and try values like
32000 or 64000.

To see what files a program is accessing, I often use strace.  Running
"strace -feopen bogoutil -d wordlist.db" will provide lots of info,
including whether DB_CONFIG is being looked for when you run bogoutil.

My last thought is to download bogofilter-1.0.0, build it, and see if
that works better for you.

HTH,

David




More information about the Bogofilter mailing list