logging for hotfiles.
anothermindbomb at gmail.com
Wed Feb 24 21:56:05 UTC 2010
On Sat, Feb 20, 2010 at 5:35 AM, MirJafar Ali <mirjafarali at gmail.com> wrote:
> I am interesting in collecting data for file system analysis. I use Ubuntu
> and it has ext3 file system. Does filesystem keep
> track of how many times simple file operations were performed ( along with
> the timestamp ) i.e. open, read and write ?
Not out of the box as far as I'm aware. To track this kind of thing,
you're going to need some hooks into the ext2/3/4 disk subsystem code
to keep track of this data, Certainly, it shouldn't be too onerous to
write a jiffie value out somewhere but be in mind that your code is
going to have a performance impact on all disk i/o. Plus you're going
to get your hands very dirty with code that could quite easily trash
> With the timestamp and frequency, I want to study the behaviour of hot files
> and their layout on disks.
Really, you should be asking this type of question on the ext2/3/4
mailing lists. The developers there are intimately familiar with the
action under the hood of all of the ext disk formats. They will either
point you straight to where you should be hooking your code in or what
flags you need to switch on to activate some debugging and produce
something suitable for your studies.
When one person suffers from a delusion it is insanity. When many
people suffer from a delusion it is called religion.
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
More information about the ubuntu-users