From dviner@yahoo-inc.com Tue Jun 1 09:29:52 2004 Received: with ECARTIS (v1.0.0; list fam); Tue, 01 Jun 2004 09:29:59 -0700 (PDT) Received: from mrout2.yahoo.com (mrout2.yahoo.com [216.145.54.172]) by oss.sgi.com (8.12.10/8.12.9) with SMTP id i51GTqgi008612 for ; Tue, 1 Jun 2004 09:29:52 -0700 Received: from penxng.smca.yahoo.com (penxng.smca.yahoo.com [204.119.24.188]) by mrout2.yahoo.com (8.12.10/8.12.10/y.out) with ESMTP id i51GSS7P028458; Tue, 1 Jun 2004 09:28:28 -0700 (PDT) Received: by penxng.smca.yahoo.com with Internet Mail Service (5.5.2656.59) id ; Tue, 1 Jun 2004 09:25:50 -0700 Message-ID: <263A1F717ECDED40AA969F98D1CF122E01A4F607@penxng.smca.yahoo.com> From: "Viner, David" To: "'Manuel Amador (Rudd-O)'" , Jean-Marc Valin Cc: nf2@scheinwelt.at, fam@oss.sgi.com, Nautilus mailing Subject: RE: fam using lots of CPU Date: Tue, 1 Jun 2004 09:25:49 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2656.59) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by oss.sgi.com id i51GTqgi008612 X-archive-position: 240 X-ecartis-version: Ecartis v1.0.0 Sender: fam-bounce@oss.sgi.com Errors-to: fam-bounce@oss.sgi.com X-original-sender: dviner@yahoo-inc.com Precedence: bulk X-list: fam which version of FAM? 2.7? 2.6.10 w/ dnotify patch? thanks dave -----Original Message----- From: Manuel Amador (Rudd-O) [mailto:amadorm@usm.edu.ec] Sent: Monday, May 31, 2004 10:41 AM To: Jean-Marc Valin Cc: nf2@scheinwelt.at; fam@oss.sgi.com; Nautilus mailing Subject: Re: fam using lots of CPU El jue, 27-05-2004 a las 14:05, Jean-Marc Valin escribió: > > Actually, the main thing is that I don't think fam should ever be > enabled by default on a system. Such unpredictable behaviour is simply > not acceptable from a daemon. Or maybe that fam should be enabled if it weren't that braindamaged when met with dnotify... > > Jean-Marc > > -- > Jean-Marc Valin > http://www.xiph.org/~jm/ > LABORIUS > Université de Sherbrooke, Québec, Canada -- Manuel Amador (Rudd-O) GPG key ID: 0xC1033CAD at keyserver.net From k_tutorials@yahoo.com Thu Jun 17 12:30:03 2004 Received: with ECARTIS (v1.0.0; list fam); Thu, 17 Jun 2004 12:30:05 -0700 (PDT) Received: from web13122.mail.yahoo.com (web13122.mail.yahoo.com [216.136.174.126]) by oss.sgi.com (8.12.10/8.12.9) with SMTP id i5HJU2gi008593 for ; Thu, 17 Jun 2004 12:30:02 -0700 Message-ID: <20040617193001.30906.qmail@web13122.mail.yahoo.com> Received: from [209.213.198.25] by web13122.mail.yahoo.com via HTTP; Thu, 17 Jun 2004 12:30:01 PDT Date: Thu, 17 Jun 2004 12:30:01 -0700 (PDT) From: Krishna Monian Subject: FAM on Mac OS X To: fam@oss.sgi.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-archive-position: 248 X-ecartis-version: Ecartis v1.0.0 Sender: fam-bounce@oss.sgi.com Errors-to: fam-bounce@oss.sgi.com X-original-sender: k_tutorials@yahoo.com Precedence: bulk X-list: fam Content-Length: 558 Lines: 21 Hi All, I am trying to install FAM on Mac OS X 10.3.4. Being new to the Mac I am not sure of the procedure. I have got the patch that is supposed to be applied(mntent). However I do not know how to go about doing it. It would be really helpful if someone could guide me along these lines. Another question I have is whether FAM records file reads (not alterations, just a normal read) ? Thanks Krishna Monian __________________________________ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo From k_tutorials@yahoo.com Thu Jun 17 12:53:53 2004 Received: with ECARTIS (v1.0.0; list fam); Thu, 17 Jun 2004 12:53:56 -0700 (PDT) Received: from web13122.mail.yahoo.com (web13122.mail.yahoo.com [216.136.174.126]) by oss.sgi.com (8.12.10/8.12.9) with SMTP id i5HJrrgi010991 for ; Thu, 17 Jun 2004 12:53:53 -0700 Message-ID: <20040617195353.35419.qmail@web13122.mail.yahoo.com> Received: from [209.213.198.25] by web13122.mail.yahoo.com via HTTP; Thu, 17 Jun 2004 12:53:53 PDT Date: Thu, 17 Jun 2004 12:53:53 -0700 (PDT) From: Krishna Monian Subject: File Monitoring on Mac OS X To: fam@oss.sgi.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-archive-position: 249 X-ecartis-version: Ecartis v1.0.0 Sender: fam-bounce@oss.sgi.com Errors-to: fam-bounce@oss.sgi.com X-original-sender: k_tutorials@yahoo.com Precedence: bulk X-list: fam Content-Length: 611 Lines: 25 Hi All, I am currently trying to write a file logger, which logs every single file access (read, write, delete) on a specified volume. I believe that FAM does something along these lines. I have a few questions though. 1. I read that FAM only monitors volumes 1 level deep. Is it possible to change FAM so that it can go till any depth? 2. Can FAM monitor file reads? (not an alteration) If not, then can this be achieved? Thanks in advance Krishna Monian __________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail From mraymond@sgi.com Thu Jun 17 12:57:59 2004 Received: with ECARTIS (v1.0.0; list fam); Thu, 17 Jun 2004 12:58:01 -0700 (PDT) Received: from zok.sgi.com (mtvcafw.sgi.com [192.48.171.6]) by oss.sgi.com (8.12.10/8.12.9) with SMTP id i5HJvwgi011071 for ; Thu, 17 Jun 2004 12:57:59 -0700 Received: from flecktone.americas.sgi.com (flecktone.americas.sgi.com [192.48.203.135]) by zok.sgi.com (8.12.9/8.12.9/linux-outbound_gateway-1.1) with ESMTP id i5HJuYhv010349 for ; Thu, 17 Jun 2004 12:56:34 -0700 Received: from daisy-e236.americas.sgi.com (daisy-e236.americas.sgi.com [128.162.236.214]) by flecktone.americas.sgi.com (8.12.9/8.12.10/SGI_generic_relay-1.2) with ESMTP id i5HJuXKe40766646; Thu, 17 Jun 2004 14:56:33 -0500 (CDT) Received: from goliath.americas.sgi.com (goliath.americas.sgi.com [128.162.232.85]) by daisy-e236.americas.sgi.com (8.12.9/SGI-server-1.8) with ESMTP id i5HJuX5N1591003; Thu, 17 Jun 2004 14:56:33 -0500 (CDT) Received: from goliath.americas.sgi.com by goliath.americas.sgi.com (SGI-8.12.5/SGI-client-1.7) via ESMTP id i5HJuXxk012430; Thu, 17 Jun 2004 14:56:33 -0500 (CDT) Received: (from mraymond@localhost) by goliath.americas.sgi.com (SGI-8.12.5/8.12.5/Submit) id i5HJuWMO012575; Thu, 17 Jun 2004 14:56:32 -0500 (CDT) Date: Thu, 17 Jun 2004 14:56:32 -0500 From: Michael Raymond To: Krishna Monian Cc: fam@oss.sgi.com Subject: Re: FAM on Mac OS X Message-ID: <20040617145632.F11167@goliath.americas.sgi.com> References: <20040617193001.30906.qmail@web13122.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20040617193001.30906.qmail@web13122.mail.yahoo.com>; from k_tutorials@yahoo.com on Thu, Jun 17, 2004 at 12:30:01PM -0700 X-archive-position: 250 X-ecartis-version: Ecartis v1.0.0 Sender: fam-bounce@oss.sgi.com Errors-to: fam-bounce@oss.sgi.com X-original-sender: mraymond@sgi.com Precedence: bulk X-list: fam Content-Length: 512 Lines: 20 Not AFAIK. Michael On Thu, Jun 17, 2004 at 12:30:01PM -0700, Krishna Monian wrote: > Another question I have is whether FAM records file > reads (not alterations, just a normal read) ? > > Thanks > Krishna Monian > > > > __________________________________ > Do you Yahoo!? > Take Yahoo! Mail with you! Get it on your mobile phone. > http://mobile.yahoo.com/maildemo -- Michael A. Raymond Office: (651) 683-3434 Core OS Group Real-Time System Software From k_tutorials@yahoo.com Thu Jun 17 13:15:16 2004 Received: with ECARTIS (v1.0.0; list fam); Thu, 17 Jun 2004 13:15:18 -0700 (PDT) Received: from web13121.mail.yahoo.com (web13121.mail.yahoo.com [216.136.174.83]) by oss.sgi.com (8.12.10/8.12.9) with SMTP id i5HKFGgi012824 for ; Thu, 17 Jun 2004 13:15:16 -0700 Message-ID: <20040617201516.39310.qmail@web13121.mail.yahoo.com> Received: from [209.213.198.25] by web13121.mail.yahoo.com via HTTP; Thu, 17 Jun 2004 13:15:16 PDT Date: Thu, 17 Jun 2004 13:15:16 -0700 (PDT) From: Krishna Monian Subject: Re: FAM on Mac OS X To: Michael Raymond Cc: fam@oss.sgi.com In-Reply-To: <20040617145632.F11167@goliath.americas.sgi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-archive-position: 251 X-ecartis-version: Ecartis v1.0.0 Sender: fam-bounce@oss.sgi.com Errors-to: fam-bounce@oss.sgi.com X-original-sender: k_tutorials@yahoo.com Precedence: bulk X-list: fam Content-Length: 903 Lines: 42 Is there any way to modify it so that it does log reads? Or is the only way to do this, is to write some sort of file system filter ? Thanks --- Michael Raymond wrote: > Not AFAIK. > Michael > > On Thu, Jun 17, 2004 at 12:30:01PM -0700, Krishna > Monian wrote: > > Another question I have is whether FAM records > file > > reads (not alterations, just a normal read) ? > > > > Thanks > > Krishna Monian > > > > > > > > __________________________________ > > Do you Yahoo!? > > Take Yahoo! Mail with you! Get it on your mobile > phone. > > http://mobile.yahoo.com/maildemo > > -- > Michael A. Raymond Office: (651) > 683-3434 > Core OS Group Real-Time System > Software > > __________________________________ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo From k_tutorials@yahoo.com Thu Jun 17 13:35:22 2004 Received: with ECARTIS (v1.0.0; list fam); Thu, 17 Jun 2004 13:35:41 -0700 (PDT) Received: from web13126.mail.yahoo.com (web13126.mail.yahoo.com [216.136.174.163]) by oss.sgi.com (8.12.10/8.12.9) with SMTP id i5HKZKgi013248 for ; Thu, 17 Jun 2004 13:35:22 -0700 Message-ID: <20040617203520.40966.qmail@web13126.mail.yahoo.com> Received: from [209.213.198.25] by web13126.mail.yahoo.com via HTTP; Thu, 17 Jun 2004 13:35:20 PDT Date: Thu, 17 Jun 2004 13:35:20 -0700 (PDT) From: Krishna Monian Subject: Re: FAM on Mac OS X To: Michael Raymond Cc: fam@oss.sgi.com In-Reply-To: <20040617152141.J11167@goliath.americas.sgi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-archive-position: 252 X-ecartis-version: Ecartis v1.0.0 Sender: fam-bounce@oss.sgi.com Errors-to: fam-bounce@oss.sgi.com X-original-sender: k_tutorials@yahoo.com Precedence: bulk X-list: fam Content-Length: 1247 Lines: 46 Is it possible to write some sort of kernel mode app, that hooks on top of the file system calls / IO calls, and logs every call as they pass through it? Something similar to a File System Filter Driver on Windows. Thanks --- Michael Raymond wrote: > AFAIK on most system no. On IRIX we have a tool > called rtmon that can > log all the system calls made on the system. Your > tool could get the info > you need from there. It is our intention to do > something similar for Linux > but that's going to take a while. I don't know > about other OSs. I briefly > considered poll() and select() but they check if > data is available, and > read()s don't affect that. > Michael > > On Thu, Jun 17, 2004 at 01:15:16PM -0700, Krishna > Monian wrote: > > Is there any way to modify it so that it does log > > reads? Or is the only way to do this, is to write > some > > sort of file system filter ? > > > > Thanks > > -- > Michael A. Raymond Office: (651) > 683-3434 > Core OS Group Real-Time System > Software > __________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail From kalou@kalou.net Thu Jun 17 13:59:38 2004 Received: with ECARTIS (v1.0.0; list fam); Thu, 17 Jun 2004 13:59:39 -0700 (PDT) Received: from dev.lgnftp.com (dev.lgnftp.com [82.97.10.18]) by oss.sgi.com (8.12.10/8.12.9) with SMTP id i5HKxRgi014916 for ; Thu, 17 Jun 2004 13:59:27 -0700 Received: from localhost (unknown [127.0.0.1]) by dev.lgnftp.com (Postfix) with ESMTP id DE51717E83 for ; Thu, 17 Jun 2004 20:17:59 +0000 (UTC) Date: Thu, 17 Jun 2004 22:17:59 +0200 (CEST) From: Olivier Kaloudoff X-X-Sender: kalou@s1.ckr-solutions.com To: fam@oss.sgi.com Subject: 2.6.10 compilation on os x / 10.3 Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-archive-position: 253 X-ecartis-version: Ecartis v1.0.0 Sender: fam-bounce@oss.sgi.com Errors-to: fam-bounce@oss.sgi.com X-original-sender: kalou@kalou.net Precedence: bulk X-list: fam Content-Length: 920 Lines: 35 Hi, I just downloaded the 2.6.10 source tree, applied the freeBSD mntent patch, had to: - remove HAVE_MNTENT_ detection in configure.in, because, despite the mntent patch, configure was not finding mntent.h, laying in the same directory. - run "autoconf" - run ./configure - got rid of the "util" subdirectory in the top Makefile, because it has no target and makes compilation fails. After all this, the compilation process began, and stopped at: g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -DCONFIG_ETC_CONFIG_PATH=\"/usr/local/etc/fam.conf\" -g -O2 -c -o IMon.o `test -f 'IMon.c++' || echo './'`IMon.c++ IMon.c++:38:29: sys/sysmacros.h: No such file or directory make[2]: *** [IMon.o] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Something is weird, as ./configure detected that I don't have no imon inside the kernel, but compilation is done anyway... Olivier From kalou@kalou.net Thu Jun 17 14:17:45 2004 Received: with ECARTIS (v1.0.0; list fam); Thu, 17 Jun 2004 14:17:50 -0700 (PDT) Received: from dev.lgnftp.com (dev.lgnftp.com [82.97.10.18]) by oss.sgi.com (8.12.10/8.12.9) with SMTP id i5HLHigi015477 for ; Thu, 17 Jun 2004 14:17:44 -0700 Received: from localhost (unknown [127.0.0.1]) by dev.lgnftp.com (Postfix) with ESMTP id BAF8D17E83 for ; Thu, 17 Jun 2004 21:18:47 +0000 (UTC) Date: Thu, 17 Jun 2004 23:18:47 +0200 (CEST) From: Olivier Kaloudoff X-X-Sender: kalou@s1.ckr-solutions.com To: fam@oss.sgi.com Subject: Re: 2.6.10 compilation on os x / 10.3 In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-archive-position: 254 X-ecartis-version: Ecartis v1.0.0 Sender: fam-bounce@oss.sgi.com Errors-to: fam-bounce@oss.sgi.com X-original-sender: kalou@kalou.net Precedence: bulk X-list: fam Content-Length: 3281 Lines: 78 > After all this, the compilation process began, and stopped >at: > >g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include >-DCONFIG_ETC_CONFIG_PATH=\"/usr/local/etc/fam.conf\" -g -O2 -c -o >IMon.o `test -f 'IMon.c++' || echo './'`IMon.c++ >IMon.c++:38:29: sys/sysmacros.h: No such file or directory Ok.. so replying to my own mail: replace all occurences of #include with #include Solved the problem. Next problem to compile on 10.3 seems to be related to the compiler I'm using ... and I don't really know how to fix this; OKs-Computer:/sw/src/fam/fam-2.6.10-patched/fam ikal$ gcc --version gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1495) Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Makefile:483: no file name for `-include' g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -DCONFIG_ETC_CONFIG_PATH=\"/usr/local/etc/fam.conf\" -g -O2 -c -o Listener.o `test -f 'Listener.c++' || echo './'`Listener.c++ In file included from RequestMap.h:26, from MxClient.h:27, from TCP_Client.h:27, from LocalClient.h:26, from Listener.c++:43: ../include/BTree.h:241: warning: `BTree::Closure' is implicitly a typename ../include/BTree.h:241: warning: implicit typename is deprecated, please see the documentation for details ../include/BTree.h:353: warning: `BTree::Closure' is implicitly a typename ../include/BTree.h:353: warning: implicit typename is deprecated, please see the documentation for details ../include/BTree.h:409: warning: `BTree::Closure' is implicitly a typename ../include/BTree.h:409: warning: implicit typename is deprecated, please see the documentation for details ../include/BTree.h:504: warning: `BTree::Status' is implicitly a typename ../include/BTree.h:504: warning: implicit typename is deprecated, please see the documentation for details ../include/BTree.h:562: warning: `BTree::Closure' is implicitly a typename ../include/BTree.h:562: warning: implicit typename is deprecated, please see the documentation for details ../include/BTree.h:592: warning: `BTree::Status' is implicitly a typename ../include/BTree.h:592: warning: implicit typename is deprecated, please see the documentation for details Listener.c++: In static member function `static void Listener::create_local_client(TCP_Client&, unsigned int)': Listener.c++:208: error: `tempnam' undeclared (first use this function) Listener.c++:208: error: (Each undeclared identifier is reported only once for each function it appears in.) Listener.c++:212: warning: invalid conversion from `const char*' to `unsigned char' Listener.c++: In static member function `static void Listener::accept_localclient(int, void*)': Listener.c++:286: warning: invalid conversion from `const char*' to `unsigned char' Listener.c++: In member function `void Listener::dirty_ugly_hack()': Listener.c++:352: warning: invalid conversion from `const char*' to `unsigned char' make: *** [Listener.o] Error 1 From jorrit@infopact.nl Fri Jun 18 01:07:26 2004 Received: with ECARTIS (v1.0.0; list fam); Fri, 18 Jun 2004 01:07:30 -0700 (PDT) Received: from x93.infopact.nl (x93.infopact.nl [212.29.160.93]) by oss.sgi.com (8.12.10/8.12.9) with SMTP id i5I87Ogi020868 for ; Fri, 18 Jun 2004 01:07:25 -0700 Received: from [192.168.2.216] (x123.infopact.nl [212.29.160.123]) (authenticated bits=0) by x93.infopact.nl (8.12.10/8.12.10) with ESMTP id i5I87NAU014546 for ; Fri, 18 Jun 2004 10:07:24 +0200 Message-ID: <40D2A2B9.9080207@infopact.nl> Date: Fri, 18 Jun 2004 10:07:21 +0200 From: Jorrit Kronjee User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616) X-Accept-Language: en-us, en MIME-Version: 1.0 To: fam@oss.sgi.com Subject: famd crashes with SGI::FAM X-Enigmail-Version: 0.84.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-archive-position: 255 X-ecartis-version: Ecartis v1.0.0 Sender: fam-bounce@oss.sgi.com Errors-to: fam-bounce@oss.sgi.com X-original-sender: jorrit@infopact.nl Precedence: bulk X-list: fam Content-Length: 1258 Lines: 45 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dear list, I am using famd through the perl module SGI::FAM on a constantly modified file (DHCP leases). Everything works fine and as it should until i close my perl script. After that, famd refuses to accept a connection (SGI::FAM: Connection refused) and runs for a couple of seconds more until it finally shuts down. famd[15030]: log level is LOG_INFO famd[15030]: Shutting down connection *************** overflow sigqueue *********************** *************** overflow sigqueue *********************** famd[15030]: Shutting down connection At the last line, I closed the perl script. There are two things that worry me: (1) the "overflow sigqueue" that keeps appearing while my script is running (2) the fact that famd can be crash by a normal perl script. Any suggestions are appreciated, Jorrit - -- InfoPact Netwerkdiensten B.V. http://www.infopact.nl/ Emmastraat 11-13 3255 BD Oude Tonge tel. +31(0)187-64 77 11 fax. +31(0)187-64 77 99 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFA0qK5M45EKZpnduURAmjNAKCOvR32K8hqzXwv7pzE42QUSy01ugCeMKHU 9WT5yrNznCiMz0TAW60nm/Q= =v/nK -----END PGP SIGNATURE-----