From clamav-devel-bounces@lists.clamav.net  Wed Mar 25 16:38:08 2009
Return-Path: <clamav-devel-bounces@lists.clamav.net>
X-Original-To: list@tad.clamav.net
Delivered-To: list@tad.clamav.net
X-Virus-Scanned: Debian amavisd-new at tad.clamav.net
Received: from tad.clamav.net ([127.0.0.1])
	by localhost (tad.clamav.net [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id eEtaxeILjdtl; Wed, 25 Mar 2009 16:38:08 +0100 (CET)
Received: from tad.clamav.net (localhost.localdomain [127.0.0.1])
	by tad.clamav.net (Postfix) with ESMTP id CF57031C0DF;
	Wed, 25 Mar 2009 16:38:05 +0100 (CET)
X-Original-To: clamav-devel@tad.clamav.net
Delivered-To: clamav-devel@tad.clamav.net
X-Virus-Scanned: Debian amavisd-new at tad.clamav.net
Received: from tad.clamav.net ([127.0.0.1])
	by localhost (tad.clamav.net [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id P-CUarDeKfzl for <clamav-devel@tad.clamav.net>;
	Wed, 25 Mar 2009 16:38:01 +0100 (CET)
X-Greylist: delayed 1447 seconds by postgrey-1.27 at tad;
	Wed, 25 Mar 2009 16:38:01 CET
Received: from mail-bw0-f161.google.com (mail-bw0-f161.google.com
	[209.85.218.161])
	by tad.clamav.net (Postfix) with ESMTP id 9DB1731C02A
	for <clamav-devel@lists.clamav.net>;
	Wed, 25 Mar 2009 16:38:01 +0100 (CET)
Received: by bwz5 with SMTP id 5so98747bwz.8
	for <clamav-devel@lists.clamav.net>;
	Wed, 25 Mar 2009 08:38:00 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.223.126.1 with SMTP id a1mr8252095fas.78.1237994033827; Wed, 
	25 Mar 2009 08:13:53 -0700 (PDT)
Date: Wed, 25 Mar 2009 22:13:53 +0700
Message-ID: <7e54fe750903250813n72ea0d29rd22cfc95e7b47754@mail.gmail.com>
From: Husam Muhammad <islamthink@gmail.com>
To: clamav-devel@lists.clamav.net
X-Content-Filtered-By: Mailman/MimeDel 2.1.9
Subject: [Clamav-devel] [clamav-devel] Misunderstand Clamav recursive scan
X-BeenThere: clamav-devel@lists.clamav.net
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: ClamAV Development <clamav-devel@lists.clamav.net>
List-Id: ClamAV Development <clamav-devel.lists.clamav.net>
List-Unsubscribe: <http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-devel>,
	<mailto:clamav-devel-request@lists.clamav.net?subject=unsubscribe>
List-Post: <mailto:clamav-devel@lists.clamav.net>
List-Help: <mailto:clamav-devel-request@lists.clamav.net?subject=help>
List-Subscribe: <http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-devel>,
	<mailto:clamav-devel-request@lists.clamav.net?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: clamav-devel-bounces@lists.clamav.net
Errors-To: clamav-devel-bounces@lists.clamav.net

Hello. I'm using Clamav and improving Clamav
for my final exams. Actually i very need you all
help for my misunderstanding of clamscan scandir()
algorithm.

The matther that, in my Clamav-like application, if
it have been running until +- 5 minutes, it is going to
system hang and all process on my system become
very very slow. I think that is because the recursive
algorithm i have applied. My scanner running good with the directories
which doesn't contain a lot of other directory. But,
if i scanned /usr directory, the computer (Slackware
system) is going to down, step by step ;p

The question is, how the basic strategy of clamav
to make the recursive scanning (on Clamscan) become
fast and running without any recursive problem (like on my system)
on it.

Thanks all, i hope you can help me.
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

