Subject: pkg/24479: Clamav 0.66 very slow/high CPU load
To: None <>
From: None <>
List: netbsd-bugs
Date: 02/18/2004 18:19:12
>Number:         24479
>Category:       pkg
>Synopsis:       Clamav 0.66 very slow/high CPU load
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 18 17:20:01 UTC 2004
>Release:        NetBSD 1.6
System: NetBSD 1.6 NetBSD 1.6 (GENERIC) #0: Sun Sep 8 19:43:40 UTC 2002 i386
Architecture: i386
Machine: i386
	I have tried to install clamav 0.66 and while it does run, it is
very slow and puts a high demand on the CPU.
Scanning one file with around 600 lines of text takes about 50 seconds with almost 100% CPU load (appr 500MHz Via C3 which is not fast though not more than 50 times slower than the P4 quoted below). 

time clamscan -v /tmp/CLAM  
/tmp/CLAM: OK

----------- SCAN SUMMARY -----------
Known viruses: 20728
Scanned directories: 0
Scanned files: 1
Infected files: 0
Data scanned: 0.04 MB
I/O buffer size: 131072 bytes
Time: 49.600 sec (0 m 49 s)

real    0m49.632s
user    0m1.848s
sys     0m46.274s

On a linux system (1.5Ghz P4) <1 second is the time usual for small files.

Is there anything I can do to track the cause of this?