Hello fam,
Im using known perl script by Atif Ghaffar <atif@xxxxxxxxxxxx> to monitor
lots of dirs. But the problem is that I cant monitor more then 248
dirs using that script. On 249th it just hangs. I thought that bug can
be in Fam Perl module, so I decided to use c++ program. I modified
test.c++ file included in the FAM package. So now it has additional
key '-l'.If use that key it'l take list of dirs to monitor from file
dirlist.txt (attached). When I run that modified test.c++, I got more
or less the same result (hangs after 256 dir)as using perl script. So I decided
that Fam
perl module is out of the problem. Than I started Fam with debug keys
and tried perl script and then test.c++ again. The result was
absolutely the same: Fam in it's messages said that it's monitoring
needed dirs but only till request number 90. After that it stops
showing any debug messages although perl script or test.c++ send to
Fam more than 90 dirs to monitor.
Tried on RH Linux 7.3(2.4.18) and Mandrake Linux 8.2 (2.4.18)
Included files:
fam_sync.pl - perl script to monitor lots of dirs
test.c++ - modified to monitor lots of dirs
dirlist.txt - my directory structure
scandirs.pl - perl script to create dirlist.txt for any directory,
usage: scandirs.pl yourdirname
Take them here:
ftp://cypress.ie.tusur.ru/incoming/4fam/dirlimit.zip
--
Best regards,
Stanislav mailto:1rsv@xxxxxxx
|