Subject: pkg/24479: Clamav 0.66 very slow/high CPU load
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jnp@napolinet.dk>
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
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6
>Organization:
         NapoliNet
>Environment:
	
	
System: NetBSD www.napolinet.dk 1.6 NetBSD 1.6 (GENERIC) #0: Sun Sep 8 19:43:40 UTC 2002 autobuild@tgm.daemon.org:/autobuild/i386/OBJ/autobuild/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
	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?

>How-To-Repeat:
	
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: