On Tue, 10 Dec 2024, neel roy via clamav-users wrote:
> I think Neel's intention is to reduce the system load. Thanks! Yes, and it's all over internet - discussions about ClamAV CPU usage. I did face the same problem with McAfee but that was 15 years back. So, I think it goes to show that is possible. Is it not possible for clamav dev to do something about it?
On 8 CPU machine, clamav takes about 40% overall CPU with -m option. That's HUGE. On 4 vCPU VM, it takes ALL with -m option. People seem to come up with lot of strategies - incremental scan, cpulimit, cPanel to name few.
-m is design to use all of the CPU, so that the scan finishes sooner.
Couldn't there be an option equivalent of -m, may be -l for --lazy or -s for --staggered or -b for --breather? :)
I wonder what would happen if you nice'd the clamd daemon so that other processes had priority. That would make the scan lazy. Don't use -m with this, and don't try it on a machine with users or OnAcc: it might work, but it might lock the machine up. -- Andrew C. Aitchison Kendal, UK and...@aitchison.me.uk _______________________________________________ Manage your clamav-users mailing list subscription / unsubscribe: https://lists.clamav.net/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/Cisco-Talos/clamav-documentation https://docs.clamav.net/#mailing-lists-and-chat