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
|