Messages in this thread | | | Date | Sun, 25 Jan 2004 16:32:05 -0800 | From | Andrew Morton <> | Subject | Re: Request: I/O request recording |
| |
Diego Calleja García <aradorlinux@yahoo.es> wrote: > > El Sun, 25 Jan 2004 15:38:03 -0800 Andrew Morton <akpm@osdl.org> escribió: > > > Unfortunately you cannot determine a directory's blocks in this way. > > Ext3's directories live in the /dev/hda1 pagecache anyway. ext2's > > directories each have their own pagecache. > > It would be possible to "hijack" the syscalls at libc level and look at what > the program is doing?
That would work. It misses out on pagefaults, which are kind of syscalls in disguise. So for any files which were mmapped you'd have to either assume that all of the file's pages are required, or use mincore() to poke around and find out which pages were really faulted in. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |