From: Kenn Humborg (kenn at domain bluetree.ie)
Date: Fri 05 May 2000 - 19:33:07 IST
> > Though, the performance of amavis-perl is probably at least an order
> > of magnitude better than AMaViS (the original, shell script).
>
> As far as resources go, I have the original shell version of AmaVis
> running on a Dual PII-350, and you feel it when there's something being
> scanned. It's zip/other archives that are the major pain, and I can't
> tell you how many mails an hour we deal with (I don't know OTOMH), but
> the machine does other things as well (squid/ftp/topclass), so that
> may be skewing things.
A mod I made and submitted was to change the use of
head:
###################### test for binhex file #########################
${head} -c 4096 $E | ${head} -4 | ${fgrep} ...
The original just did a ${head} $E | ${fgrep} ...
On very large binary files with few line breaks,
this often led to head using a hell of a lot of
memory. The head -c 4096 first chops off the
first 4K and then we get the first 4 lines of this.
This made a massive improvement for me.
I don't know if this has been updated in the official
sources.
Later,
Kenn
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:06:02 GMT