MailScanner high CPU usage

Adrian Voinea adrian at gds.ro
Mon Feb 9 11:37:00 GMT 2004


It must be something else that causes the high CPU usage...
does *anyone* know what that shmat error means?

(

umask(0177)                             = 077
open("/var/spool/mqueue.in/qfi168t9Rc012372", O_RDWR|0x8000) = 7
fstat64(0x7, 0x80f5380)                 = 0
shmat(7, 0x96c5298, 0x2ptrace: umoven: Input/output error
)                = ?
flock(7, LOCK_EX|LOCK_NB)               = -1 EAGAIN (Resource temporarily
unavailable)
close(7)

)

Martin Hepworth said:
> Adrian Voinea wrote:
>> Hello, here's my problem:
>>
>> Sometimes, mailscanner uses a lot of cpu, for a long amount of time.
>> The mail server's load average rises to ~13 and stays that way for a
>> while.
>> You can see the cpu hogs' activity in the strace output.
>> (I searched for "shmat and umoven: Input/output error" on google and
>> this
>> error is obviously related to
>> the high cpu usage:
>> http://www.google.com/search?sourceid=navclient&ie=UTF-8&oe=UTF-8&q=shmat+umoven+cpu)
[...]

>
> Have you got RBL's setup in spamassassin?

I have skip_rbl_checks set to 1 in spam.assassin.prefs.conf

> Also worth checking are the
> numbers of messages you scan and one and the number of children you are
> running.
>
> mine are.. (on a 600mhz Celeron and 512MB ram)..
> Max Children = 5
> Max Unscanned Messages Per Scan = 20
> Max Unsafe Messages Per Scan = 20

I have the same settings.

>
>
> Also worth checking the SA settings to make sure the rules parse
> properly..
>
> spamassassin -D --lint -C /opt/MailScanner/etc/spam.assassin.prefs.conf

This is the output of the command:

root at kiki:/opt/MailScanner/etc# spamassassin -D --lint -C
/opt/MailScanner/etc/spam.assassin.prefs.conf

debug: Score set 0 chosen.
debug: running in taint mode? yes
debug: Running in taint mode, removing unsafe env vars, and resetting PATH
debug: PATH included '/usr/local/sbin', keeping.
debug: PATH included '/usr/sbin', keeping.
debug: PATH included '/sbin', keeping.
debug: PATH included '/usr/local/bin', keeping.
debug: PATH included '/usr/bin', keeping.
debug: PATH included '/bin', keeping.
debug: PATH included '/usr/X11R6/bin', keeping.
debug: PATH included '/usr/games', keeping.
debug: PATH included '/usr/local/iproute', keeping.
debug: PATH included '/usr/local/samba/bin', keeping.
debug: PATH included '/etc/scripts', keeping.
debug: PATH included '/www/mysql/bin', keeping.
debug: PATH included '/etc/bin', which doesn't exist, dropping.
debug: PATH included '/usr/local/samba/bin', keeping.
debug: Final PATH set to:
/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/usr/local/iproute:/usr/local/samba/bin:/etc/scripts:/www/mysql/bin:/usr/local/samba/bin
debug: ignore: using a test message to lint rules
debug: using "/opt/MailScanner/etc/spam.assassin.prefs.conf" for default
rules dir
debug: using "/etc/mail/spamassassin" for site rules dir
debug: using "/root/.spamassassin" for user state dir
debug: using "/root/.spamassassin/user_prefs" for user prefs file
debug: bayes: 26096 tie-ing to DB file R/O
/opt/MailScanner/spamassassin/bayes_toks
debug: bayes: 26096 tie-ing to DB file R/O
/opt/MailScanner/spamassassin/bayes_seen
debug: bayes: found bayes db version 2
debug: Score set 3 chosen.
debug: Initialising learner
debug: running header regexp tests; score so far=0
debug: running body-text per-line regexp tests; score so far=0
debug: running raw-body-text per-line regexp tests; score so far=0
debug: running uri tests; score so far=0
debug: uri tests: Done uriRE
debug: running full-text regexp tests; score so far=0
debug: running meta tests; score so far=0
debug: is spam? score=0 required=5 tests=



More information about the MailScanner mailing list