F-Prot Enterprise Daemon

Julian Field mailscanner at ecs.soton.ac.uk
Tue Jul 16 15:01:18 IST 2002


Tests done on a totally quiet 2x1GHz Pentium 3 box with 1Gb RAM, with 
10,000 copies of the SirCam-A virus.

Using the daemon to check 10,000 copies took 39 seconds.
Using the command-line scanner to scan 10,000 copies as one batch took 3 - 
4 seconds.
Using the command-line scanner to scan 10,000 copies (in batches of 200 at 
a time) took 8 seconds.

So I see little point implementing support for the daemon scanner.

Daemon Test Code
===============
#!/usr/bin/perl

use LWP::Simple;

$start = time;
foreach $f (1..10000) {
   $fullurl = 'http://localhost:10200/tmp/100/' . urlencode($f) .
              '?-old%20-archive%20-dumb';
   $results = get($fullurl);
   die "No results" unless $results;
}

$end = time - $start;
print "That took " . $end . " seconds for 10000 files.";

sub urlencode
{
     my $text = shift;
     $text =~ s/([^A-Za-z0-9\/_-])/ $_=sprintf("%%%2.2X", ord($1))/ge;
     return $text;
}

Command-Line Test Code for 1 Batch of 10,000
===================================
time /usr/local/f-prot/f-protwrapper -old -archive -dumb /tmp/10000 >/dev/null

Command-Line Test Code for 50 Batches of 200
====================================
#!/usr/bin/perl

$start = time;
foreach $f (1..50) {
   system("/usr/local/f-prot/f-protwrapper -old -archive -dumb /tmp/200");
}
$end = time - $start;
print STDERR "That took $end seconds\n";
-- 
Julian Field                Teaching Systems Manager
jkf at ecs.soton.ac.uk         Dept. of Electronics & Computer Science
Tel. 023 8059 2817          University of Southampton
                             Southampton SO17 1BJ




More information about the MailScanner mailing list