Bayes will not run auto/manual expiry

Douglas Ward binaryflow at gmail.com
Thu Jun 21 02:32:32 IST 2007


I found an abort message in spamassassin (bayes related).  Does this look
bad?  Has my bayes db grown too large to expire?  Should I clear it and
start over?  Any thoughts would be most helpful.  Thanks!

[root at mx spamassassin]# spamassassin -D --lint
<snip>
[8615] dbg: bayes: DB journal sync: last sync: 1182387243
[8615] dbg: bayes: corpus size: nspam = 41590, nham = 136390
[8615] dbg: bayes: score = 0.613357629956347
[8615] dbg: bayes: DB expiry: tokens in DB: 316397, Expiry max size: 150000,
Oldest atime: 1176182136, Newest atime: 1182386879, Last expire: 1176225633,
Current time: 1182389157
[8615] dbg: bayes: opportunistic call found expiry due
[8615] dbg: bayes: bayes journal sync starting
[8615] dbg: locker: safe_lock: created /etc/MailScanner/bayes/bayes.mutex
[8615] dbg: locker: safe_lock: trying to get lock on
/etc/MailScanner/bayes/bayes with 10 timeout
[8615] dbg: locker: safe_lock: link to /etc/MailScanner/bayes/bayes.mutex:
link ok
[8615] dbg: bayes: tie-ing to DB file R/W /etc/MailScanner/bayes/bayes_toks
[8615] dbg: bayes: tie-ing to DB file R/W /etc/MailScanner/bayes/bayes_seen
[8615] dbg: bayes: found bayes db version 3
[8615] dbg: locker: refresh_lock: refresh /etc/MailScanner/bayes/bayes.mutex
[8615] dbg: bayes: synced databases from journal in 0 seconds: 370 unique
entries (400 total entries)
[8615] dbg: bayes: bayes journal sync completed
[8615] dbg: bayes: expiry starting
[8615] dbg: locker: refresh_lock: refresh /etc/MailScanner/bayes/bayes.mutex
[8615] dbg: locker: refresh_lock: refresh /etc/MailScanner/bayes/bayes.mutex
[8615] dbg: bayes: DB expiry: tokens in DB: 316397, Expiry max size: 150000,
Oldest atime: 1176182136, Newest atime: 1182387535, Last expire: 1176225633,
Current time: 1182389157
[8615] dbg: bayes: expiry check keep size, 0.75 * max: 112500
[8615] dbg: bayes: token count: 316397, final goal reduction size: 203897
[8615] dbg: bayes: first pass? current: 1182389157, Last: 1176225633, atime:
43200, count: 161535, newdelta: 34224, ratio: 1.26224657195035, period:
43200
[8615] dbg: bayes: can't use estimation method for expiry, unexpected
result, calculating optimal atime delta (first pass)
[8615] dbg: bayes: expiry max exponent: 9
[8615] dbg: bayes: atime token reduction
[8615] dbg: bayes: ======== ===============
[8615] dbg: bayes: 43200 73442
[8615] dbg: bayes: 86400 70494
[8615] dbg: bayes: 172800 64774
[8615] dbg: bayes: 345600 61009
[8615] dbg: bayes: 691200 56206
[8615] dbg: bayes: 1382400 48678
[8615] dbg: bayes: 2764800 39890
[8615] dbg: bayes: 5529600 26596
[8615] dbg: bayes: 11059200 0
[8615] dbg: bayes: 22118400 0
[8615] dbg: bayes: first pass decided on 43200 for atime delta
[8615] dbg: bayes: token expiration would expire too many tokens, aborting
[8615] dbg: bayes: untie-ing
[8615] dbg: bayes: untie-ing db_toks
[8615] dbg: bayes: untie-ing db_seen
[8615] dbg: bayes: files locked, now unlocking lock
[8615] dbg: locker: safe_unlock: unlocked /etc/MailScanner/bayes/bayes.mutex
[8615] dbg: bayes: expired old bayes database entries in 31 seconds: 316397
entries kept, 0 deleted
[8615] dbg: bayes: expiry completed

[root at mx spamassassin]# sa-learn --force-expire
bayes: synced databases from journal in 0 seconds: 2 unique entries (2 total
entries)
expired old bayes database entries in 31 seconds
316397 entries kept, 0 deleted
token frequency: 1-occurrence tokens: 0.00%
token frequency: less than 8 occurrences: 0.00%
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20070620/f23b2f4b/attachment.html


More information about the MailScanner mailing list