57 days ago · 5 min read1017 words · Tech · hide · Fediverse post

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…

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town