Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
clamav-milter startup obscenely slow
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Robert S
Guru
Guru


Joined: 15 Aug 2004
Posts: 463
Location: Canberra Australia

PostPosted: Fri Jun 15, 2007 11:08 am    Post subject: clamav-milter startup obscenely slow Reply with quote

Quote:
# time /etc/init.d/clamd start
* Starting clamd ...
Running as user clamav (UID 101, GID 407) [ ok ]
* Starting freshclam ... [ ok ]
* Starting clamav-milter ...
Loaded ClamAV 0.90.3/3424/Fri Jun 15 11:30:29 2007ClamAV: Protecting against 23 viruses [ ok ]

real 1m57.290s
user 0m57.892s
sys 0m0.640s

Could somebody explain this incredibly slow startup?


Last edited by Robert S on Fri Jun 15, 2007 1:16 pm; edited 1 time in total
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Fri Jun 15, 2007 12:23 pm    Post subject: Reply with quote

It is the clamav-milter. The loading of this beast takes ages. I don't know why it takes so long for you where you only have patterns for 23 virus. On my setup I have more then 200'000 patterns and it takes ages.
Back to top
View user's profile Send private message
Robert S
Guru
Guru


Joined: 15 Aug 2004
Posts: 463
Location: Canberra Australia

PostPosted: Fri Jun 15, 2007 1:16 pm    Post subject: Reply with quote

I had my terminal set up funny - here's the real answer:
Quote:
# time /etc/init.d/clamd start
* Starting clamd ...
Running as user clamav (UID 101, GID 407) [ ok ]
* Starting freshclam ... [ ok ]
* Starting clamav-milter ... [ ok ]
ClamAV 0.90.3/3426/Fri Jun 15 22:02:54 2007
ClamAV: Protecting against 230200 viruses

real 1m59.114s
user 0m57.968s
sys 0m0.604s

There doesn't seem to be anything on Goog about this. I've got a debian box that gives an equally slow startup, though it starts in the background and I don't have to wait for it. Maybe I should head for the clamav NG.
Back to top
View user's profile Send private message
FirefighterBlu3
n00b
n00b


Joined: 18 Jun 2007
Posts: 2
Location: South Florida

PostPosted: Mon Jun 18, 2007 12:45 pm    Post subject: Reply with quote

Where do you get your sig list that is nearly double mine?

ClamAV update process started at Mon Jun 18 01:22:00 2007
main.cvd is up to date (version: 43, sigs: 104500, f-level: 14, builder: sven)
Downloading daily-3454.cdiff [100%]
daily.inc updated (version: 3454, sigs: 23292, f-level: 16, builder: arnaud)
Database updated (127792 signatures) from database.clamav.net (IP: 64.142.100.50)


Thanks :)

-david
Back to top
View user's profile Send private message
Robert S
Guru
Guru


Joined: 15 Aug 2004
Posts: 463
Location: Canberra Australia

PostPosted: Mon Jun 18, 2007 12:52 pm    Post subject: Reply with quote

You're right - this is in my syslog:
Code:

Jun 18 17:57:49 mypc freshclam[8519]: Received signal: wake up
Jun 18 17:57:49 mypc freshclam[8519]: ClamAV update process started at Mon Jun 18 17:57:49 2007
Jun 18 17:57:49 mypc freshclam[8519]: main.inc is up to date (version: 43, sigs: 104500, f-level: 14, builder: sven)
Jun 18 17:57:54 mypc freshclam[8519]: Downloading daily-3454.cdiff [100%]
Jun 18 17:57:54 mypc freshclam[8519]: daily.inc updated (version: 3454, sigs: 23292, f-level: 16, builder: arnaud)
Jun 18 17:57:54 mypc freshclam[8519]: Database updated (127792 signatures) from database.clamav.net (IP: 203.16.234.78)

The other number came off my startup message.

Does your clamav-milter start this slowly? There seem to be a lot of messages on the clamav-users mailing list about slow performance - but I can't see anything specifically about clamav-milter - except my question which has remained unanswered.
Back to top
View user's profile Send private message
FirefighterBlu3
n00b
n00b


Joined: 18 Jun 2007
Posts: 2
Location: South Florida

PostPosted: Mon Jun 18, 2007 12:58 pm    Post subject: Reply with quote

Silly slow ... it's painful. It takes almost two minutes to load on this system.
Back to top
View user's profile Send private message
Robert S
Guru
Guru


Joined: 15 Aug 2004
Posts: 463
Location: Canberra Australia

PostPosted: Mon Jun 18, 2007 9:33 pm    Post subject: Reply with quote

I think this is a recognised problem that will be fixed in the 0.91 release - see http://svn.clamav.net/websvn/filedetails.php?repname=clamav-devel&path=%2Ftrunk%2FREADME&rev=0&sc=0
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Mon Jun 18, 2007 10:04 pm    Post subject: Reply with quote

Robert S wrote:
I think this is a recognised problem that will be fixed in the 0.91 release - see http://svn.clamav.net/websvn/filedetails.php?repname=clamav-devel&path=%2Ftrunk%2FREADME&rev=0&sc=0
Cool! Because of the startup time and of instability issues I currently switched away from ClamAV. But 0.91 may get me back again :)
Back to top
View user's profile Send private message
Robert S
Guru
Guru


Joined: 15 Aug 2004
Posts: 463
Location: Canberra Australia

PostPosted: Mon Jun 18, 2007 10:41 pm    Post subject: Reply with quote

What instability issues? I haven't run into any such things (admittedly I use a very low volume mailserver).
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Mon Jun 18, 2007 11:21 pm    Post subject: Reply with quote

Robert S wrote:
What instability issues? I haven't run into any such things (admittedly I use a very low volume mailserver).
I have a high volume mail server (over 100 virtual domains). ClamAV is a instable beast. Either the milter crashes or the damn daemon goes away. I hate it! Really. I don't care if it takes some time to start but I want this beast to run as stable as possible. But it does not.
Using it on the command line is okay. It works. But as soon as you start to use the milter or the daemon and you send constantly mails to check, then the thing will soon or later crash.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum