I have the same problem of almost 100% CPU usage
Can you kindly provide me with your clamd.conf?

Best Regards,
Kareem Mahgoub
----- Original Message ----- 
From: "Odhiambo Washington" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 26, 2004 8:05 AM
Subject: Re: [Clamav-users] Performance Help - 100% cpu usage


> * Eric Worthy <[EMAIL PROTECTED]> [20041026 07:02]: wrote:
> > I built a new 4 cpu/1 gig ram qmail/vpopmail/qmailscanner/clamv
> > mail server. (Four (4) Pentium® III Xeon 700 MHz/ 1 MB Cache)
> > I put it in last Thursday with it running great, then
> > yesterday, about 6pm, the cpu usage went to near 100% with about 800
> > smtp transfers per hour.
> >
> > This morning about 8am, the cpu is at 100% and we're running about
> > 1400 smtp transfers per hour.
> >
> > It appears that even this box can't keep up with all the scanning
> > that has to take place. Here is top at this hour:
> > http://t10.net/cpu.jpg
> > http://t10.net/cpu2.jpg
> >
> > Tasks: 118 total, 7 running, 111 sleeping, 0 stopped, 0 zombie
> > Cpu0 : 69.2% user, 30.8% system, 0.0% nice, 0.0% idle
> > Cpu1 : 75.6% user, 24.4% system, 0.0% nice, 0.0% idle
> > Cpu2 : 73.1% user, 26.9% system, 0.0% nice, 0.0% idle
> > Cpu3 : 76.3% user, 23.7% system, 0.0% nice, 0.0% idle
> > Mem: 1032988k total, 836408k used, 196580k free, 37472k buffers
> > Swap: 128480k total, 93060k used, 35420k free, 351288k cached
>
>
> I would suggest that you DisableDefaultScanOptions in clamd.conf
> and tune values according to your system. My servers do slightly
> more than 800 smtp transfers per hour and I found out that working
> with the DisableDefaultScanOptions commented out brought my server
> to its knees. And my server is almost like yours, except it's Pentium
> III Xeon 500MHz.
>
> If you prefer, I can privately e-mail you my clamd.conf that works for
> me. You can test it out. It's not the best tuned, especially regarding:
>
> MaxConnectionQueueLength
> MaxThreads
>
> I still need to know how those two values should be determined.
> What to base their values on.
>
> At any given moment, my SMTP service has average 300 child processes
> so I used that value for MaxConnectionQueueLength. I am not sure
> that is quite what it should be, but works for me is the key thing ;)
>
> I'll appreciate any contributions towards making decisions on those
> two values.
>
>
>
> -Wash
>
> http://www.netmeister.org/news/learn2quote.html
>
> --
> +======================================================================+
>     |\      _,,,---,,_     | Odhiambo Washington    <[EMAIL PROTECTED]>
> Zzz /,`.-'`'    -.  ;-;;,_ | Wananchi Online Ltd.   www.wananchi.com
>    |,4-  ) )-,_. ,\ (  `'-'| Tel: +254 20 313985-9  +254 20 313922
>   '---''(_/--'  `-'\_)     | GSM: +254 722 743223   +254 733 744121
> +======================================================================+
> Have you ever noticed that the people who are always trying to tell
> you, "There's a time for work and a time for play," never find the time
> for play?
> _______________________________________________
> http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users
>

_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users

Reply via email to