Am 10.04.2013 15:05 schrieb Andreas Schulze: > symptom: freshclam needs 3..4 seconds to finish also in the case where *no* > updates are available. No comments on this topic anymore... Thats worse because freshclam still steal cputime here :-(
To dive into the problem I describe the problem again: keep an eye on the timestamps! # echo 'DatabaseMirror clamav.datev.de' > /tmp/freshclam.conf # (/usr/bin/freshclam --config-file=/tmp/freshclam.conf --verbose --debug --no-dns; echo $?) 2>&1 | tai64n | tai64nlocal 2013-04-10 14:49:25.241597500 Current working dir is /var/lib/clamav -> starting freshclam ... 2013-04-10 14:49:25.253432500 bytecode.cvd is up to date (version: 214, sigs: 41, f-level: 63, builder: neo) -> after 12ms freshclam detects, that no updates are available 2013-04-10 14:49:25.253533500 LibClamAV debug: Initialized 0.97.7 engine 2013-04-10 14:49:25.253533500 LibClamAV debug: in cli_cvdload() -> now freshclam load the entire db ... 2013-04-10 14:49:28.147515500 LibClamAV debug: Phishcheck cleaned up -> and after ~3s freshclam finished > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND > > 4940 clamav 20 0 13212 3256 2588 R 100 0.0 0:01.35 freshclam -> 3 seconds of 100% cpu usage for nothing! I agree if freshclam load a *new* db in case of a *new* pattern version to verify the data are valid. But if no update was available, thats total unnecessary! Is there any clamav developer who could point me into the code or explain the logic? Thanks! Any feedback is welcome:-) > I looked in the source but did not found a relevant place to disable that > behaviour. > A patches or a pointer into the source would be nice :-) Thats still my intention ... -- Andreas Schulze Internetdienste | P252 DATEV eG 90329 Nürnberg | Telefon +49 911 319-0 | Telefax +49 911 319-3196 E-Mail info @datev.de | Internet www.datev.de Sitz: 90429 Nürnberg, Paumgartnerstr. 6-14 | Registergericht Nürnberg, GenReg Nr.70 Vorstand Prof. Dieter Kempf (Vorsitzender) Dipl.-Kfm. Wolfgang Stegmann (stellvertretender Vorsitzender) Dipl.-Kfm. Michael Leistenschneider Dipl.-Kfm. Dr. Robert Mayr Jörg Rabe v. Pappenheim Dipl.-Vw. Eckhard Schwarzer Vorsitzender des Aufsichtsrates: Reinhard Verholen _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://www.clamav.net/support/ml