fam
[Top] [All Lists]

Re: [fam] FAMAccessed patch

To: fam@xxxxxxxxxxx
Subject: Re: [fam] FAMAccessed patch
From: Nathan Thompson-Amato <nathan.thompson-amato@xxxxxxxxxxxxxx>
Date: Mon, 12 Nov 2001 15:58:02 -0500
Organization: D.N. American
References: <Pine.LNX.4.33.0111121542490.27460-100000@xxxxxxxxxxxxxxxxxxxxxxxx>
Sender: owner-fam@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.5) Gecko/20011012
Alex Larsson wrote:


Hmm. This has the potential to easily flood and overflow the signal queue. It can also very easily chew up a lot of CPU, since all accesses in the filesystem cause fam to rescan it's directories.



Isn't the signal-queue overflow something that needs to be handled anyway? You're right, though, this patch doesn't even try to address either of those problems.


What is the reason you want this?


For the application I'm working on, I want to keep statistics on how often a certain (user-definable) group of files is read from and written to. These statistics will be used for what amounts to a caching scheme for files that are normally stored remotely.

The only other ways I can think of to gather these statistics are periodic polling (which is obviously bad for non-miniscule numbers of files) and implementing a filesystem that tracks these things itself (ick)...

Nathan


--
Source code, list archive, and docs: http://oss.sgi.com/projects/fam/
To unsubscribe: echo unsubscribe fam | mail majordomo@xxxxxxxxxxx

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