Ben Hockenhull wrote: > Hi there. I'm running clamd, invoked via mimefang by way of a > sendmail milter on a FreeBSD 5.x system. Normal operations work > perfectly, but I run into these situations where I get a massive > influx of mail (5k messages in short order) and run into problems > with clamd.
Sendmail has some load-limiting options itself. > The short story is that mimedefang throws an error saying there's a > problem running the virus scanner, and mail tempfails. Load on the > box skyrockets (normally around 4, goes to 40+) 40... wow... > If I comment out the clamd call in mimedefang, load drops and mail > flows. I'm looking for performance tuning pointers for clamd. I'm > already planning to move to a tmpfs based Mimedefang directory in the > hopes that that will help, but would be interested in any other ideas. tmpfs for /tmp is a good idea too. I believe clamd uses that for its scanning directory and for unpacking .zip files etc. > I've searched the archives and looked at the FAQ and didn't seem to > find anything that specifically addressed performance parameters, but > would cheerfully accept pointers if I missed something. Make sure your machine has enough RAM for your load as disk I/O is a real bottleneck. Are you doing synchronous syslogging? Try asynchronous (just add a "-" in the right place in syslog.conf) -- Matthew.van.Eerde (at) hbinc.com 805.964.4554 x902 Hispanic Business Inc./HireDiversity.com Software Engineer _______________________________________________ http://lurker.clamav.net/list/clamav-users.html