Re: Using linux command "find" to get modified files list for scan

Andrew C Aitchison via clamav-users <[email protected]>
Newsgroups gmane.comp.security.virus.clamav.user
Message-ID <[email protected]>
On Tue, 10 Dec 2024, neel  roy via clamav-users wrote:
>
> &gt; 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
                    [email protected]
_______________________________________________

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.