https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6014
Summary: spamd is extremly slow when logging to syslog
Product: Spamassassin
Version: 3.2.5
Platform: PC
OS/Version: Linux
Status: NEW
Severity: major
Priority: P5
Component: spamc/spamd
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
After updating to 3.2.5 from 3.1.8 I noticed that spamd took significant longer
(4-5 times) to scan incoming email. If I do not use syslog, spamd up to 100
time faster:
Timing with 'SPAMD_ARGS="-d -c -L -D rules"' (using syslog)
#> time spamc <test.mbox
...
real 0m19.304s
user 0m0.000s
sys 0m0.004s
Timing with 'SPAMD_ARGS="-d -c -L -D rules -s /var/log/spamd.test.log"'
(using logging to file):
#> time spamc <test.mbox
...
real 0m0.193s
user 0m0.004s
sys 0m0.000s
A small perl test program sending log messages directly (see below) also shows
no time problems, e.g
#!/usr/bin/perl -w
use Sys::Syslog;
openlog('spamd', 'cons,pid', 'mail');
for (my $i=0; $i < 100; $i++) {
syslog('info', "Test Line . $i");
}
#> time syslogtest.pl
real 0m0.094s
user 0m0.068s
sys 0m0.012s
--
Configure bugmail:
https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.