Doug Monroe wrote: > > Jason Haar wrote: > > > > On Sun, Aug 18, 2002 at 10:49:57PM -0400, Dave Sill wrote: > > > OK, one last thought... I disabled softlimit and tried > > > again. Bingo: worked like a charm. Why the hell didn't > > > clamscan/qmail-scanner/tcpserver/perl/whatever complain that it was > > > running out of memory? And why the hell does clamscan need more than > > > 10,000,000 bytes? Sigh. > > > > Owch! That's serious. It exits 0 when it runs out of memory!?!?!? > > > > That's a bug with clamscan... > > I passed on similar info a few weeks back RE: clamscan. > With debug=yes, I was seeing "Critical" memory allocation errors from clamscan > 0.22. I tried working through them with the clamav author Tomasz Kojm , but I > was unable to get to a working state (e.g. actually finding/reporting test > virii) with qmail-1.03, Q-S 1.13, Clam AV 0.22. > > I've CC:d Thomas on this note. He may be interested in following the whole > thread at: > > >http://www.geocrawler.com/mail/thread.php3?subject=%5BQmail-scanner-general%5Dclamscan+probs&list=4041
----------FORWARDED REPLY FROM THOMASZ KOLM: Hi Doug ! Thanks a lot for the information. As I suspected the problem with Qmail-Scanner is in its limits. clamav 0.20 (and higer) uses advanced pattern matching algorithm, which uses about 10 Mb of the memory (well, scanning 100 Mb in few seconds costs). There is a simple way to slim it. In the matcher.h file from clamav-x.yz/clamscan you will find the following line: #define MIN_LENGTH 5 If you are using a virus database from clamav.elektrapro.com (freshclam) you may set MIN_LENGTH to 3 safely. In the case of the OAV database there might be a performance problem with some files - OAV database contains bad signatures, the maintainer was informed, and it will be fixed in the next release. Setting MIN_LENGTH to 3 will cause clamscan to use about 5 Mb. There will be a daemon in the next clamav release - it will fix potential scalability problems. Btw, I'm not subscribed to Q-S list and will be obliged if you will send some info there. Thanks !!! Best regards, Tomasz Kojm ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 _______________________________________________ Qmail-scanner-general mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general