bayes.lock files haunting me...

Julian Field MailScanner at ecs.soton.ac.uk
Sat Jun 4 14:35:25 IST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mailscanner wrote:

> Julian Field wrote:
>
>> Kevin Miller wrote:
>>
>>> Julian Field wrote:
>>>  
>>>
>>>> Kevin Miller wrote:
>>>>
>>>>  
>>>>
>>>>> Julian Field wrote:
>>>>>
>>>>>
>>>>>    
>>>>>
>>>>>> Why are you rebuilding the Bayes db from MailScanner and from cron?
>>>>>> You should do either 1 or the other. I would recommend (of course)
>>>>>> doing it from MailScanner.conf, so just comment out your crontab
>>>>>> entry.
>>>>>>
>>>>>>       
>>>>>
>>>>>
>>>>> Well, I was having the lock file troubles so I added the cron job
>>>>> yesterday to see if it would make any difference and forgot to turn
>>>>> it off in MailScanner.  Senior moment I guess.  I'll kill it and see
>>>>> how things go over the weekend.
>>>>> Should I leave the wait on?
>>>>>
>>>>>
>>>>>     
>>>>
>>>>
>>>> The wait only applies to MailScanner's rebuilds, it has no effect on
>>>> your cron job's operation.
>>>>   
>>>
>>>
>>>
>>> Yeah, I understand that.  If I kill the cron job, and leave the 
>>> rebuild at
>>> 86400, should the wait be enabled?  Default is no, but in this case 
>>> what
>>> does wisdom dictate?
>>>  
>>>
>> It depends a bit on the mail traffic through your site. If the 
>> rebuild takes a long time, then you probably want to continue 
>> delivering while it goes on (wait=no). If it only takes a minute or 
>> two, and your server can catch up fairly quickly, you probably want 
>> to wait for it to complete (wait=yes).
>>
>> I would go for wait=yes and change it if it causes a problem. 
>> Otherwise spam will get through during the rebuild.
>>
> Hi Julian,
>
> on a related note, is the 'minute or two' rebuild process  a CPU bound 
> task ? I have a dual PII-450 machine and it takes 3 minutes plus to 
> rebuild the database (I'd assume this is a single threaded task ?). 
> Will this improve if I move my mail server to a P4 1.6ghz for example 
> ? are you aware of any benchmarks for this spamassassin rebuild ?

Yes, I think it is quite heavy on CPU. Haven't seen any benchmarks of 
this at all, sorry. A 1.6Ghz box should definitely do it a lot faster 
than a P2/450 box. The second CPU won't help you though, it's a 
single-threaded program.

- -- 
Julian Field
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store
Professional Support Services at www.MailScanner.biz
MailScanner thanks transtec Computers for their support

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654


-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.0.1 (Build 2185)

iQA/AwUBQqGuJhH2WUcUFbZUEQKncwCgmddlHksn+rTgnx86fGev7eElmMMAn1nX
AwSpmwAYVORYzciXkYCKcVOc
=EmOY
-----END PGP SIGNATURE-----

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!




More information about the MailScanner mailing list