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 <1734082489.S.19777.autosave.drafts.1734082997.7046@webmail.rediffmail.com>
Hello Masaru,

&gt;&nbsp;Have you tried using CGroup to limit resources or changing the clamd
&gt; configuration file (adding MemoryLimit=768M, CPUQuota=30% lines)?

Apologies for late reply. Had to 6 months old conversations to get info needed.
What you suggest, CPUQuota, is available for services, is it&nbsp; not? We could not use clamd service because of permission issue on selinux:&nbsp;https://github.com/Cisco-Talos/clamav/issues/582
So we ended up using clamd as standalone process.

I don&#39;t know what else can I try other than somehow coming with incremental scan - writing my own fanotify based code which I am finding _surprisingly_ complicated (compared to Windows one I tried years back!).

Thanks in advance,
-Neel.

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

Hello,

Sorry for late reply.

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;1733801811.S.30439.autosave.drafts.1733802148.16449@webmail.rediffmail.com&gt;
&nbsp;Date &amp; Time: 10 Dec 2024 03:42:28 -0000

[NR] == &quot;neel roy&quot; &lt;[email protected]&gt; has written:

NR&gt; &nbsp;[1 &nbsp;&lt;text/plain; UTF-8 (7bit)&gt;]
NR&gt; &nbsp;Hello Masaru,

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

NR&gt; &nbsp;Thanks! Yes, and it&#39;s all over internet - discussions about
NR&gt; &nbsp;ClamAV CPU usage. I did face the same problem with McAfee but
NR&gt; &nbsp;that was 15 years back. So, I think it goes to show that is
NR&gt; &nbsp;possible. Is it not possible for clamav dev to do something about
NR&gt; &nbsp;it?

NR&gt; &nbsp;On 8 CPU machine, clamav takes about 40% overall CPU with -m
NR&gt; &nbsp;option. That&#39;s HUGE. On 4 vCPU VM, it takes ALL with -m
NR&gt; &nbsp;option.

NR&gt; &nbsp;People seem to come up with lot of strategies - incremental scan,
NR&gt; &nbsp;cpulimit, cPanel to name few.

Have you tried using CGroup to limit resources or changing the clamd
configuration file (adding MemoryLimit=768M, CPUQuota=30% lines)?

Best Regards.

---
$B(.(,(,(/WD(B &nbsp; Masaru Nomiya &nbsp; &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;Distinguish between what is meaningful to me and what is meaningless,
&nbsp;&nbsp;&nbsp; &nbsp;and forget what is meaningless to me. This is where individuality comes
&nbsp;&nbsp;&nbsp; &nbsp;into play. This is a function that computer cannot perform.&quot;
&nbsp;&nbsp;&nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- Shigehiko Toyama (in Japanes) --

_______________________________________________

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.