[clamav-users] DB update and clamav-milter delay

Marco falon at ruparpiemonte.it
Tue Sep 29 04:15:37 EDT 2015


> Hello,
>
>  I installed clamd server (0.98.7) with clamav-milter using RPM of EPEL.
>
> With this installation, after every freshclam update session, clamd  
> is forced to read the DB:
>
> 2015-09-29T09:12:41.244383+02:00 av1 clamd[15201]: Reading databases  
> from /var/lib/clamav
> 2015-09-29T09:13:14.950256+02:00 av2 clamav-milter[11957]: Failed to  
> stream to clamd
> 2015-09-29T09:13:14.950546+02:00 av2 clamav-milter[11957]: Streaming failed
> 2015-09-29T09:13:20.593439+02:00 av1 clamd[15201]: Database  
> correctly reloaded (5342538 signatures)
>
> During this time clamav-milter have a trouble and the SMTP server  
> experiences a delay receiving the mail. On a frontend MSA SMTP  
> server this delay is a problem.
>
> I would like to know if there is a better way to configure the DB  
> update, without interruption on service.
> In case I remove the reload, is SelfCheck of Clamd sufficient to  
> detect a change in DB?
> Do you have any hint to improve performances?

I tried to relax the upgrades, but I see the problem is the time spent  
to reload the db:

2015-09-29T01:03:15.710526+02:00 av2 clamd[15201]: Reading databases  
from /var/lib/clamav
2015-09-29T01:03:53.151179+02:00 av2 clamd[15201]: Database correctly  
reloaded (5342845 signatures)

Is there a way to speed up this phase? Maybe putting the db files into  
a RAM fs?

Thank you very much
Marco




More information about the clamav-users mailing list