I had the same problem, not with qmail, but it makes no difference. Clamscan vs. cmald (you also have clamdscan there, which can be used nearly the same way) performance comparison states that clamd is a better choice. Now I have nearly 0 load because of scanning emails.
> On Mon, Oct 24, 2005 at 05:26:17PM +0800, aeonsun said: >> Hello all.I'm a newbie of clamav,I setup the clamav according to the >> article(http://sylvestre.ledru.info/howto/howto_qmail_vpopmail.php#clamav). >> >> The result by the 'top' command. >> >> 16:41:56 up 57 min, 1 user, load average: 11.43, 11.84, 10.75 >> 103 processes: 90 sleeping, 13 running, 0 zombie, 0 stopped >> CPU states: cpu user nice system irq softirq iowait idle >> total 99.6% 0.0% 0.3% 0.0% 0.0% 0.0% 0.0% >> Mem: 510420k av, 411704k used, 98716k free, 0k shrd, 3712k >> buff >> 313248k actv, 60628k in_d, 10204k in_c >> Swap: 522104k av, 225248k used, 296856k free 62096k >> cached >> >> PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND >> 3659 qscand 25 0 29600 17M 24 R 9.9 3.5 8:37 0 >> clamscan >> 3751 qscand 25 0 30188 22M 24 R 9.9 4.5 4:53 0 >> clamscan >> 3771 qscand 25 0 29940 28M 24 R 9.9 5.7 4:02 0 >> clamscan >> 3786 qscand 25 0 30188 28M 24 R 9.9 5.6 3:45 0 >> clamscan >> 3837 qscand 25 0 30024 27M 24 R 9.9 5.5 2:07 0 >> clamscan >> 3797 qscand 25 0 29836 27M 24 R 9.5 5.4 3:19 0 >> clamscan >> 3809 qscand 25 0 30140 27M 24 R 8.1 5.5 2:41 0 >> clamscan >> 3648 qscand 25 0 29640 16M 24 R 7.9 3.3 11:41 0 >> clamscan >> 3670 qscand 25 0 29860 18M 24 R 7.9 3.7 7:04 0 >> clamscan >> 3821 qscand 25 0 30188 28M 24 R 7.9 5.6 2:34 0 >> clamscan >> 3849 qscand 25 0 29868 26M 24 R 7.9 5.4 1:47 0 >> clamscan >> 6 root 15 0 0 0 0 SW 0.1 0.0 0:00 0 kscand >> 3983 root 15 0 1180 1180 908 R 0.1 0.2 0:00 0 top >> 1 root 15 0 116 84 56 S 0.0 0.0 0:04 0 init >> 2 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 keventd >> 3 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kapmd >> 4 root 34 19 0 0 0 SWN 0.0 0.0 0:00 0 >> ksoftirqd/0 >> 7 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 bdflush >> 5 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kswapd >> 8 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 >> kupdated >> >> Can someone help me?thanks. > > Use clam_d_scan instead of clamscan. Also make sure you have patched > qmail with all the usual patches so you're not accepting messages for > invalid local parts and so forth, wasting every one else's bandwidth and > your CPU. > -- > -------------------------------------------------------------------------- > | Stephen Gran | Consultant, n.: Someone who'd rather > | > | [EMAIL PROTECTED] | climb a tree and tell a lie than stand > | > | http://www.lobefin.net/~steve | on the ground and tell the truth. > | > -------------------------------------------------------------------------- > _______________________________________________ > http://lurker.clamav.net/list/clamav-users.html > _______________________________________________ http://lurker.clamav.net/list/clamav-users.html
