Clamav causing pretty high loads

I don't know when this happened exactly, but I think it was after the last update for Clam that came out this week,
but the scanner is causing pretty high loads and scanning takes forever.

It isn't seriously affecting the server speed at the moment (it's a pretty powerful machine), but I would appreciate it if you could have a look at it.

a dump of the top command:

top - 16:38:19 up 21 days, 19:14, 1 user, load average: 19.06, 20.81, 18.82
Tasks: 467 total, 18 running, 449 sleeping, 0 stopped, 0 zombie
Cpu(s): 99.8%us, 0.2%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 4049380k total, 3396748k used, 652632k free, 414232k buffers
Swap: 3903752k total, 21708k used, 3882044k free, 1032220k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
16909 1073 25 0 89560 63m 1556 R 26 1.6 3:40.01 clamscan
16916 denhout. 25 0 89560 63m 1556 R 26 1.6 3:39.61 clamscan
17382 1067 25 0 31092 8680 1364 R 26 0.2 1:16.70 clamscan
17669 jrsport. 25 0 29508 7120 1364 R 26 0.2 0:34.30 clamscan
17774 1073 25 0 27260 4932 1364 R 26 0.1 0:04.40 clamscan
17393 1073 25 0 30696 8304 1364 R 26 0.2 1:08.04 clamscan
17097 reneroof 25 0 69140 43m 1372 R 25 1.1 2:43.70 clamscan
16778 adam.koe 25 0 89960 64m 1556 R 25 1.6 4:08.96 clamscan
17143 1067 25 0 31884 9444 1364 R 25 0.2 1:45.95 clamscan
17504 naardeke 25 0 30560 8148 1364 R 25 0.2 0:58.79 clamscan
16937 naardeke 25 0 89296 63m 1556 R 25 1.6 3:27.64 clamscan
17128 bandhost 25 0 32148 9772 1364 R 24 0.2 2:02.30 clamscan
17363 esch.koe 25 0 31220 8772 1364 R 24 0.2 1:22.13 clamscan
17342 hobbysho 25 0 31220 8852 1364 R 23 0.2 1:23.71 clamscan
17407 paaspop. 25 0 30828 8428 1364 R 23 0.2 1:08.00 clamscan
17533 denhout. 25 0 30300 7924 1364 R 23 0.2 0:54.60 clamscan

I've asked the guy who installed the server for me if he had some advice.
he told me this:

it appears that Jamie isn't using the clamd (deamon) in Virtualmin pro, but lets each user start it's own clamscan, which is a bit inefficient, don't know where to change it though.
he says it would help if the command would be changed to clamdscan

hope this helps..

Adam

Status: 
Closed (fixed)