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

neel roy via clamav-users <[email protected]>
Newsgroups gmane.comp.security.virus.clamav.user
Message-ID <1733801811.S.30439.autosave.drafts.1733802148.16449@webmail.rediffmail.com>
Hello Masaru,

&gt; I think Neel&#39;s intention is to reduce the system load.

Thanks! Yes, and it&#39;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&#39;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.
Couldn&#39;t there be an option equivalent of -m, may be -l for --lazy or -s for --staggered or -b for --breather? :)

Thanks in advance,
-Neel.

From: Masaru Nomiya via clamav-users &lt;[email protected]&gt;
Sent: Tue, 10 Dec 2024 08:55:19
To: [email protected]
Cc: Masaru Nomiya &lt;[email protected]&gt;
Subject: Re: [clamav-users] Using linux command &quot;find&quot; to get modified files list for scan

Hello,

In the Message;

&nbsp;Subject &nbsp; &nbsp;: Re: [clamav-users] Using linux command &quot;find&quot; to get modified files list for scan
&nbsp;Message-ID :&nbsp;&lt;[email protected]&gt;
&nbsp;Date &amp; Time: Mon, 9 Dec 2024 12:47:59 +0000 (GMT)

[ACA] == Andrew C Aitchison via clamav-users &lt;[email protected]&gt; has written:


ACA&gt; &nbsp;On Mon, 9 Dec 2024, neel &nbsp;roy via clamav-users wrote:

ACA&gt; &nbsp;&gt; Yes, that I found evident as described in mail below.
ACA&gt; &nbsp;&gt; Yet, no antivirus including ClamAV use this approach in their product.
ACA&gt; &nbsp;&gt; There must be reason(s). I am just trying to find that reason.

ACA&gt; &nbsp;I do not think it is very useful to only scan files that have changed.
ACA&gt; &nbsp;That way, files that were changed by new (day-one?) malware before ClamAV
ACA&gt; &nbsp;has rules to detect them will not be caught unless they change again.

ACA&gt; &nbsp;With the &quot;OnAccess&quot; feature ClamAV scans a file whenever it is opened
ACA&gt; &nbsp;(for reading or writing IIRC). Working this way it is not so useful to find
ACA&gt; &nbsp;files which have changed, whether with &#39;find&#39; or some other way.

If the ClamAV daemon (clamd) is running, using clamdscan enables
multi-threaded scanning, and since the virus database does not need to
be loaded each time, it is more efficient, isn&#39;t it?

There is inevitably a time lag between the appearance of new viruses
and the expansion of the corresponding database, and onAccess is no
exception.

I think Neel&#39;s intention is to reduce the system load.
It is true that clamondacc is a heavy load.

Best Regards.

---
$B(.(,(,(/WD(B &nbsp; &nbsp;Masaru Nomiya &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mail-to: nomiya @ lake.dti.ne.jp
$B(-!@!?WD(B
$B(1(,(,(0(B &nbsp;&quot;As Google fights for positioning in a new AI boom and an era where
&nbsp;&nbsp;&nbsp; &nbsp;some consumers are turning to TikTok or ChatGPT instead of Google
&nbsp;&nbsp;&nbsp; &nbsp;Search, some employees now worry product development could become
&nbsp;&nbsp;&nbsp; &nbsp;dangerously hasty. The restructuring of RESIN has increased those
&nbsp;&nbsp;&nbsp; &nbsp;concerns, the sources say.&quot;
&nbsp;&nbsp;&nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- Google Splits Up a Key AI Ethics Watchdog --
_______________________________________________

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

_______________________________________________

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.