des in message '[Clamav-users] XML and large file scan performance' wrote:
> In investigating heavy load during clamd scanning on an email server,
> I noticed that scanning XML files appears to take longer than similar
> sized binary files. I'm also seeing a big drop off in performance when
> scanning certain large files, e.g. PowerPoint, Word. Tests with
> clamdscan on a dual PIII 1.2GHz:
> 

1. MS Office files are treated differently then normal files.
2. Are you scanning under windows or *nix system?
3. How much tests have you made on each file?
4. Your Scanning rates seems to be below 2MB/s,
   this mean, you probably haven't compiled DNA into the kernel

> 750KB Excel file: 0.36s
> 2MB Word doc: 5.0s
> 3MB binary file: 0.75s
> 3MB XML file: 1.28s
> 6MB SO library: 1.51s
> 7MB XML file: 3.60s
> 7.5MB PowerPoint file: 66s
> 
> A different scanner tested on the same hardware stayed below 1.5s for
> all the tests (below 0.3s for most of them). Are there any options for
> tuning clamd, short of buying oodles more and faster cpus?
> 

7MB XML file in 0.3s ?

let's do some math:
7*1024^2 * 10 /3 / 1024^2
23.3 MB/s

Do you have SCSI drive ?
Cause, correct me if I'm wrong the fastest transfer rate on ATA is about
17MB/s and 40MB/s on SCSI device.
(( I'm ommiting the fact, that Clamav needs to compare it with over ))
(( 40000 virus signatures... ))

I really don't belive your 'different scanner' scans 7MB file
in < 0.3secs, and if it does, it's cheating im(ns)ho...

 main(int a[puts("Michał 'GiM' Spadliński")]){}
-- 
A jak myślisz skąd się biorą żołędzie?"
                - T.P. - Kolor Magii

_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to