I am running clamav 0.102.1 built with llvm enabled but I have set up a dedicated user id called clamav(n). Then I create a shell script to run clamd and freshclam as daemons using this clamav(n) user id. I run clamdscan for one user and it takes only ten minutes to run. My OS is Catalina 10.15.2 . When you run clamdscan as a different user from clamav(n) you should still use the clamd.conf file of the clamd daemon running as user clamav(n). You might have to adjust the file permissions of clamd.conf to allow another user to access it.

Are you building with the latest Xcode and brew dependent packages (except for llvm)? I built with llvm 3.6.2 using gnu build system, not cmake.

 

 

From: Michael Newman via clamav-users
Sent: Wednesday, January 1, 2020 7:40 PM
To: ClamAV users ML
Cc: Michael Newman
Subject: [clamav-users] Clamscan taking a very long time

 

ClamAV 0.102.1/25679/Mon Dec 30 17:01:01 2019
macOS 10.15.2

Help me figure out why clamscan is suddenly taking so long.

An older log file fragment:

----------- SCAN SUMMARY -----------
Known viruses: 6613648
Engine version: 0.100.1
Scanned directories: 261793
Scanned files: 636746
Infected files: 11
Total errors: 1
Data scanned: 81505.97 MB
Data read: 105156.85 MB (ratio 0.78:1)
Time: 8728.307 sec (145 m 28 s)

The most recent log file fragment:

----------- SCAN SUMMARY -----------
Known viruses: 6639105
Engine version: 0.102.1
Scanned directories: 206450
Scanned files: 578017
Infected files: 1
Total errors: 49
Data scanned: 51163.40 MB
Data read: 55583.83 MB (ratio 0.92:1)
Time: 32246.560 sec (537 m 26 s)

Where scanning my home directory used to take just over two hours it is now taking almost nine even though there is less data to scan.

Here’s the command I’m using:

/opt/local/bin/clamscan -r --quiet -i -l $log $scandir --exclude-dir=$exclude --exclude-dir=$exclude2 --stdout >>$log 2>&1

Where $scandir is my home directory, $exclude is a directory with JPEGs and $exclude2 is an iOS device backup directory.


_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml