On 10/18/2010 3:42 PM, Török Edwin wrote:

> 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.

I'm already using the cpu switches: "-m64 -mptr64 -Wa,-xarch=v9
-mcpu=v9", I'll try the optimization next.

>> 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.

OK, thanks for taking the time to figure out this.
-- 
René Berber


_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

Reply via email to