fam
[Top] [All Lists]

Re: Problem with a large number of directories.

To: "Vsevolod (Simon) Ilyushchenko" <simonf@xxxxxxxx>
Subject: Re: Problem with a large number of directories.
From: "Vsevolod (Simon) Ilyushchenko" <simonf@xxxxxxxx>
Date: Wed, 05 Jan 2005 13:14:50 -0500
Cc: fam@xxxxxxxxxxx
In-reply-to: <41DB130D.5040608@xxxxxxxx>
References: <41DB130D.5040608@xxxxxxxx>
Sender: fam-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041020
To followup on this - I've run the Perl script again, and this time it went through all the directories. Very strange.

I've found this in the FAM FAQ:

***
Simultaneous requests: Each client process can have up to 1024 active requests. This is a limitation of the select() system call.
***

Does anybody know if it's still true and what exactly it means? That I can't request to monitor more than 1024 directories? But it looks like I can, for now.

Also, is anybody actively maintaining FAM? In Fedora 3, the FAM package has been dropped in favor of the Gamin project:

http://www.gnome.org/~veillard/gamin/index.html

Thanks,
Simon

Vsevolod (Simon) Ilyushchenko wrote:
Hi,

Has anyone has used fam with thousands of directories? I have about 6k of them, and halfway through traversing the directory tree the Perl script that I am using hangs up.

I am aware that I have to keep reading messages while I am adding directories to avoid filling the message queue, so that is not an issue.

I would appreciate any hints on where to look for the problem.

Simon

--

Simon (Vsevolod ILyushchenko)   simonf@xxxxxxxx
                                http://www.simonf.com

Terrorism is a tactic and so to declare war on terrorism
is equivalent to Roosevelt's declaring war on blitzkrieg.

Zbigniew Brzezinski, U.S. national security advisor, 1977-81

<Prev in Thread] Current Thread [Next in Thread>