PDA

View Full Version : Tempi di clamscan..........


stefanoxjx
05-05-2007, 14:25
Secondo voi è normale che clamscan impieghi 20 secondi per analizzare un file 68byte su un dual xeon 2.4ghz?


-rw-r--r-- 1 root root 68 2006-11-01 00:21 eicar.com

keope:/home/stefanoxjx/.maildir/new# clamscan eicar.com
LibClamAV Warning: ***********************************************************
LibClamAV Warning: *** This version of the ClamAV engine is outdated. ***
LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq ***
LibClamAV Warning: ***********************************************************
eicar.com: Eicar-Test-Signature FOUND

----------- SCAN SUMMARY -----------
Known viruses: 114072
Engine version: 0.90.1
Scanned directories: 0
Scanned files: 1
Infected files: 1
Data scanned: 0.00 MB
Time: 20.765 sec (0 m 20 s)


:confused:

Fil9998
05-05-2007, 16:15
che clam non sia un mostro di velocità, ok

che sia lento anche e soprattutto perchè è lenta la lettura di ntfs-vfat da linux, OK
che sia così tanto lento però :mbe: :mbe: :mbe: :mbe:

dennyv
05-05-2007, 17:58
dennyv@bluelight ~ $ clamscan eicar.com
eicar.com: Eicar-Test-Signature FOUND

----------- SCAN SUMMARY -----------
Known viruses: 114072
Engine version: 0.90.2
Scanned directories: 0
Scanned files: 1
Infected files: 1
Data scanned: 0.00 MB
Time: 24.534 sec (0 m 24 s)


Su un VIA C7 da 1.5GHz... se non erro è un bug segnalato da tempo, credo già dalla prima release della versione 0.90... provo a cercare perché mi hai incuriosito... in effetti ne avevo già sentito parlare...

Infatti nella lista processi del mio serverino...

dennyv@bluelight ~ $ ps -e
PID TTY TIME CMD
...
29608 ? 00:30:47 clamd
...

clamd è quello che ha il tempo cpu più elevato, anche più di PostgreSQL

dennyv
05-05-2007, 18:07
Infatti mi sembrava di averlo già sentito!

You wrote on Friday, April 13, 2007, 3:34:12 PM:

> The newer versions seem to be very slow. I was just testing the new release
> against 1.8k PDF. It took almost 15 seconds.

> I am running on Red Hat dual processor with 2GB ram.

If you use clamscan for this, most of this time is virus databases
loading.

Try to use clamd+clamdscan.

http://www.mail-archive.com/clamav-users@lists.clamav.net/msg25998.html

e in effetti....

dennyv@bluelight ~ $ clamdscan eicar.com
/home/dennyv/eicar.com: Eicar-Test-Signature FOUND

----------- SCAN SUMMARY -----------
Infected files: 1
Time: 0.004 sec (0 m 0 s)


Saluti

stefanoxjx
06-05-2007, 16:47
quindi potrebbe essere che il problema si ripropone anche su un dual xeon!?!?!?

dennyv
06-05-2007, 21:02
quindi potrebbe essere che il problema si ripropone anche su un dual xeon!?!?!?

Sicuramente. Prova con clamdscan e andrà bene**. La lentezza è data dal tempo necessario per caricare le definizioni.

** ovviamente credo debba esserci però clamd avviato.. non so!