On Mon, 18 Oct 2010 15:22:55 -0500 René Berber <rber...@prodigy.net.mx> wrote:
> On 10/18/2010 3:06 PM, Török Edwin wrote: > > [snip] > > These look like the largest, I'll do some tests on the Solaris box I > > have access to and see how long it takes there. > > Here's my result of moving out of the way all .ndb files: For me it is (UltraSPARC-T2 @1165 MHz): official signatures: Time: 22.255 sec (0 m 22 s) official + sanesecurity: Time: 90.417 sec (1 m 30 s) That is with gcc 3.4.6. With gcc 4.4.3 I get 74s load time. With Sun studio 12 it takes 241s, (the default must be no optimization probably). You may try to get more speed by using -mcpu switches. Manpage says "By default (unless configured otherwise) GCC generates code for the V7 variant of the SPARC architecture". So you could try -mcpu=niagara2 for example. You can also try -O3 instead of -O2 (but expect more compiler bugs). So try this (adjust -mcpu to the CPU you really have, see manpage for possible choices). ./configure CFLAGS="-mcpu=niagara2 -mtune=niagara2 -O3" See if it works, if not replace O3 with O2 and try again. For comparison on my AMD64 CPU it takes 4s (official) vs 10s (+3rdparty) to load. > > Mon Oct 18 15:12:09 2010 -> Reading databases > from /usr/local/share/clamav Mon Oct 18 15:13:21 2010 -> Database > correctly reloaded (862965 signatures) > > It went down to about 1 minute (25% of the usual time it takes). > Here's the log after loading all of them again: > > Mon Oct 18 15:15:49 2010 -> Reading databases > from /usr/local/share/clamav Mon Oct 18 15:19:54 2010 -> Database > correctly reloaded (1257390 signatures) > > Is there a way to "optimize" those files by converting them to another > format? At least to test if the problem is the format, and/or the > number of signatures. No, there is no other format. Problem is the number of signatures, and possibly some algorithms used during signature load. It is not a trivial task to optimize those. Best regards, --Edwin _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://www.clamav.net/support/ml