2 hours ago · 5 min read1017 words · Tech · hide · 0 comments

A plain clamscan over a large home directory is single threaded. On a 24-core machine with four and a half million files, mine took over five hours and did not finish. This guide replaces it with the ClamAV daemon driven by parallel clients, and wires up a timer and an alert that tells the truth. You need a Linux system with systemd and root access. The examples assume Debian or Ubuntu package names and a home directory at /home. Install the daemon The standalone clamscan binary reloads the whole signature database on every start and scans with one thread. The daemon keeps the signatures resident and scans with many: sudo apt install clamav-daemon sudo systemctl enable --now clamav-daemon Wait for it to finish loading. The first start reads about a gigabyte of signatures and takes a minute or so. Match the thread count to your machine Check what the daemon is configured for and what you have: grep MaxThreads /etc/clamav/clamd.conf nproc The default is MaxThreads 12. Raise it if you…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.